Skip to content

Commit 4329a2a

Browse files
committed
Added Target flatbuffer schema
- Added .gitignore
1 parent 1709c4f commit 4329a2a

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

buildcc/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Folder
2+
generated

buildcc/fbs/target.fbs

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
namespace schema.internal;
2+
3+
table Toolchain {
4+
name:string (key);
5+
c_compiler:string;
6+
cpp_compiler:string;
7+
8+
preprocessor_flags:[string];
9+
c_compile_flags:[string];
10+
cpp_compile_flags:[string];
11+
link_flags:[string];
12+
}
13+
14+
table File {
15+
filename:string (key);
16+
last_write_timestamp:uint64;
17+
}
18+
19+
enum TargetType : byte {
20+
Executable,
21+
StaticLibrary,
22+
DynamicLibrary
23+
}
24+
25+
table Target {
26+
name:string (key);
27+
relative_path:string;
28+
type:TargetType;
29+
toolchain:Toolchain;
30+
31+
source_files:[File];
32+
include_dirs:[string];
33+
34+
lib_deps:[Target];
35+
lib_dirs:[string];
36+
}
37+
38+
root_type Target;

0 commit comments

Comments
 (0)