OLD | NEW |
1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2012, the Dart 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 file. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'crypto_cc_file': '<(SHARED_INTERMEDIATE_DIR)/crypto_gen.cc', | 7 'crypto_cc_file': '<(SHARED_INTERMEDIATE_DIR)/crypto_gen.cc', |
8 'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc', | 8 'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc', |
9 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc', | 9 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc', |
10 'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc', | 10 'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc', |
11 'utf_cc_file': '<(SHARED_INTERMEDIATE_DIR)/utf_gen.cc', | 11 'utf_cc_file': '<(SHARED_INTERMEDIATE_DIR)/utf_gen.cc', |
| 12 'web_cc_file': '<(SHARED_INTERMEDIATE_DIR)/web_gen.cc', |
12 'builtin_in_cc_file': 'builtin_in.cc', | 13 'builtin_in_cc_file': 'builtin_in.cc', |
13 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc', | 14 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc', |
14 'snapshot_in_cc_file': 'snapshot_in.cc', | 15 'snapshot_in_cc_file': 'snapshot_in.cc', |
15 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin', | 16 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin', |
16 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc', | 17 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc', |
17 }, | 18 }, |
18 'targets': [ | 19 'targets': [ |
19 { | 20 { |
20 'target_name': 'generate_builtin_cc_file', | 21 'target_name': 'generate_builtin_cc_file', |
21 'type': 'none', | 22 'type': 'none', |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 '--input_cc', '<(builtin_in_cc_file)', | 210 '--input_cc', '<(builtin_in_cc_file)', |
210 '--include', 'bin/builtin.h', | 211 '--include', 'bin/builtin.h', |
211 '--var_name', 'Builtin::utf_source_', | 212 '--var_name', 'Builtin::utf_source_', |
212 '<@(_sources)', | 213 '<@(_sources)', |
213 ], | 214 ], |
214 'message': 'Generating ''<(utf_cc_file)'' file.' | 215 'message': 'Generating ''<(utf_cc_file)'' file.' |
215 }, | 216 }, |
216 ] | 217 ] |
217 }, | 218 }, |
218 { | 219 { |
| 220 'target_name': 'generate_web_cc_file', |
| 221 'type': 'none', |
| 222 'includes': [ |
| 223 'web_sources.gypi', |
| 224 ], |
| 225 'actions': [ |
| 226 { |
| 227 'action_name': 'generate_web_cc', |
| 228 'inputs': [ |
| 229 '../tools/create_string_literal.py', |
| 230 '<(builtin_in_cc_file)', |
| 231 '<@(_sources)', |
| 232 ], |
| 233 'outputs': [ |
| 234 '<(web_cc_file)', |
| 235 ], |
| 236 'action': [ |
| 237 'python', |
| 238 'tools/create_string_literal.py', |
| 239 '--output', '<(web_cc_file)', |
| 240 '--input_cc', '<(builtin_in_cc_file)', |
| 241 '--include', 'bin/builtin.h', |
| 242 '--var_name', 'Builtin::web_source_', |
| 243 '<@(_sources)', |
| 244 ], |
| 245 'message': 'Generating ''<(web_cc_file)'' file.' |
| 246 }, |
| 247 ] |
| 248 }, |
| 249 { |
219 'target_name': 'libdart_builtin', | 250 'target_name': 'libdart_builtin', |
220 'type': 'static_library', | 251 'type': 'static_library', |
221 'dependencies': [ | 252 'dependencies': [ |
222 'generate_builtin_cc_file', | 253 'generate_builtin_cc_file', |
223 'generate_crypto_cc_file', | 254 'generate_crypto_cc_file', |
224 'generate_io_cc_file', | 255 'generate_io_cc_file', |
225 'generate_json_cc_file', | 256 'generate_json_cc_file', |
226 'generate_uri_cc_file', | 257 'generate_uri_cc_file', |
227 'generate_utf_cc_file', | 258 'generate_utf_cc_file', |
| 259 'generate_web_cc_file', |
228 ], | 260 ], |
229 'include_dirs': [ | 261 'include_dirs': [ |
230 '..', | 262 '..', |
231 ], | 263 ], |
232 'sources': [ | 264 'sources': [ |
233 'builtin_natives.cc', | 265 'builtin_natives.cc', |
234 'builtin.h', | 266 'builtin.h', |
235 ], | 267 ], |
236 'includes': [ | 268 'includes': [ |
237 'builtin_impl_sources.gypi', | 269 'builtin_impl_sources.gypi', |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 ['OS=="mac"', { | 521 ['OS=="mac"', { |
490 'xcode_settings': { | 522 'xcode_settings': { |
491 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], | 523 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], |
492 }, | 524 }, |
493 }], | 525 }], |
494 ], | 526 ], |
495 }, | 527 }, |
496 ], | 528 ], |
497 } | 529 } |
498 | 530 |
OLD | NEW |