Skip to content

Commit e810427

Browse files
committed
add default target, arch and hxcpp_defines nodes to config
1 parent 3d36e3e commit e810427

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

src/flow/config.json

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,47 @@
22
"config" : "1.0.0-alpha-1",
33
"build" : {
44

5-
"known_targets" : ["mac","windows","linux","ios","android","web"],
6-
75
"invalid_targets" : {
86
"windows" : ["linux","mac","ios"],
97
"mac" : ["linux","windows"],
108
"linux" : ["windows","mac","ios"]
119
},
1210

11+
"target": {
12+
"web" : "js",
13+
"mac" : "cpp",
14+
"windows" : "cpp",
15+
"linux" : "cpp",
16+
"android" : "cpp",
17+
"ios" : "cpp",
18+
"tvos" : "cpp"
19+
},
20+
21+
"arch": {
22+
"web" : "web",
23+
"android" : "armv7",
24+
"ios" : "armv7",
25+
"tvos" : "arm64"
26+
},
27+
28+
"hxcpp_defines" : {
29+
"arch": {
30+
"32" : ["HXCPP_M32"],
31+
"64" : ["HXCPP_M64"],
32+
"x86" : ["HXCPP_X86"],
33+
"arm64" : ["HXCPP_ARM64", "HXCPP_M64"],
34+
"armv6" : ["HXCPP_ARMV6"],
35+
"armv7" : ["HXCPP_ARMV7"],
36+
"armv7s" : ["HXCPP_ARMV7S"],
37+
"sim64" : ["simulator", "HXCPP_M64"],
38+
"sim" : ["simulator"]
39+
},
40+
"target" : {
41+
"ios": ["HXCPP_CPP11", "HXCPP_CLANG"],
42+
"tvos": ["HXCPP_CPP11", "HXCPP_CLANG"]
43+
}
44+
},
45+
1346
"timing" : false,
1447
"boot" : "FlowApp",
1548
"command_line" : false,

0 commit comments

Comments
 (0)