OLD | NEW |
1 # Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 # Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE.md file. | 3 # BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 { | 5 { |
6 'target_defaults': { | 6 'target_defaults': { |
7 'include_dirs': [ | 7 'include_dirs': [ |
8 '<(stm32_cube_f7)/Drivers/CMSIS/Include/', | 8 '<(stm32_cube_f7)/Drivers/CMSIS/Include/', |
9 '<(stm32_cube_f7)/Drivers/CMSIS/Device/ST/STM32F7xx/Include/', | 9 '<(stm32_cube_f7)/Drivers/CMSIS/Device/ST/STM32F7xx/Include/', |
10 '<(stm32_cube_f7)/Drivers/BSP/STM32746G-Discovery/', | 10 '<(stm32_cube_f7)/Drivers/BSP/STM32746G-Discovery/', |
(...skipping 22 matching lines...) Loading... |
33 'action_name': 'event_handler_test_snapshot', | 33 'action_name': 'event_handler_test_snapshot', |
34 'inputs': [ | 34 'inputs': [ |
35 '<(source_path)/test.dart', | 35 '<(source_path)/test.dart', |
36 ], | 36 ], |
37 'outputs': [ | 37 'outputs': [ |
38 # This must be in CWD for the objcopy below to generate the | 38 # This must be in CWD for the objcopy below to generate the |
39 # correct symbol names. | 39 # correct symbol names. |
40 '<(PRODUCT_DIR)/event_handler_test_snapshot', | 40 '<(PRODUCT_DIR)/event_handler_test_snapshot', |
41 ], | 41 ], |
42 'action': [ | 42 'action': [ |
43 '<(PRODUCT_DIR)/../ReleaseX64/fletch', | 43 '<(PRODUCT_DIR)/../ReleaseX64/dartino', |
44 'export', | 44 'export', |
45 '<(source_path)/test.dart', | 45 '<(source_path)/test.dart', |
46 'to', | 46 'to', |
47 'file', | 47 'file', |
48 '<(PRODUCT_DIR)/event_handler_test_snapshot', | 48 '<(PRODUCT_DIR)/event_handler_test_snapshot', |
49 ], | 49 ], |
50 }, | 50 }, |
51 ], | 51 ], |
52 }, | 52 }, |
53 { | 53 { |
(...skipping 29 matching lines...) Loading... |
83 'event_handler_test_snapshot', | 83 'event_handler_test_snapshot', |
84 'event_handler_test_snapshot.o', | 84 'event_handler_test_snapshot.o', |
85 ], | 85 ], |
86 }, | 86 }, |
87 ], | 87 ], |
88 }, | 88 }, |
89 { | 89 { |
90 'target_name': 'libevent_handler_test', | 90 'target_name': 'libevent_handler_test', |
91 'variables': { | 91 'variables': { |
92 'app_source_path': 'src', | 92 'app_source_path': 'src', |
93 'source_path': '../disco_fletch/src', | 93 'source_path': '../disco_dartino/src', |
94 'generated_path': '../disco_fletch/generated', | 94 'generated_path': '../disco_dartino/generated', |
95 'template_path': '../disco_fletch/template', | 95 'template_path': '../disco_dartino/template', |
96 'common_cflags': [ | 96 'common_cflags': [ |
97 # Our target will link in the stm files which do have a few warnings. | 97 # Our target will link in the stm files which do have a few warnings. |
98 '-Wno-write-strings', | 98 '-Wno-write-strings', |
99 '-Wno-sign-compare', | 99 '-Wno-sign-compare', |
100 '-Wno-missing-field-initializers', | 100 '-Wno-missing-field-initializers', |
101 ], | 101 ], |
102 'common_cflags_cc': [ | 102 'common_cflags_cc': [ |
103 '-Wno-literal-suffix', | 103 '-Wno-literal-suffix', |
104 ], | 104 ], |
105 }, | 105 }, |
106 'type': 'static_library', | 106 'type': 'static_library', |
107 'includes': [ | 107 'includes': [ |
108 '../free_rtos_sources.gypi', | 108 '../free_rtos_sources.gypi', |
109 '../hal_sources.gypi', | 109 '../hal_sources.gypi', |
110 ], | 110 ], |
111 'include_dirs': [ | 111 'include_dirs': [ |
112 '<(generated_path)/Inc', | 112 '<(generated_path)/Inc', |
113 '<(source_path)', | 113 '<(source_path)', |
114 ], | 114 ], |
115 'sources': [ | 115 'sources': [ |
116 # Application. | 116 # Application. |
117 '<(source_path)/cmpctmalloc.c', | 117 '<(source_path)/cmpctmalloc.c', |
118 '<(source_path)/cmpctmalloc.h', | 118 '<(source_path)/cmpctmalloc.h', |
119 '<(source_path)/freertos.cc', | 119 '<(source_path)/freertos.cc', |
120 '<(app_source_path)/fletch_entry.cc', | 120 '<(app_source_path)/dartino_entry.cc', |
121 '<(source_path)/main.cc', | 121 '<(source_path)/main.cc', |
122 '<(source_path)/page_allocator.cc', | 122 '<(source_path)/page_allocator.cc', |
123 '<(source_path)/page_allocator.h', | 123 '<(source_path)/page_allocator.h', |
124 | 124 |
125 '<(source_path)/syscalls.c', | 125 '<(source_path)/syscalls.c', |
126 | 126 |
127 # Generated files. | 127 # Generated files. |
128 '<(generated_path)/Inc/mxconstants.h', | 128 '<(generated_path)/Inc/mxconstants.h', |
129 '<(generated_path)/Inc/stm32f7xx_hal_conf.h', | 129 '<(generated_path)/Inc/stm32f7xx_hal_conf.h', |
130 '<(generated_path)/Inc/stm32f7xx_it.h', | 130 '<(generated_path)/Inc/stm32f7xx_it.h', |
(...skipping 33 matching lines...) Loading... |
164 '<@(common_cflags_cc)', | 164 '<@(common_cflags_cc)', |
165 ], | 165 ], |
166 }], | 166 }], |
167 ], | 167 ], |
168 }, | 168 }, |
169 { | 169 { |
170 'target_name': 'event_handler_test.elf', | 170 'target_name': 'event_handler_test.elf', |
171 'dependencies': [ | 171 'dependencies': [ |
172 'libevent_handler_test', | 172 'libevent_handler_test', |
173 'event_handler_test_snapshot.o', | 173 'event_handler_test_snapshot.o', |
174 '../../../src/vm/vm.gyp:libfletch', | 174 '../../../src/vm/vm.gyp:libdartino', |
175 ], | 175 ], |
176 'variables': { | 176 'variables': { |
177 'common_ldflags': [ | 177 'common_ldflags': [ |
178 '-specs=nano.specs', | 178 '-specs=nano.specs', |
179 # TODO(340): Why does this not work??? | 179 # TODO(340): Why does this not work??? |
180 #'-T<(generated_path)/SW4STM32/configuration/STM32F746NGHx_FLASH.ld', | 180 #'-T<(generated_path)/SW4STM32/configuration/STM32F746NGHx_FLASH.ld', |
181 # TODO(340): Why is this needed??? | 181 # TODO(340): Why is this needed??? |
182 '-T../../platforms/stm/disco_fletch/generated/SW4STM32/' | 182 '-T../../platforms/stm/disco_dartino/generated/SW4STM32/' |
183 'configuration/STM32F746NGHx_FLASH.ld', | 183 'configuration/STM32F746NGHx_FLASH.ld', |
184 '-Wl,--wrap=__libc_init_array', | 184 '-Wl,--wrap=__libc_init_array', |
185 '-Wl,--wrap=_malloc_r', | 185 '-Wl,--wrap=_malloc_r', |
186 '-Wl,--wrap=_malloc_r', | 186 '-Wl,--wrap=_malloc_r', |
187 '-Wl,--wrap=_realloc_r', | 187 '-Wl,--wrap=_realloc_r', |
188 '-Wl,--wrap=_calloc_r', | 188 '-Wl,--wrap=_calloc_r', |
189 '-Wl,--wrap=_free_r', | 189 '-Wl,--wrap=_free_r', |
190 ], | 190 ], |
191 }, | 191 }, |
192 'type': 'executable', | 192 'type': 'executable', |
(...skipping 64 matching lines...) Loading... |
257 'action': [ | 257 'action': [ |
258 '<(DEPTH)/tools/lk/flash-image.sh', | 258 '<(DEPTH)/tools/lk/flash-image.sh', |
259 '--disco', | 259 '--disco', |
260 '<(PRODUCT_DIR)/event_handler_test.bin', | 260 '<(PRODUCT_DIR)/event_handler_test.bin', |
261 ], | 261 ], |
262 }, | 262 }, |
263 ], | 263 ], |
264 }, | 264 }, |
265 ], | 265 ], |
266 } | 266 } |
OLD | NEW |