| 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_impl_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_impl_gen.cc', | 9 'corelib_impl_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_impl_gen.cc', |
| 10 'math_cc_file': '<(SHARED_INTERMEDIATE_DIR)/math_gen.cc', | 10 'math_cc_file': '<(SHARED_INTERMEDIATE_DIR)/math_gen.cc', |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 '../platform/platform_sources.gypi', | 24 '../platform/platform_sources.gypi', |
| 25 ], | 25 ], |
| 26 'sources/': [ | 26 'sources/': [ |
| 27 # Exclude all _test.[cc|h] files. | 27 # Exclude all _test.[cc|h] files. |
| 28 ['exclude', '_test\\.cc|h$'], | 28 ['exclude', '_test\\.cc|h$'], |
| 29 ], | 29 ], |
| 30 'include_dirs': [ | 30 'include_dirs': [ |
| 31 '..', | 31 '..', |
| 32 ], | 32 ], |
| 33 'conditions': [ | 33 'conditions': [ |
| 34 ['OS=="android"', { |
| 35 'link_settings': { |
| 36 'libraries': [ |
| 37 '-lc', |
| 38 '-lpthread', |
| 39 ], |
| 40 }, |
| 41 }], |
| 34 ['OS=="linux"', { | 42 ['OS=="linux"', { |
| 35 'link_settings': { | 43 'link_settings': { |
| 36 'libraries': [ | 44 'libraries': [ |
| 37 '-lpthread', | 45 '-lpthread', |
| 38 '-lrt', | 46 '-lrt', |
| 39 ], | 47 ], |
| 40 }, | 48 }, |
| 41 }], | 49 }], |
| 42 ['OS=="win"', { | 50 ['OS=="win"', { |
| 43 'sources/' : [ | 51 'sources/' : [ |
| 44 ['exclude', 'gdbjit.cc'], | 52 ['exclude', 'gdbjit.cc'], |
| 45 ], | 53 ], |
| 46 }]], | 54 }], |
| 55 ['dart_want_separate_host_toolset==1', { |
| 56 'toolsets': ['host', 'target'], |
| 57 }, { |
| 58 'toolsets': ['target'], |
| 59 }], |
| 60 ], |
| 47 }, | 61 }, |
| 48 { | 62 { |
| 49 'target_name': 'libdart_lib_withcore', | 63 'target_name': 'libdart_lib_withcore', |
| 50 'type': 'static_library', | 64 'type': 'static_library', |
| 51 'dependencies': [ | 65 'dependencies': [ |
| 52 'generate_corelib_cc_file', | 66 'generate_corelib_cc_file', |
| 53 'generate_corelib_impl_cc_file', | 67 'generate_corelib_impl_cc_file', |
| 54 'generate_math_cc_file', | 68 'generate_math_cc_file', |
| 55 'generate_isolate_cc_file', | 69 'generate_isolate_cc_file', |
| 56 'generate_mirrors_cc_file', | 70 'generate_mirrors_cc_file', |
| 57 ], | 71 ], |
| 58 'includes': [ | 72 'includes': [ |
| 59 '../lib/lib_sources.gypi', | 73 '../lib/lib_sources.gypi', |
| 60 '../lib/lib_impl_sources.gypi', | 74 '../lib/lib_impl_sources.gypi', |
| 61 '../lib/isolate_sources.gypi', | 75 '../lib/isolate_sources.gypi', |
| 62 '../lib/mirrors_sources.gypi', | 76 '../lib/mirrors_sources.gypi', |
| 63 ], | 77 ], |
| 64 'sources': [ | 78 'sources': [ |
| 65 'bootstrap.cc', | 79 'bootstrap.cc', |
| 66 # Include generated source files. | 80 # Include generated source files. |
| 67 '<(corelib_cc_file)', | 81 '<(corelib_cc_file)', |
| 68 '<(corelib_impl_cc_file)', | 82 '<(corelib_impl_cc_file)', |
| 69 '<(math_cc_file)', | 83 '<(math_cc_file)', |
| 70 '<(isolate_cc_file)', | 84 '<(isolate_cc_file)', |
| 71 '<(mirrors_cc_file)', | 85 '<(mirrors_cc_file)', |
| 72 ], | 86 ], |
| 73 'include_dirs': [ | 87 'include_dirs': [ |
| 74 '..', | 88 '..', |
| 75 ], | 89 ], |
| 90 'conditions': [ |
| 91 ['dart_want_separate_host_toolset==1', { |
| 92 'toolsets': ['host', 'target'], |
| 93 }, { |
| 94 'toolsets': ['target'], |
| 95 }] |
| 96 ], |
| 76 }, | 97 }, |
| 77 { | 98 { |
| 78 'target_name': 'libdart_lib', | 99 'target_name': 'libdart_lib', |
| 79 'type': 'static_library', | 100 'type': 'static_library', |
| 80 'includes': [ | 101 'includes': [ |
| 81 '../lib/lib_sources.gypi', | 102 '../lib/lib_sources.gypi', |
| 82 '../lib/lib_impl_sources.gypi', | 103 '../lib/lib_impl_sources.gypi', |
| 83 '../lib/isolate_sources.gypi', | 104 '../lib/isolate_sources.gypi', |
| 84 '../lib/mirrors_sources.gypi', | 105 '../lib/mirrors_sources.gypi', |
| 85 ], | 106 ], |
| 86 'sources': [ | 107 'sources': [ |
| 87 'bootstrap_nocorelib.cc', | 108 'bootstrap_nocorelib.cc', |
| 88 ], | 109 ], |
| 89 'include_dirs': [ | 110 'include_dirs': [ |
| 90 '..', | 111 '..', |
| 91 ], | 112 ], |
| 113 'conditions': [ |
| 114 ['dart_want_separate_host_toolset==1', { |
| 115 'toolsets': ['host', 'target'], |
| 116 }, { |
| 117 'toolsets': ['target'], |
| 118 }] |
| 119 ], |
| 92 }, | 120 }, |
| 93 { | 121 { |
| 94 'target_name': 'generate_corelib_cc_file', | 122 'target_name': 'generate_corelib_cc_file', |
| 95 'type': 'none', | 123 'type': 'none', |
| 96 'includes': [ | 124 'includes': [ |
| 97 # Load the runtime implementation sources. | 125 # Load the runtime implementation sources. |
| 98 '../lib/lib_sources.gypi', | 126 '../lib/lib_sources.gypi', |
| 99 # Load the shared core library sources. | 127 # Load the shared core library sources. |
| 100 '../../corelib/src/corelib_sources.gypi', | 128 '../../corelib/src/corelib_sources.gypi', |
| 101 ], | 129 ], |
| (...skipping 19 matching lines...) Expand all Loading... |
| 121 'python', | 149 'python', |
| 122 'tools/create_string_literal.py', | 150 'tools/create_string_literal.py', |
| 123 '--output', '<(corelib_cc_file)', | 151 '--output', '<(corelib_cc_file)', |
| 124 '--input_cc', '<(builtin_in_cc_file)', | 152 '--input_cc', '<(builtin_in_cc_file)', |
| 125 '--include', 'vm/bootstrap.h', | 153 '--include', 'vm/bootstrap.h', |
| 126 '--var_name', 'dart::Bootstrap::corelib_source_', | 154 '--var_name', 'dart::Bootstrap::corelib_source_', |
| 127 '<@(_sources)', | 155 '<@(_sources)', |
| 128 ], | 156 ], |
| 129 'message': 'Generating ''<(corelib_cc_file)'' file.' | 157 'message': 'Generating ''<(corelib_cc_file)'' file.' |
| 130 }, | 158 }, |
| 131 ] | 159 ], |
| 160 'conditions': [ |
| 161 ['dart_want_separate_host_toolset==1', { |
| 162 'toolsets': ['host', 'target'], |
| 163 }, { |
| 164 'toolsets': ['target'], |
| 165 }] |
| 166 ], |
| 132 }, | 167 }, |
| 133 { | 168 { |
| 134 'target_name': 'generate_corelib_impl_cc_file', | 169 'target_name': 'generate_corelib_impl_cc_file', |
| 135 'type': 'none', | 170 'type': 'none', |
| 136 'includes': [ | 171 'includes': [ |
| 137 # Load the runtime implementation sources. | 172 # Load the runtime implementation sources. |
| 138 '../lib/lib_impl_sources.gypi', | 173 '../lib/lib_impl_sources.gypi', |
| 139 # Load the shared core library sources. | 174 # Load the shared core library sources. |
| 140 '../../corelib/src/implementation/corelib_impl_sources.gypi', | 175 '../../corelib/src/implementation/corelib_impl_sources.gypi', |
| 141 ], | 176 ], |
| (...skipping 19 matching lines...) Expand all Loading... |
| 161 'python', | 196 'python', |
| 162 'tools/create_string_literal.py', | 197 'tools/create_string_literal.py', |
| 163 '--output', '<(corelib_impl_cc_file)', | 198 '--output', '<(corelib_impl_cc_file)', |
| 164 '--input_cc', '<(builtin_in_cc_file)', | 199 '--input_cc', '<(builtin_in_cc_file)', |
| 165 '--include', 'vm/bootstrap.h', | 200 '--include', 'vm/bootstrap.h', |
| 166 '--var_name', 'dart::Bootstrap::corelib_impl_source_', | 201 '--var_name', 'dart::Bootstrap::corelib_impl_source_', |
| 167 '<@(_sources)', | 202 '<@(_sources)', |
| 168 ], | 203 ], |
| 169 'message': 'Generating ''<(corelib_impl_cc_file)'' file.' | 204 'message': 'Generating ''<(corelib_impl_cc_file)'' file.' |
| 170 }, | 205 }, |
| 171 ] | 206 ], |
| 207 'conditions': [ |
| 208 ['dart_want_separate_host_toolset==1', { |
| 209 'toolsets': ['host', 'target'], |
| 210 }, { |
| 211 'toolsets': ['target'], |
| 212 }] |
| 213 ], |
| 172 }, | 214 }, |
| 173 { | 215 { |
| 174 'target_name': 'generate_math_cc_file', | 216 'target_name': 'generate_math_cc_file', |
| 175 'type': 'none', | 217 'type': 'none', |
| 176 'includes': [ | 218 'includes': [ |
| 177 # Load the shared math library sources. | 219 # Load the shared math library sources. |
| 178 '../../lib/math/math_sources.gypi', | 220 '../../lib/math/math_sources.gypi', |
| 179 ], | 221 ], |
| 180 'sources/': [ | 222 'sources/': [ |
| 181 # Exclude all .[cc|h] files. | 223 # Exclude all .[cc|h] files. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 199 'python', | 241 'python', |
| 200 'tools/create_string_literal.py', | 242 'tools/create_string_literal.py', |
| 201 '--output', '<(math_cc_file)', | 243 '--output', '<(math_cc_file)', |
| 202 '--input_cc', '<(builtin_in_cc_file)', | 244 '--input_cc', '<(builtin_in_cc_file)', |
| 203 '--include', 'vm/bootstrap.h', | 245 '--include', 'vm/bootstrap.h', |
| 204 '--var_name', 'dart::Bootstrap::math_source_', | 246 '--var_name', 'dart::Bootstrap::math_source_', |
| 205 '<@(_sources)', | 247 '<@(_sources)', |
| 206 ], | 248 ], |
| 207 'message': 'Generating ''<(math_cc_file)'' file.' | 249 'message': 'Generating ''<(math_cc_file)'' file.' |
| 208 }, | 250 }, |
| 209 ] | 251 ], |
| 252 'conditions': [ |
| 253 ['dart_want_separate_host_toolset==1', { |
| 254 'toolsets': ['host', 'target'], |
| 255 }, { |
| 256 'toolsets': ['target'], |
| 257 }] |
| 258 ], |
| 210 }, | 259 }, |
| 211 { | 260 { |
| 212 'target_name': 'generate_mirrors_cc_file', | 261 'target_name': 'generate_mirrors_cc_file', |
| 213 'type': 'none', | 262 'type': 'none', |
| 214 'includes': [ | 263 'includes': [ |
| 215 # Load the shared core library sources. | 264 # Load the shared core library sources. |
| 216 '../lib/mirrors_sources.gypi', | 265 '../lib/mirrors_sources.gypi', |
| 217 ], | 266 ], |
| 218 'sources/': [ | 267 'sources/': [ |
| 219 # Exclude all .[cc|h] files. | 268 # Exclude all .[cc|h] files. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 237 'python', | 286 'python', |
| 238 'tools/create_string_literal.py', | 287 'tools/create_string_literal.py', |
| 239 '--output', '<(mirrors_cc_file)', | 288 '--output', '<(mirrors_cc_file)', |
| 240 '--input_cc', '<(builtin_in_cc_file)', | 289 '--input_cc', '<(builtin_in_cc_file)', |
| 241 '--include', 'vm/bootstrap.h', | 290 '--include', 'vm/bootstrap.h', |
| 242 '--var_name', 'dart::Bootstrap::mirrors_source_', | 291 '--var_name', 'dart::Bootstrap::mirrors_source_', |
| 243 '<@(_sources)', | 292 '<@(_sources)', |
| 244 ], | 293 ], |
| 245 'message': 'Generating ''<(mirrors_cc_file)'' file.' | 294 'message': 'Generating ''<(mirrors_cc_file)'' file.' |
| 246 }, | 295 }, |
| 247 ] | 296 ], |
| 297 'conditions': [ |
| 298 ['dart_want_separate_host_toolset==1', { |
| 299 'toolsets': ['host', 'target'], |
| 300 }, { |
| 301 'toolsets': ['target'], |
| 302 }] |
| 303 ], |
| 248 }, | 304 }, |
| 249 { | 305 { |
| 250 'target_name': 'generate_isolate_cc_file', | 306 'target_name': 'generate_isolate_cc_file', |
| 251 'type': 'none', | 307 'type': 'none', |
| 252 'includes': [ | 308 'includes': [ |
| 253 # Load the runtime implementation sources. | 309 # Load the runtime implementation sources. |
| 254 '../lib/isolate_sources.gypi', | 310 '../lib/isolate_sources.gypi', |
| 255 ], | 311 ], |
| 256 'sources/': [ | 312 'sources/': [ |
| 257 # Exclude all .[cc|h] files. | 313 # Exclude all .[cc|h] files. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 275 'python', | 331 'python', |
| 276 'tools/create_string_literal.py', | 332 'tools/create_string_literal.py', |
| 277 '--output', '<(isolate_cc_file)', | 333 '--output', '<(isolate_cc_file)', |
| 278 '--input_cc', '<(builtin_in_cc_file)', | 334 '--input_cc', '<(builtin_in_cc_file)', |
| 279 '--include', 'vm/bootstrap.h', | 335 '--include', 'vm/bootstrap.h', |
| 280 '--var_name', 'dart::Bootstrap::isolate_source_', | 336 '--var_name', 'dart::Bootstrap::isolate_source_', |
| 281 '<@(_sources)', | 337 '<@(_sources)', |
| 282 ], | 338 ], |
| 283 'message': 'Generating ''<(isolate_cc_file)'' file.' | 339 'message': 'Generating ''<(isolate_cc_file)'' file.' |
| 284 }, | 340 }, |
| 341 ], |
| 342 'conditions': [ |
| 343 ['dart_want_separate_host_toolset==1', { |
| 344 'toolsets': ['host', 'target'], |
| 345 }, { |
| 346 'toolsets': ['target'], |
| 347 }] |
| 285 ] | 348 ] |
| 286 }, | 349 }, |
| 287 { | 350 { |
| 288 'target_name': 'generate_snapshot_test_dat_file', | 351 'target_name': 'generate_snapshot_test_dat_file', |
| 289 'type': 'none', | 352 'type': 'none', |
| 290 'actions': [ | 353 'actions': [ |
| 291 { | 354 { |
| 292 'action_name': 'generate_snapshot_test_dat', | 355 'action_name': 'generate_snapshot_test_dat', |
| 293 'inputs': [ | 356 'inputs': [ |
| 294 '../tools/create_string_literal.py', | 357 '../tools/create_string_literal.py', |
| 295 '<(snapshot_test_in_dat_file)', | 358 '<(snapshot_test_in_dat_file)', |
| 296 '<(snapshot_test_dart_file)', | 359 '<(snapshot_test_dart_file)', |
| 297 ], | 360 ], |
| 298 'outputs': [ | 361 'outputs': [ |
| 299 '<(snapshot_test_dat_file)', | 362 '<(snapshot_test_dat_file)', |
| 300 ], | 363 ], |
| 301 'action': [ | 364 'action': [ |
| 302 'python', | 365 'python', |
| 303 'tools/create_string_literal.py', | 366 'tools/create_string_literal.py', |
| 304 '--output', '<(snapshot_test_dat_file)', | 367 '--output', '<(snapshot_test_dat_file)', |
| 305 '--input_cc', '<(snapshot_test_in_dat_file)', | 368 '--input_cc', '<(snapshot_test_in_dat_file)', |
| 306 '--include', 'INTENTIONALLY_LEFT_BLANK', | 369 '--include', 'INTENTIONALLY_LEFT_BLANK', |
| 307 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO', | 370 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO', |
| 308 '<(snapshot_test_dart_file)', | 371 '<(snapshot_test_dart_file)', |
| 309 ], | 372 ], |
| 310 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' | 373 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' |
| 311 }, | 374 }, |
| 312 ] | 375 ], |
| 376 'conditions': [ |
| 377 ['dart_want_separate_host_toolset==1', { |
| 378 'toolsets': ['host'], |
| 379 }, { |
| 380 'toolsets': ['target'], |
| 381 }], |
| 382 ], |
| 313 }, | 383 }, |
| 314 ] | 384 ] |
| 315 } | 385 } |
| OLD | NEW |