| OLD | NEW |
| 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # TODO(mark): Upstream this file to v8. | 5 # TODO(mark): Upstream this file to v8. |
| 6 { | 6 { |
| 7 'variables': { | 7 'variables': { |
| 8 'chromium_code': 1, | 8 'chromium_code': 1, |
| 9 'base_source_files': [ | 9 'base_source_files': [ |
| 10 '../../v8/src/third_party/dtoa/dtoa.c', | 10 '../../v8/src/third_party/dtoa/dtoa.c', |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 '<@(base_source_files)', | 328 '<@(base_source_files)', |
| 329 ], | 329 ], |
| 330 'sources!': [ | 330 'sources!': [ |
| 331 '<@(not_base_source_files)', | 331 '<@(not_base_source_files)', |
| 332 ], | 332 ], |
| 333 'sources/': [ | 333 'sources/': [ |
| 334 ['exclude', '-arm\\.cc$'], | 334 ['exclude', '-arm\\.cc$'], |
| 335 ['exclude', 'src/platform-.*\\.cc$' ], | 335 ['exclude', 'src/platform-.*\\.cc$' ], |
| 336 ], | 336 ], |
| 337 'conditions': [ | 337 'conditions': [ |
| 338 ['OS=="linux"', | 338 ['OS=="linux"', |
| 339 { | 339 { |
| 340 'link_settings': { |
| 341 'libraries': [ |
| 342 # Needed for clock_gettime() used by src/platform-linux.cc. |
| 343 '-lrt', |
| 344 ], |
| 345 }, |
| 340 'sources/': [ | 346 'sources/': [ |
| 341 ['include', 'src/platform-linux\\.cc$'], | 347 ['include', 'src/platform-linux\\.cc$'], |
| 342 ['include', 'src/platform-posix\\.cc$'] | 348 ['include', 'src/platform-posix\\.cc$'] |
| 343 ] | 349 ] |
| 344 } | 350 } |
| 345 ], | 351 ], |
| 346 ['OS=="mac"', | 352 ['OS=="mac"', |
| 347 { | 353 { |
| 348 'sources/': [ | 354 'sources/': [ |
| 349 ['include', 'src/platform-macos\\.cc$'], | 355 ['include', 'src/platform-macos\\.cc$'], |
| (...skipping 22 matching lines...) Expand all Loading... |
| 372 'js2c', | 378 'js2c', |
| 373 'v8_base', | 379 'v8_base', |
| 374 ], | 380 ], |
| 375 'include_dirs': [ | 381 'include_dirs': [ |
| 376 '../../v8/src', | 382 '../../v8/src', |
| 377 ], | 383 ], |
| 378 'sources': [ | 384 'sources': [ |
| 379 '<(SHARED_INTERMEDIATE_DIR)/v8/libraries.cc', | 385 '<(SHARED_INTERMEDIATE_DIR)/v8/libraries.cc', |
| 380 '../../v8/src/snapshot-empty.cc', | 386 '../../v8/src/snapshot-empty.cc', |
| 381 ], | 387 ], |
| 388 'export_dependent_settings': [ |
| 389 'v8_base', |
| 390 ], |
| 382 }, | 391 }, |
| 383 { | 392 { |
| 384 'target_name': 'mksnapshot', | 393 'target_name': 'mksnapshot', |
| 385 'type': 'executable', | 394 'type': 'executable', |
| 386 'dependencies': [ | 395 'dependencies': [ |
| 387 'v8_nosnapshot', | 396 'v8_nosnapshot', |
| 388 ], | 397 ], |
| 389 'msvs_guid': '865575D0-37E2-405E-8CBA-5F6C485B5A26', | 398 'msvs_guid': '865575D0-37E2-405E-8CBA-5F6C485B5A26', |
| 390 'sources': [ | 399 'sources': [ |
| 391 '../../v8/src/mksnapshot.cc', | 400 '../../v8/src/mksnapshot.cc', |
| (...skipping 25 matching lines...) Expand all Loading... |
| 417 ], | 426 ], |
| 418 'sources': [ | 427 'sources': [ |
| 419 '<(SHARED_INTERMEDIATE_DIR)/v8/libraries-empty.cc', | 428 '<(SHARED_INTERMEDIATE_DIR)/v8/libraries-empty.cc', |
| 420 '<(INTERMEDIATE_DIR)/snapshot.cc', | 429 '<(INTERMEDIATE_DIR)/snapshot.cc', |
| 421 ], | 430 ], |
| 422 'direct_dependent_settings': { | 431 'direct_dependent_settings': { |
| 423 'include_dirs': [ | 432 'include_dirs': [ |
| 424 '../../v8/include', | 433 '../../v8/include', |
| 425 ], | 434 ], |
| 426 }, | 435 }, |
| 436 'export_dependent_settings': [ |
| 437 'v8_base', |
| 438 ], |
| 427 }, | 439 }, |
| 428 { | 440 { |
| 429 'target_name': 'v8_shell', | 441 'target_name': 'v8_shell', |
| 430 'type': 'executable', | 442 'type': 'executable', |
| 431 'dependencies': [ | 443 'dependencies': [ |
| 432 'v8', | 444 'v8', |
| 433 ], | 445 ], |
| 434 'sources': [ | 446 'sources': [ |
| 435 '../../v8/samples/shell.cc', | 447 '../../v8/samples/shell.cc', |
| 436 ], | 448 ], |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 ]}, | 593 ]}, |
| 582 }], | 594 }], |
| 583 [ 'OS=="win"', { | 595 [ 'OS=="win"', { |
| 584 'sources!': [ '../../v8/src/d8-readline.cc' ], | 596 'sources!': [ '../../v8/src/d8-readline.cc' ], |
| 585 }], | 597 }], |
| 586 ], | 598 ], |
| 587 }, | 599 }, |
| 588 ]}], # OS != "linux" (temporary, TODO(sgk)) | 600 ]}], # OS != "linux" (temporary, TODO(sgk)) |
| 589 ], | 601 ], |
| 590 } | 602 } |
| OLD | NEW |