| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 import("//v8/gni/v8.gni") | 6 import("//v8/gni/v8.gni") |
| 7 | 7 |
| 8 # This is depended upon from the browser DLL on Windows, where V8 is not used, |
| 9 # but features are enabled. This cannot depend on V8. |
| 10 source_set("gin_features") { |
| 11 sources = [ |
| 12 "gin_export.h", |
| 13 "gin_features.cc", |
| 14 "public/gin_features.h", |
| 15 ] |
| 16 |
| 17 defines = [ "GIN_IMPLEMENTATION" ] |
| 18 |
| 19 deps = [ |
| 20 "//base", |
| 21 ] |
| 22 |
| 23 assert_no_deps = [ "//v8" ] |
| 24 } |
| 25 |
| 8 component("gin") { | 26 component("gin") { |
| 9 sources = [ | 27 sources = [ |
| 10 "arguments.cc", | 28 "arguments.cc", |
| 11 "arguments.h", | 29 "arguments.h", |
| 12 "array_buffer.cc", | 30 "array_buffer.cc", |
| 13 "array_buffer.h", | 31 "array_buffer.h", |
| 14 "context_holder.cc", | 32 "context_holder.cc", |
| 15 "converter.cc", | 33 "converter.cc", |
| 16 "converter.h", | 34 "converter.h", |
| 17 "debug_impl.cc", | 35 "debug_impl.cc", |
| 18 "debug_impl.h", | 36 "debug_impl.h", |
| 19 "dictionary.cc", | 37 "dictionary.cc", |
| 20 "dictionary.h", | 38 "dictionary.h", |
| 21 "function_template.cc", | 39 "function_template.cc", |
| 22 "function_template.h", | 40 "function_template.h", |
| 23 "gin_export.h", | 41 "gin_export.h", |
| 24 "gin_features.cc", | |
| 25 "handle.h", | 42 "handle.h", |
| 26 "interceptor.cc", | 43 "interceptor.cc", |
| 27 "interceptor.h", | 44 "interceptor.h", |
| 28 "isolate_holder.cc", | 45 "isolate_holder.cc", |
| 29 "modules/console.cc", | 46 "modules/console.cc", |
| 30 "modules/console.h", | 47 "modules/console.h", |
| 31 "modules/file_module_provider.cc", | 48 "modules/file_module_provider.cc", |
| 32 "modules/file_module_provider.h", | 49 "modules/file_module_provider.h", |
| 33 "modules/module_registry.cc", | 50 "modules/module_registry.cc", |
| 34 "modules/module_registry.h", | 51 "modules/module_registry.h", |
| 35 "modules/module_registry_observer.h", | 52 "modules/module_registry_observer.h", |
| 36 "modules/module_runner_delegate.cc", | 53 "modules/module_runner_delegate.cc", |
| 37 "modules/module_runner_delegate.h", | 54 "modules/module_runner_delegate.h", |
| 38 "modules/timer.cc", | 55 "modules/timer.cc", |
| 39 "modules/timer.h", | 56 "modules/timer.h", |
| 40 "object_template_builder.cc", | 57 "object_template_builder.cc", |
| 41 "object_template_builder.h", | 58 "object_template_builder.h", |
| 42 "per_context_data.cc", | 59 "per_context_data.cc", |
| 43 "per_context_data.h", | 60 "per_context_data.h", |
| 44 "per_isolate_data.cc", | 61 "per_isolate_data.cc", |
| 45 "per_isolate_data.h", | 62 "per_isolate_data.h", |
| 46 "public/context_holder.h", | 63 "public/context_holder.h", |
| 47 "public/debug.h", | 64 "public/debug.h", |
| 48 "public/gin_embedders.h", | 65 "public/gin_embedders.h", |
| 49 "public/gin_features.h", | |
| 50 "public/isolate_holder.h", | 66 "public/isolate_holder.h", |
| 51 "public/v8_idle_task_runner.h", | 67 "public/v8_idle_task_runner.h", |
| 52 "public/v8_platform.h", | 68 "public/v8_platform.h", |
| 53 "public/wrapper_info.h", | 69 "public/wrapper_info.h", |
| 54 "run_microtasks_observer.cc", | 70 "run_microtasks_observer.cc", |
| 55 "run_microtasks_observer.h", | 71 "run_microtasks_observer.h", |
| 56 "runner.cc", | 72 "runner.cc", |
| 57 "runner.h", | 73 "runner.h", |
| 58 "shell_runner.cc", | 74 "shell_runner.cc", |
| 59 "shell_runner.h", | 75 "shell_runner.h", |
| (...skipping 16 matching lines...) Expand all Loading... |
| 76 ] | 92 ] |
| 77 } | 93 } |
| 78 | 94 |
| 79 defines = [ "GIN_IMPLEMENTATION" ] | 95 defines = [ "GIN_IMPLEMENTATION" ] |
| 80 | 96 |
| 81 public_deps = [ | 97 public_deps = [ |
| 82 "//base", | 98 "//base", |
| 83 "//v8", | 99 "//v8", |
| 84 ] | 100 ] |
| 85 deps = [ | 101 deps = [ |
| 102 ":gin_features", |
| 86 "//base/third_party/dynamic_annotations", | 103 "//base/third_party/dynamic_annotations", |
| 87 "//crypto", | 104 "//crypto", |
| 88 ] | 105 ] |
| 89 if (v8_use_external_startup_data && is_win) { | 106 if (v8_use_external_startup_data && is_win) { |
| 90 public_deps += [ ":gin_v8_snapshot_fingerprint" ] | 107 public_deps += [ ":gin_v8_snapshot_fingerprint" ] |
| 91 sources += [ "$target_gen_dir/v8_snapshot_fingerprint.cc" ] | 108 sources += [ "$target_gen_dir/v8_snapshot_fingerprint.cc" ] |
| 92 defines += [ "V8_VERIFY_EXTERNAL_STARTUP_DATA" ] | 109 defines += [ "V8_VERIFY_EXTERNAL_STARTUP_DATA" ] |
| 93 } | 110 } |
| 94 | 111 |
| 95 if (is_mac) { | 112 if (is_mac) { |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 "shell/hello_world.js", | 221 "shell/hello_world.js", |
| 205 "test/file_unittests.js", | 222 "test/file_unittests.js", |
| 206 "test/gtest_unittests.js", | 223 "test/gtest_unittests.js", |
| 207 "../OWNERS", | 224 "../OWNERS", |
| 208 ] | 225 ] |
| 209 | 226 |
| 210 data_deps = [ | 227 data_deps = [ |
| 211 ":gin_shell", | 228 ":gin_shell", |
| 212 ] | 229 ] |
| 213 } | 230 } |
| OLD | NEW |