| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 'action_name': 'js2c', | 258 'action_name': 'js2c', |
| 259 'inputs': [ | 259 'inputs': [ |
| 260 '../../v8/tools/js2c.py', | 260 '../../v8/tools/js2c.py', |
| 261 '<@(library_files)', | 261 '<@(library_files)', |
| 262 ], | 262 ], |
| 263 'outputs': [ | 263 'outputs': [ |
| 264 '<(SHARED_INTERMEDIATE_DIR)/v8/libraries.cc', | 264 '<(SHARED_INTERMEDIATE_DIR)/v8/libraries.cc', |
| 265 '<(SHARED_INTERMEDIATE_DIR)/v8/libraries-empty.cc', | 265 '<(SHARED_INTERMEDIATE_DIR)/v8/libraries-empty.cc', |
| 266 ], | 266 ], |
| 267 'action': ['python', '../../v8/tools/js2c.py', '<@(_outputs)', 'CORE',
'<@(library_files)'], | 267 'action': ['python', '../../v8/tools/js2c.py', '<@(_outputs)', 'CORE',
'<@(library_files)'], |
| 268 # TODO(sgk): figure out how to get gyp and SCons to play nice here. | |
| 269 'conditions': [ | |
| 270 ['OS=="linux"', {'action=': ['python', '${SOURCES[0]}', '${TARGETS}'
, 'CORE', '${SOURCES[1:]}'],}], | |
| 271 ], | |
| 272 }, | 268 }, |
| 273 ], | 269 ], |
| 274 }, | 270 }, |
| 275 { | 271 { |
| 276 'target_name': 'd8_js2c', | 272 'target_name': 'd8_js2c', |
| 277 'type': 'none', | 273 'type': 'none', |
| 278 'variables': { | 274 'variables': { |
| 279 'library_files': [ | 275 'library_files': [ |
| 280 '../../v8/src/d8.js', | 276 '../../v8/src/d8.js', |
| 281 '../../v8/src/macros.py', | 277 '../../v8/src/macros.py', |
| 282 ], | 278 ], |
| 283 }, | 279 }, |
| 284 'actions': [ | 280 'actions': [ |
| 285 { | 281 { |
| 286 'action_name': 'js2c', | 282 'action_name': 'js2c', |
| 287 'inputs': [ | 283 'inputs': [ |
| 288 '../../v8/tools/js2c.py', | 284 '../../v8/tools/js2c.py', |
| 289 '<@(library_files)', | 285 '<@(library_files)', |
| 290 ], | 286 ], |
| 291 'extra_inputs': [ | 287 'extra_inputs': [ |
| 292 ], | 288 ], |
| 293 'outputs': [ | 289 'outputs': [ |
| 294 '<(SHARED_INTERMEDIATE_DIR)/v8/d8-js.cc', | 290 '<(SHARED_INTERMEDIATE_DIR)/v8/d8-js.cc', |
| 295 '<(SHARED_INTERMEDIATE_DIR)/v8/d8-js-empty.cc', | 291 '<(SHARED_INTERMEDIATE_DIR)/v8/d8-js-empty.cc', |
| 296 ], | 292 ], |
| 297 'action': ['python', '../../v8/tools/js2c.py', '<@(_outputs)', 'D8', '
<@(library_files)'], | 293 'action': ['python', '../../v8/tools/js2c.py', '<@(_outputs)', 'D8', '
<@(library_files)'], |
| 298 # TODO(sgk): figure out how to get gyp and SCons to play nice here. | |
| 299 'conditions': [ | |
| 300 ['OS=="linux"', {'action=': ['python', '${SOURCES[0]}', '${TARGETS}'
, 'D8', '${SOURCES[1:]}'],}], | |
| 301 ], | |
| 302 }, | 294 }, |
| 303 ], | 295 ], |
| 304 }, | 296 }, |
| 305 | 297 |
| 306 # Targets to build v8 for the native architecture (ia32). | 298 # Targets to build v8 for the native architecture (ia32). |
| 307 { | 299 { |
| 308 'target_name': 'v8_base', | 300 'target_name': 'v8_base', |
| 309 'type': 'static_library', | 301 'type': 'static_library', |
| 310 'include_dirs': [ | 302 'include_dirs': [ |
| 311 '../../v8/src', | 303 '../../v8/src', |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 '$(SDKROOT)/usr/lib/libreadline.dylib' | 525 '$(SDKROOT)/usr/lib/libreadline.dylib' |
| 534 ]}, | 526 ]}, |
| 535 }], | 527 }], |
| 536 [ 'OS=="win"', { | 528 [ 'OS=="win"', { |
| 537 'sources!': [ '../../v8/src/d8-readline.cc' ], | 529 'sources!': [ '../../v8/src/d8-readline.cc' ], |
| 538 }], | 530 }], |
| 539 ], | 531 ], |
| 540 }, | 532 }, |
| 541 ], | 533 ], |
| 542 } | 534 } |
| OLD | NEW |