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', |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 { | 218 { |
219 'target_name': 'libdart_builtin', | 219 'target_name': 'libdart_builtin', |
220 'type': 'static_library', | 220 'type': 'static_library', |
221 'dependencies': [ | 221 'dependencies': [ |
222 'generate_builtin_cc_file', | 222 'generate_builtin_cc_file', |
223 'generate_crypto_cc_file', | 223 'generate_crypto_cc_file', |
224 'generate_io_cc_file', | 224 'generate_io_cc_file', |
225 'generate_json_cc_file', | 225 'generate_json_cc_file', |
226 'generate_uri_cc_file', | 226 'generate_uri_cc_file', |
227 'generate_utf_cc_file', | 227 'generate_utf_cc_file', |
| 228 'bin/net/nss.gyp:nss', |
| 229 'bin/net/nss.gyp:nspr', |
| 230 'bin/net/nss.gyp:nssckbi', |
| 231 'bin/net/nss.gyp:nss_static', |
| 232 'bin/net/ssl.gyp:libssl', |
| 233 'bin/net/zlib.gyp:zlib', |
228 ], | 234 ], |
229 'include_dirs': [ | 235 'include_dirs': [ |
230 '..', | 236 '..', |
231 ], | 237 ], |
232 'sources': [ | 238 'sources': [ |
233 'builtin_natives.cc', | 239 'builtin_natives.cc', |
234 'builtin.h', | 240 'builtin.h', |
235 ], | 241 ], |
236 'includes': [ | 242 'includes': [ |
237 'builtin_impl_sources.gypi', | 243 'builtin_impl_sources.gypi', |
238 '../platform/platform_sources.gypi', | 244 '../platform/platform_sources.gypi', |
239 ], | 245 ], |
240 'sources/': [ | 246 'sources/': [ |
241 ['exclude', '_test\\.(cc|h)$'], | 247 ['exclude', '_test\\.(cc|h)$'], |
242 ], | 248 ], |
| 249 'defines': [ |
| 250 'NSS_USE_STATIC_LIBS=1', |
| 251 ], |
243 'conditions': [ | 252 'conditions': [ |
244 ['OS=="win"', { | 253 ['OS=="win"', { |
245 'sources/' : [ | 254 'sources/': [ |
246 ['exclude', 'fdutils.h'], | 255 ['exclude', 'fdutils.h'], |
247 ], | 256 ], |
| 257 |
248 # TODO(antonm): fix the implementation. | 258 # TODO(antonm): fix the implementation. |
249 # Current implementation accepts char* strings | 259 # Current implementation accepts char* strings |
250 # and therefore fails to compile once _UNICODE is | 260 # and therefore fails to compile once _UNICODE is |
251 # enabled. That should be addressed using -A | 261 # enabled. That should be addressed using -A |
252 # versions of functions and adding necessary conversions. | 262 # versions of functions and adding necessary conversions. |
253 'configurations': { | 263 'configurations': { |
254 'Common_Base': { | 264 'Common_Base': { |
255 'msvs_configuration_attributes': { | 265 'msvs_configuration_attributes': { |
256 'CharacterSet': '0', | 266 'CharacterSet': '0', |
257 }, | 267 }, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 '<(builtin_cc_file)', | 316 '<(builtin_cc_file)', |
307 '<(crypto_cc_file)', | 317 '<(crypto_cc_file)', |
308 '<(io_cc_file)', | 318 '<(io_cc_file)', |
309 '<(json_cc_file)', | 319 '<(json_cc_file)', |
310 '<(uri_cc_file)', | 320 '<(uri_cc_file)', |
311 '<(utf_cc_file)', | 321 '<(utf_cc_file)', |
312 ], | 322 ], |
313 'conditions': [ | 323 'conditions': [ |
314 ['OS=="win"', { | 324 ['OS=="win"', { |
315 'link_settings': { | 325 'link_settings': { |
316 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 326 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
317 }, | 327 }, |
318 }]], | 328 }]], |
319 }, | 329 }, |
320 { | 330 { |
321 # Generate snapshot bin file. | 331 # Generate snapshot bin file. |
322 'target_name': 'generate_snapshot_bin', | 332 'target_name': 'generate_snapshot_bin', |
323 'type': 'none', | 333 'type': 'none', |
324 'dependencies': [ | 334 'dependencies': [ |
325 'gen_snapshot', | 335 'gen_snapshot', |
326 ], | 336 ], |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 '..', | 398 '..', |
389 ], | 399 ], |
390 'sources': [ | 400 'sources': [ |
391 'main.cc', | 401 'main.cc', |
392 'builtin_nolib.cc', | 402 'builtin_nolib.cc', |
393 '<(snapshot_cc_file)', | 403 '<(snapshot_cc_file)', |
394 ], | 404 ], |
395 'conditions': [ | 405 'conditions': [ |
396 ['OS=="win"', { | 406 ['OS=="win"', { |
397 'link_settings': { | 407 'link_settings': { |
398 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 408 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
399 }, | 409 }, |
400 # Generate an import library on Windows, by exporting a function. | 410 # Generate an import library on Windows, by exporting a function. |
401 # Extensions use this import library to link to the API in dart.exe. | 411 # Extensions use this import library to link to the API in dart.exe. |
402 'msvs_settings': { | 412 'msvs_settings': { |
403 'VCLinkerTool': { | 413 'VCLinkerTool': { |
404 'AdditionalOptions': [ '/EXPORT:Dart_True' ], | 414 'AdditionalOptions': [ '/EXPORT:Dart_True' ], |
405 }, | 415 }, |
406 }, | 416 }, |
407 }], | 417 }], |
408 ], | 418 ], |
(...skipping 17 matching lines...) Expand all Loading... |
426 '<(crypto_cc_file)', | 436 '<(crypto_cc_file)', |
427 '<(io_cc_file)', | 437 '<(io_cc_file)', |
428 '<(json_cc_file)', | 438 '<(json_cc_file)', |
429 '<(uri_cc_file)', | 439 '<(uri_cc_file)', |
430 '<(utf_cc_file)', | 440 '<(utf_cc_file)', |
431 'snapshot_empty.cc', | 441 'snapshot_empty.cc', |
432 ], | 442 ], |
433 'conditions': [ | 443 'conditions': [ |
434 ['OS=="win"', { | 444 ['OS=="win"', { |
435 'link_settings': { | 445 'link_settings': { |
436 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 446 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
437 }, | 447 }, |
438 }]], | 448 }]], |
439 }, | 449 }, |
440 { | 450 { |
441 'target_name': 'process_test', | 451 'target_name': 'process_test', |
442 'type': 'executable', | 452 'type': 'executable', |
443 'sources': [ | 453 'sources': [ |
444 'process_test.cc', | 454 'process_test.cc', |
445 ] | 455 ] |
446 }, | 456 }, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 'sources/': [ | 489 'sources/': [ |
480 ['exclude', '\\.(cc|h)$'], | 490 ['exclude', '\\.(cc|h)$'], |
481 ['include', 'run_vm_tests.cc'], | 491 ['include', 'run_vm_tests.cc'], |
482 ['include', 'builtin.cc'], | 492 ['include', 'builtin.cc'], |
483 ['include', '_gen\\.cc$'], | 493 ['include', '_gen\\.cc$'], |
484 ['include', '_test\\.(cc|h)$'], | 494 ['include', '_test\\.(cc|h)$'], |
485 ], | 495 ], |
486 'conditions': [ | 496 'conditions': [ |
487 ['OS=="win"', { | 497 ['OS=="win"', { |
488 'link_settings': { | 498 'link_settings': { |
489 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 499 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
490 }, | 500 }, |
491 }], | 501 }], |
492 ], | 502 ], |
493 }, | 503 }, |
494 { | 504 { |
495 'target_name': 'test_extension', | 505 'target_name': 'test_extension', |
496 'type': 'shared_library', | 506 'type': 'shared_library', |
497 'dependencies': [ | 507 'dependencies': [ |
498 'dart', | 508 'dart', |
499 ], | 509 ], |
(...skipping 19 matching lines...) Expand all Loading... |
519 ['OS=="mac"', { | 529 ['OS=="mac"', { |
520 'xcode_settings': { | 530 'xcode_settings': { |
521 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], | 531 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], |
522 }, | 532 }, |
523 }], | 533 }], |
524 ], | 534 ], |
525 }, | 535 }, |
526 ], | 536 ], |
527 } | 537 } |
528 | 538 |
OLD | NEW |