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 'builtin_in_cc_file': '../bin/builtin_in.cc', | 7 'builtin_in_cc_file': '../bin/builtin_in.cc', |
8 'corelib_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_gen.cc', | 8 'corelib_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_gen.cc', |
9 'corelib_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_patch_gen.cc', | 9 'corelib_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_patch_gen.cc', |
10 'collection_cc_file': '<(SHARED_INTERMEDIATE_DIR)/collection_gen.cc', | 10 'collection_cc_file': '<(SHARED_INTERMEDIATE_DIR)/collection_gen.cc', |
(...skipping 13 matching lines...) Expand all Loading... |
24 { | 24 { |
25 'target_name': 'libdart_vm', | 25 'target_name': 'libdart_vm', |
26 'type': 'static_library', | 26 'type': 'static_library', |
27 'includes': [ | 27 'includes': [ |
28 'vm_sources.gypi', | 28 'vm_sources.gypi', |
29 '../platform/platform_headers.gypi', | 29 '../platform/platform_headers.gypi', |
30 '../platform/platform_sources.gypi', | 30 '../platform/platform_sources.gypi', |
31 ], | 31 ], |
32 'sources/': [ | 32 'sources/': [ |
33 # Exclude all _test.[cc|h] files. | 33 # Exclude all _test.[cc|h] files. |
34 ['exclude', '_test\\.cc|h$'], | 34 ['exclude', '_test\\.(cc|h)$'], |
35 ], | 35 ], |
36 'include_dirs': [ | 36 'include_dirs': [ |
37 '..', | 37 '..', |
38 ], | 38 ], |
39 'conditions': [ | 39 'conditions': [ |
40 ['OS=="android"', { | 40 ['OS=="android"', { |
41 'link_settings': { | 41 'link_settings': { |
42 'libraries': [ | 42 'libraries': [ |
43 '-lc', | 43 '-lc', |
44 '-lpthread', | 44 '-lpthread', |
45 ], | 45 ], |
46 }, | 46 }, |
47 }], | 47 }], |
48 ['OS=="linux"', { | 48 ['OS=="linux"', { |
49 'link_settings': { | 49 'link_settings': { |
50 'libraries': [ | 50 'libraries': [ |
51 '-lpthread', | 51 '-lpthread', |
52 '-lrt', | 52 '-lrt', |
53 ], | 53 ], |
54 }, | 54 }, |
55 }], | 55 }], |
56 ['OS=="win"', { | 56 ['OS=="win"', { |
57 'sources/' : [ | 57 'sources/' : [ |
58 ['exclude', 'gdbjit.cc'], | 58 ['exclude', 'gdbjit.cc'], |
59 ], | 59 ], |
60 }]], | 60 }], |
| 61 ['dart_vtune_support == 0', { |
| 62 'sources/' : [ |
| 63 ['exclude', 'vtune\\.(cc|h)$'], |
| 64 ], |
| 65 }], |
| 66 ['OS=="linux" and dart_vtune_support == 1', { |
| 67 # Link in libjitprofiling.a. |
| 68 'cflags': [ |
| 69 '-DDART_VTUNE_SUPPORT', |
| 70 '-I<(dart_vtune_root)/include', |
| 71 ], |
| 72 'link_settings': { |
| 73 'libraries': [ |
| 74 '-ljitprofiling', |
| 75 ], |
| 76 }, |
| 77 }]], |
61 }, | 78 }, |
62 { | 79 { |
63 'target_name': 'libdart_lib_withcore', | 80 'target_name': 'libdart_lib_withcore', |
64 'type': 'static_library', | 81 'type': 'static_library', |
65 'dependencies': [ | 82 'dependencies': [ |
66 'generate_corelib_cc_file', | 83 'generate_corelib_cc_file', |
67 'generate_corelib_patch_cc_file', | 84 'generate_corelib_patch_cc_file', |
68 'generate_collection_cc_file', | 85 'generate_collection_cc_file', |
69 'generate_math_cc_file', | 86 'generate_math_cc_file', |
70 'generate_math_patch_cc_file', | 87 'generate_math_patch_cc_file', |
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 '--include', 'INTENTIONALLY_LEFT_BLANK', | 575 '--include', 'INTENTIONALLY_LEFT_BLANK', |
559 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO', | 576 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO', |
560 '<(snapshot_test_dart_file)', | 577 '<(snapshot_test_dart_file)', |
561 ], | 578 ], |
562 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' | 579 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' |
563 }, | 580 }, |
564 ] | 581 ] |
565 }, | 582 }, |
566 ] | 583 ] |
567 } | 584 } |
OLD | NEW |