| OLD | NEW |
| (Empty) |
| 1 # Copyright 2013 The Chromium 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 'chromium_code': 1, | |
| 8 'gin_gen_path': '<(SHARED_INTERMEDIATE_DIR)/gin/', | |
| 9 }, | |
| 10 'targets': [ | |
| 11 { | |
| 12 'target_name': 'gin', | |
| 13 'type': '<(component)', | |
| 14 'dependencies': [ | |
| 15 '../base/base.gyp:base', | |
| 16 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | |
| 17 '../v8/src/v8.gyp:v8', | |
| 18 ], | |
| 19 'export_dependent_settings': [ | |
| 20 '../base/base.gyp:base', | |
| 21 '../v8/src/v8.gyp:v8', | |
| 22 ], | |
| 23 'defines': [ | |
| 24 'GIN_IMPLEMENTATION', | |
| 25 ], | |
| 26 'sources': [ | |
| 27 'arguments.cc', | |
| 28 'arguments.h', | |
| 29 'array_buffer.cc', | |
| 30 'array_buffer.h', | |
| 31 'context_holder.cc', | |
| 32 'converter.cc', | |
| 33 'converter.h', | |
| 34 'debug_impl.cc', | |
| 35 'debug_impl.h', | |
| 36 'dictionary.cc', | |
| 37 'dictionary.h', | |
| 38 'function_template.cc', | |
| 39 'function_template.h', | |
| 40 'gin_export.h', | |
| 41 'gin_features.cc', | |
| 42 'handle.h', | |
| 43 'interceptor.cc', | |
| 44 'interceptor.h', | |
| 45 'isolate_holder.cc', | |
| 46 'modules/console.cc', | |
| 47 'modules/console.h', | |
| 48 'modules/file_module_provider.cc', | |
| 49 'modules/file_module_provider.h', | |
| 50 'modules/module_registry.cc', | |
| 51 'modules/module_registry.h', | |
| 52 'modules/module_registry_observer.h', | |
| 53 'modules/module_runner_delegate.cc', | |
| 54 'modules/module_runner_delegate.h', | |
| 55 'modules/timer.cc', | |
| 56 'modules/timer.h', | |
| 57 'object_template_builder.cc', | |
| 58 'object_template_builder.h', | |
| 59 'per_context_data.cc', | |
| 60 'per_context_data.h', | |
| 61 'per_isolate_data.cc', | |
| 62 'per_isolate_data.h', | |
| 63 'public/context_holder.h', | |
| 64 'public/debug.h', | |
| 65 'public/gin_embedders.h', | |
| 66 'public/gin_features.h', | |
| 67 'public/isolate_holder.h', | |
| 68 'public/v8_platform.h', | |
| 69 'public/wrapper_info.h', | |
| 70 'runner.cc', | |
| 71 'runner.h', | |
| 72 'run_microtasks_observer.cc', | |
| 73 'run_microtasks_observer.h', | |
| 74 'shell_runner.cc', | |
| 75 'shell_runner.h', | |
| 76 'try_catch.cc', | |
| 77 'try_catch.h', | |
| 78 'v8_initializer.h', | |
| 79 'v8_initializer.cc', | |
| 80 'v8_isolate_memory_dump_provider.cc', | |
| 81 'v8_isolate_memory_dump_provider.h', | |
| 82 'v8_platform.cc', | |
| 83 'wrappable.cc', | |
| 84 'wrappable.h', | |
| 85 'wrapper_info.cc', | |
| 86 ], | |
| 87 'conditions': [ | |
| 88 ['v8_use_external_startup_data==1 and OS=="win"', { | |
| 89 'dependencies': [ | |
| 90 'gin_v8_snapshot_fingerprint', | |
| 91 '../crypto/crypto.gyp:crypto', | |
| 92 ], | |
| 93 'sources': [ | |
| 94 '<(gin_gen_path)/v8_snapshot_fingerprint.cc', | |
| 95 ], | |
| 96 'defines': [ | |
| 97 'V8_VERIFY_EXTERNAL_STARTUP_DATA', | |
| 98 ] | |
| 99 }], | |
| 100 ], | |
| 101 }, | |
| 102 { | |
| 103 'target_name': 'gin_v8_snapshot_fingerprint', | |
| 104 'type': 'none', | |
| 105 'variables': { | |
| 106 'snapshot_file': '<(PRODUCT_DIR)/snapshot_blob.bin', | |
| 107 'natives_file': '<(PRODUCT_DIR)/natives_blob.bin', | |
| 108 'output_file': '<(gin_gen_path)/v8_snapshot_fingerprint.cc', | |
| 109 }, | |
| 110 'includes': [ '../gin/fingerprint/fingerprint_v8_snapshot.gypi' ], | |
| 111 }, | |
| 112 { | |
| 113 'target_name': 'gin_shell', | |
| 114 'type': 'executable', | |
| 115 'dependencies': [ | |
| 116 '../base/base.gyp:base', | |
| 117 '../base/base.gyp:base_i18n', | |
| 118 '../v8/src/v8.gyp:v8', | |
| 119 'gin', | |
| 120 ], | |
| 121 'sources': [ | |
| 122 'shell/gin_main.cc', | |
| 123 ], | |
| 124 'msvs_settings': { | |
| 125 'VCLinkerTool': { | |
| 126 'SubSystem': '1', # /SUBSYSTEM:CONSOLE | |
| 127 }, | |
| 128 }, | |
| 129 }, | |
| 130 { | |
| 131 'target_name': 'gin_test', | |
| 132 'type': 'static_library', | |
| 133 'dependencies': [ | |
| 134 '../testing/gtest.gyp:gtest', | |
| 135 '../v8/src/v8.gyp:v8', | |
| 136 'gin', | |
| 137 ], | |
| 138 'export_dependent_settings': [ | |
| 139 '../testing/gtest.gyp:gtest', | |
| 140 'gin', | |
| 141 ], | |
| 142 'sources': [ | |
| 143 'test/file.cc', | |
| 144 'test/file.h', | |
| 145 'test/file_runner.cc', | |
| 146 'test/file_runner.h', | |
| 147 'test/gc.cc', | |
| 148 'test/gc.h', | |
| 149 'test/gtest.cc', | |
| 150 'test/gtest.h', | |
| 151 'test/v8_test.cc', | |
| 152 'test/v8_test.h', | |
| 153 ], | |
| 154 }, | |
| 155 { | |
| 156 'target_name': 'gin_unittests', | |
| 157 'type': 'executable', | |
| 158 'dependencies': [ | |
| 159 '../base/base.gyp:test_support_base', | |
| 160 '../v8/src/v8.gyp:v8', | |
| 161 'gin_shell', | |
| 162 'gin_test', | |
| 163 ], | |
| 164 'sources': [ | |
| 165 'converter_unittest.cc', | |
| 166 'interceptor_unittest.cc', | |
| 167 'modules/module_registry_unittest.cc', | |
| 168 'modules/timer_unittest.cc', | |
| 169 'per_context_data_unittest.cc', | |
| 170 'shell_runner_unittest.cc', | |
| 171 'shell/gin_shell_unittest.cc', | |
| 172 'test/run_all_unittests.cc', | |
| 173 'test/run_js_tests.cc', | |
| 174 'v8_isolate_memory_dump_provider_unittest.cc', | |
| 175 'wrappable_unittest.cc', | |
| 176 ], | |
| 177 }, | |
| 178 ], | |
| 179 'conditions': [ | |
| 180 ['test_isolation_mode != "noop"', { | |
| 181 'targets': [ | |
| 182 { | |
| 183 'target_name': 'gin_unittests_run', | |
| 184 'type': 'none', | |
| 185 'dependencies': [ | |
| 186 'gin_unittests', | |
| 187 ], | |
| 188 'includes': [ | |
| 189 '../build/isolate.gypi', | |
| 190 ], | |
| 191 'sources': [ | |
| 192 'gin_unittests.isolate', | |
| 193 ], | |
| 194 }, | |
| 195 ], | |
| 196 }], | |
| 197 ], | |
| 198 } | |
| OLD | NEW |