1# Copyright 2018 the V8 project authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5{ 6 'variables': { 7 'V8_ROOT': '../../deps/v8', 8 'v8_code': 1, 9 'v8_enable_i18n_support%': 1, 10 }, 11 'includes': ['toolchain.gypi', 'features.gypi'], 12 'targets': [ 13 { 14 'target_name': 'd8', 15 'type': 'executable', 16 'dependencies': [ 17 'v8.gyp:v8', 18 'v8.gyp:v8_libbase', 19 'v8.gyp:v8_libplatform', 20 'v8.gyp:generate_bytecode_builtins_list', 21 ], 22 # Generated source files need this explicitly: 23 'include_dirs+': [ 24 '<(V8_ROOT)', 25 '<(DEPTH)', 26 '<(SHARED_INTERMEDIATE_DIR)', 27 ], 28 'sources': [ 29 '<(V8_ROOT)/src/d8/async-hooks-wrapper.cc', 30 '<(V8_ROOT)/src/d8/async-hooks-wrapper.h', 31 '<(V8_ROOT)/src/d8/d8-console.cc', 32 '<(V8_ROOT)/src/d8/d8-console.h', 33 '<(V8_ROOT)/src/d8/d8-js.cc', 34 '<(V8_ROOT)/src/d8/d8-platforms.cc', 35 '<(V8_ROOT)/src/d8/d8-platforms.h', 36 '<(V8_ROOT)/src/d8/d8.cc', 37 '<(V8_ROOT)/src/d8/d8.h', 38 ], 39 'conditions': [ 40 [ 'want_separate_host_toolset==1', { 41 'toolsets': [ 'target', ], 42 'dependencies': [ 43 'd8_js2c#host', 44 ], 45 }], 46 ['(OS=="linux" or OS=="mac" or OS=="freebsd" or OS=="netbsd" \ 47 or OS=="openbsd" or OS=="solaris" or OS=="android" \ 48 or OS=="qnx" or OS=="aix")', { 49 'sources': [ '<(V8_ROOT)/src/d8/d8-posix.cc', ] 50 }], 51 [ 'OS=="win"', { 52 'sources': [ '<(V8_ROOT)/src/d8/d8-windows.cc', ] 53 }], 54 [ 'component!="shared_library"', { 55 'conditions': [ 56 [ 'v8_postmortem_support==1', { 57 'xcode_settings': { 58 'OTHER_LDFLAGS': [ 59 '-Wl,-force_load,<(PRODUCT_DIR)/libv8_base.a' 60 ], 61 }, 62 }], 63 ], 64 }], 65 ['v8_enable_i18n_support==1', { 66 'dependencies': [ 67 '<(icu_gyp_path):icui18n', 68 '<(icu_gyp_path):icuuc', 69 ], 70 }], 71 ['OS=="win" and v8_enable_i18n_support==1', { 72 'dependencies': [ 73 '<(icu_gyp_path):icudata', 74 ], 75 }], 76 ], 77 }, 78 ], 79} 80