| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 '../../v8/src/zone.h', | 224 '../../v8/src/zone.h', |
| 225 ], | 225 ], |
| 226 'not_base_source_files': [ | 226 'not_base_source_files': [ |
| 227 # These files are #included by others and are not meant to be compiled | 227 # These files are #included by others and are not meant to be compiled |
| 228 # directly. | 228 # directly. |
| 229 '../../v8/src/third_party/dtoa/dtoa.c', | 229 '../../v8/src/third_party/dtoa/dtoa.c', |
| 230 ], | 230 ], |
| 231 'd8_source_files': [ | 231 'd8_source_files': [ |
| 232 '../../v8/src/d8-debug.cc', | 232 '../../v8/src/d8-debug.cc', |
| 233 '../../v8/src/d8-readline.cc', | 233 '../../v8/src/d8-readline.cc', |
| 234 '../../v8/src/d8-windows.cc', |
| 235 '../../v8/src/d8-posix.cc', |
| 234 '../../v8/src/d8.cc', | 236 '../../v8/src/d8.cc', |
| 235 ], | 237 ], |
| 236 }, | 238 }, |
| 237 'includes': [ | 239 'includes': [ |
| 238 '../common.gypi', | 240 '../common.gypi', |
| 239 ], | 241 ], |
| 240 'target_defaults': { | 242 'target_defaults': { |
| 241 'configurations': { | 243 'configurations': { |
| 242 'Debug': { | 244 'Debug': { |
| 243 'defines': [ | 245 'defines': [ |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 ], | 464 ], |
| 463 'include_dirs': [ | 465 'include_dirs': [ |
| 464 '../../v8/src', | 466 '../../v8/src', |
| 465 ], | 467 ], |
| 466 'sources': [ | 468 'sources': [ |
| 467 '<(SHARED_INTERMEDIATE_DIR)/v8/d8-js.cc', | 469 '<(SHARED_INTERMEDIATE_DIR)/v8/d8-js.cc', |
| 468 '<@(d8_source_files)', | 470 '<@(d8_source_files)', |
| 469 ], | 471 ], |
| 470 'conditions': [ | 472 'conditions': [ |
| 471 [ 'OS=="linux"', { | 473 [ 'OS=="linux"', { |
| 474 'sources!': [ '../../v8/src/d8-windows.cc' ], |
| 472 'link_settings': { 'libraries': [ '-lreadline' ] }, | 475 'link_settings': { 'libraries': [ '-lreadline' ] }, |
| 473 }], | 476 }], |
| 474 [ 'OS=="mac"', { | 477 [ 'OS=="mac"', { |
| 478 'sources!': [ '../../v8/src/d8-windows.cc' ], |
| 475 'link_settings': { 'libraries': [ | 479 'link_settings': { 'libraries': [ |
| 476 '$(SDKROOT)/usr/lib/libreadline.dylib' | 480 '$(SDKROOT)/usr/lib/libreadline.dylib' |
| 477 ]}, | 481 ]}, |
| 478 }], | 482 }], |
| 479 [ 'OS=="win"', { | 483 [ 'OS=="win"', { |
| 480 'sources!': [ '../../v8/src/d8-readline.cc' ], | 484 'sources!': [ '../../v8/src/d8-readline.cc', '../../v8/src/d8-posix.cc
' ], |
| 481 }], | 485 }], |
| 482 ], | 486 ], |
| 483 }, | 487 }, |
| 484 ], | 488 ], |
| 485 | 489 |
| 486 # TODO(sgk): temporarily disable the arm targets on Linux while | 490 # TODO(sgk): temporarily disable the arm targets on Linux while |
| 487 # we work out how to refactor the generator and/or add configuration | 491 # we work out how to refactor the generator and/or add configuration |
| 488 # settings to the .gyp file to handle building both variants in | 492 # settings to the .gyp file to handle building both variants in |
| 489 # the same output directory. | 493 # the same output directory. |
| 490 'conditions': [ ['OS!="linux"', { 'targets': [ | 494 'conditions': [ ['OS!="linux"', { 'targets': [ |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 ], | 582 ], |
| 579 'include_dirs': [ | 583 'include_dirs': [ |
| 580 '../../v8/src', | 584 '../../v8/src', |
| 581 ], | 585 ], |
| 582 'sources': [ | 586 'sources': [ |
| 583 '<(SHARED_INTERMEDIATE_DIR)/v8/d8-js.cc', | 587 '<(SHARED_INTERMEDIATE_DIR)/v8/d8-js.cc', |
| 584 '<@(d8_source_files)', | 588 '<@(d8_source_files)', |
| 585 ], | 589 ], |
| 586 'conditions': [ | 590 'conditions': [ |
| 587 [ 'OS=="linux"', { | 591 [ 'OS=="linux"', { |
| 592 'sources!': [ '../../v8/src/d8-windows.cc' ], |
| 588 'link_settings': { 'libraries': [ '-lreadline' ] }, | 593 'link_settings': { 'libraries': [ '-lreadline' ] }, |
| 589 }], | 594 }], |
| 590 [ 'OS=="mac"', { | 595 [ 'OS=="mac"', { |
| 596 'sources!': [ '../../v8/src/d8-windows.cc' ], |
| 591 'link_settings': { 'libraries': [ | 597 'link_settings': { 'libraries': [ |
| 592 '$(SDKROOT)/usr/lib/libreadline.dylib' | 598 '$(SDKROOT)/usr/lib/libreadline.dylib' |
| 593 ]}, | 599 ]}, |
| 594 }], | 600 }], |
| 595 [ 'OS=="win"', { | 601 [ 'OS=="win"', { |
| 596 'sources!': [ '../../v8/src/d8-readline.cc' ], | 602 'sources!': [ '../../v8/src/d8-readline.cc', '../../v8/src/d8-posix.cc
' ], |
| 597 }], | 603 }], |
| 598 ], | 604 ], |
| 599 }, | 605 }, |
| 600 ]}], # OS != "linux" (temporary, TODO(sgk)) | 606 ]}], # OS != "linux" (temporary, TODO(sgk)) |
| 601 ], | 607 ], |
| 602 } | 608 } |
| OLD | NEW |