| 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 # We place most generated source files in LIB_DIR (rather than, say | 7 # We place most generated source files in LIB_DIR (rather than, say |
| 8 # SHARED_INTERMEDIATE_DIR) because it is toolset specific. This avoids | 8 # SHARED_INTERMEDIATE_DIR) because it is toolset specific. This avoids |
| 9 # two problems. First, if a generated source file has architecture specific | 9 # two problems. First, if a generated source file has architecture specific |
| 10 # code, we'll get two different files in two different directories. Second, | 10 # code, we'll get two different files in two different directories. Second, |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 }], | 177 }], |
| 178 ], | 178 ], |
| 179 }, | 179 }, |
| 180 { | 180 { |
| 181 'target_name': 'libdart_io', | 181 'target_name': 'libdart_io', |
| 182 'type': 'static_library', | 182 'type': 'static_library', |
| 183 'toolsets':['target', 'host'], | 183 'toolsets':['target', 'host'], |
| 184 'include_dirs': [ | 184 'include_dirs': [ |
| 185 '..', | 185 '..', |
| 186 ], | 186 ], |
| 187 'includes': [ |
| 188 'io_impl_sources.gypi', |
| 189 ], |
| 187 'sources': [ | 190 'sources': [ |
| 188 'io_natives.h', | 191 'io_natives.h', |
| 189 'io_natives.cc', | 192 'io_natives.cc', |
| 190 ], | 193 ], |
| 191 'conditions': [ | 194 'conditions': [ |
| 192 [ 'dart_io_support==1', { | 195 [ 'dart_io_support==1', { |
| 193 'dependencies': [ | 196 'dependencies': [ |
| 194 'bin/net/ssl.gyp:libssl_dart', | 197 'bin/net/ssl.gyp:libssl_dart', |
| 195 ], | 198 ], |
| 196 'includes': [ | |
| 197 'io_impl_sources.gypi', | |
| 198 ], | |
| 199 }, | |
| 200 { | |
| 201 'includes': [ | |
| 202 'io_impl_sources_no_nss.gypi', | |
| 203 ], | |
| 204 }], | 199 }], |
| 205 ['OS=="win"', { | 200 ['OS=="win"', { |
| 206 # TODO(antonm): fix the implementation. | 201 # TODO(antonm): fix the implementation. |
| 207 # Current implementation accepts char* strings | 202 # Current implementation accepts char* strings |
| 208 # and therefore fails to compile once _UNICODE is | 203 # and therefore fails to compile once _UNICODE is |
| 209 # enabled. That should be addressed using -A | 204 # enabled. That should be addressed using -A |
| 210 # versions of functions and adding necessary conversions. | 205 # versions of functions and adding necessary conversions. |
| 211 'configurations': { | 206 'configurations': { |
| 212 'Common_Base': { | 207 'Common_Base': { |
| 213 'msvs_configuration_attributes': { | 208 'msvs_configuration_attributes': { |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 '--input_cc', '<(snapshot_in_cc_file)', | 331 '--input_cc', '<(snapshot_in_cc_file)', |
| 337 '--output', '<(snapshot_cc_file)', | 332 '--output', '<(snapshot_cc_file)', |
| 338 ], | 333 ], |
| 339 'message': 'Generating ''<(snapshot_cc_file)'' file.' | 334 'message': 'Generating ''<(snapshot_cc_file)'' file.' |
| 340 }, | 335 }, |
| 341 ] | 336 ] |
| 342 }, | 337 }, |
| 343 { | 338 { |
| 344 'target_name': 'generate_resources_cc_file', | 339 'target_name': 'generate_resources_cc_file', |
| 345 'type': 'none', | 340 'type': 'none', |
| 346 'toolsets':['target', 'host'], | |
| 347 'includes': [ | 341 'includes': [ |
| 348 'vmstats_sources.gypi', | 342 'vmstats_sources.gypi', |
| 349 ], | 343 ], |
| 350 'actions': [ | 344 'actions': [ |
| 351 { | 345 { |
| 352 'action_name': 'generate_resources_cc', | 346 'action_name': 'generate_resources_cc', |
| 353 'inputs': [ | 347 'inputs': [ |
| 354 '../tools/create_resources.py', | 348 '../tools/create_resources.py', |
| 355 '<@(_sources)', | 349 '<@(_sources)', |
| 356 ], | 350 ], |
| 357 'outputs': [ | 351 'outputs': [ |
| 358 '<(resources_cc_file)', | 352 '<(resources_cc_file)', |
| 359 ], | 353 ], |
| 360 'action': [ | 354 'action': [ |
| 361 'python', | 355 'python', |
| 362 'tools/create_resources.py', | 356 'tools/create_resources.py', |
| 363 '--output', '<(resources_cc_file)', | 357 '--output', '<(resources_cc_file)', |
| 364 '--root_prefix', 'bin/vmstats/', | 358 '--root_prefix', 'bin/vmstats/', |
| 365 '<@(_sources)', | 359 '<@(_sources)', |
| 366 ], | 360 ], |
| 367 'message': 'Generating ''<(resources_cc_file)'' file.' | 361 'message': 'Generating ''<(resources_cc_file)'' file.' |
| 368 }, | 362 }, |
| 369 ] | 363 ] |
| 370 }, | 364 }, |
| 371 { | 365 { |
| 372 # dart binary with a snapshot of corelibs built in. | 366 # dart binary with a snapshot of corelibs built in. |
| 373 'target_name': 'dart', | 367 'target_name': 'dart', |
| 374 'type': 'executable', | 368 'type': 'executable', |
| 375 'toolsets':['target'], | |
| 376 'dependencies': [ | 369 'dependencies': [ |
| 377 'libdart', | 370 'libdart', |
| 378 'libdart_builtin', | 371 'libdart_builtin', |
| 379 'libdart_io', | 372 'libdart_io', |
| 380 'generate_snapshot_file#host', | 373 'generate_snapshot_file#host', |
| 381 'generate_resources_cc_file#host', | 374 'generate_resources_cc_file', |
| 382 ], | 375 ], |
| 383 'include_dirs': [ | 376 'include_dirs': [ |
| 384 '..', | 377 '..', |
| 385 ], | 378 ], |
| 386 'sources': [ | 379 'sources': [ |
| 387 'main.cc', | 380 'main.cc', |
| 388 'builtin_natives.cc', | 381 'builtin_natives.cc', |
| 389 'builtin_nolib.cc', | 382 'builtin_nolib.cc', |
| 390 'builtin.h', | 383 'builtin.h', |
| 391 'io_natives.h', | 384 'io_natives.h', |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 '-lz', | 428 '-lz', |
| 436 ], | 429 ], |
| 437 }, | 430 }, |
| 438 }], | 431 }], |
| 439 ], | 432 ], |
| 440 }, | 433 }, |
| 441 { | 434 { |
| 442 # dart binary without any snapshot built in. | 435 # dart binary without any snapshot built in. |
| 443 'target_name': 'dart_no_snapshot', | 436 'target_name': 'dart_no_snapshot', |
| 444 'type': 'executable', | 437 'type': 'executable', |
| 445 'toolsets':['target'], | |
| 446 'dependencies': [ | 438 'dependencies': [ |
| 447 'libdart_withcore', | 439 'libdart_withcore', |
| 448 'libdart_builtin', | 440 'libdart_builtin', |
| 449 'libdart_io', | 441 'libdart_io', |
| 450 'generate_resources_cc_file#host', | 442 'generate_resources_cc_file', |
| 451 ], | 443 ], |
| 452 'include_dirs': [ | 444 'include_dirs': [ |
| 453 '..', | 445 '..', |
| 454 ], | 446 ], |
| 455 'sources': [ | 447 'sources': [ |
| 456 'main.cc', | 448 'main.cc', |
| 457 'builtin.cc', | 449 'builtin.cc', |
| 458 'builtin_natives.cc', | 450 'builtin_natives.cc', |
| 459 'builtin.h', | 451 'builtin.h', |
| 460 'io_natives.h', | 452 'io_natives.h', |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 '-fPIC', | 674 '-fPIC', |
| 683 ], | 675 ], |
| 684 }], | 676 }], |
| 685 ], | 677 ], |
| 686 }, | 678 }, |
| 687 ], | 679 ], |
| 688 }], | 680 }], |
| 689 ], | 681 ], |
| 690 } | 682 } |
| 691 | 683 |
| OLD | NEW |