Update Iot.js
[platform/upstream/iotjs.git] / build.config
1 {
2   "build_option" : {
3     "buildtype": "debug",
4     "buildlib": false,
5     "builddir": "",
6     "clean": false,
7     "config": "",
8     "target-arch": "",
9     "target-os": "",
10     "target-board":"",
11     "cmake-param": [],
12     "compile-flag": [],
13     "link-flag": [],
14     "external-include-dir": [],
15     "external-static-lib": [],
16     "external-shared-lib": [],
17     "jerry-cmake-param": [],
18     "jerry-compile-flag": [],
19     "jerry-link-flag": [],
20     "jerry-lto": false,
21     "jerry-heaplimit": 256,
22     "jerry-memstat": false,
23     "no-init-submodule": false,
24     "no-check-tidy": false,
25     "no-check-test": false,
26     "no-parallel-build": false,
27     "sysroot": "",
28     "no-snapshot": false
29   },
30   "compile_flags": {
31     "os": {
32       "linux": ["-D__LINUX__",
33                 "-fno-builtin"],
34       "darwin": ["-D__DARWIN__",
35                  "-fno-builtin"],
36       "nuttx": ["-D__NUTTX__",
37                 "-Os",
38                 "-fno-strict-aliasing",
39                 "-fno-strength-reduce",
40                 "-fomit-frame-pointer"],
41       "tizen": ["-D__LINUX__",
42                 "-fno-builtin"],
43       "tizenrt": ["-D__TIZENRT__",
44                 "-Os",
45                 "-fno-strict-aliasing",
46                 "-fno-strength-reduce",
47                 "-fomit-frame-pointer"]
48   },
49     "arch": {
50       "i686": ["-D__i686__",
51                "-D__x86__",
52                "-D__I686__",
53                "-D__X86__",
54                "-march=i686",
55                "-m32"],
56       "x86_64": ["-D__x86_64__",
57                  "-D__X86_64__"],
58       "arm": ["-D__ARM__",
59               "-D__arm__",
60               "-mthumb",
61               "-fno-short-enums",
62               "-mlittle-endian"]
63     },
64     "board": {
65       "stm32f4dis": ["-mcpu=cortex-m4",
66                      "-march=armv7e-m",
67                      "-mfpu=fpv4-sp-d16",
68                      "-mfloat-abi=hard",
69                      "-DTARGET_BOARD=STM32F4DIS"],
70       "rpi2": ["-mcpu=cortex-a7",
71                "-mfpu=neon-vfpv4",
72                "-DTARGET_BOARD=RP2"],
73       "artik05x": ["-mcpu=cortex-r4",
74                    "-mfpu=vfp3",
75                    "-DTARGET_BOARD=artik05x"],
76       "artik10": ["-mcpu=cortex-a7",
77                   "-mfpu=neon-vfpv4",
78                   "-mfloat-abi=softfp",
79                   "-DTARGET_BOARD=artik10"]
80     },
81     "buildtype": {
82       "release": ["-O2"],
83       "debug": ["-DDEBUG",
84                 "-DENABLE_DEBUG_LOG"]
85     }
86   },
87   "link_flags": {
88     "os": {
89       "linux": ["-pthread"],
90       "darwin": [],
91       "nuttx": [],
92       "tizen": ["-pthread"],
93       "tizenrt": []
94     }
95   },
96   "shared_libs": {
97     "os": {
98       "linux": ["m", "rt"],
99       "darwin": [],
100       "nuttx": [],
101       "tizen": ["m", "rt"],
102       "tizenrt": []
103     }
104   },
105   "module": {
106     "always": ["buffer", "console", "events", "fs", "module", "timers"],
107     "include": ["assert", "dns", "http", "net", "stream", "testdriver"],
108     "exclude": ["adc", "ble", "dgram", "gpio", "i2c", "pwm", "spi", 
109                 "stm32f4dis", "uart"]
110   }
111 }