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
3 # found in the LICENSE file.
5 import("//build/module_args/v8.gni")
20 "function_template.cc",
21 "function_template.h",
29 "modules/file_module_provider.cc",
30 "modules/file_module_provider.h",
31 "modules/module_registry.cc",
32 "modules/module_registry.h",
33 "modules/module_registry_observer.h",
34 "modules/module_runner_delegate.cc",
35 "modules/module_runner_delegate.h",
38 "object_template_builder.cc",
39 "object_template_builder.h",
40 "per_context_data.cc",
42 "per_isolate_data.cc",
44 "public/context_holder.h",
46 "public/gin_embedders.h",
47 "public/isolate_holder.h",
48 "public/v8_platform.h",
49 "public/wrapper_info.h",
52 "run_microtasks_observer.cc",
53 "run_microtasks_observer.h",
64 defines = [ "GIN_IMPLEMENTATION" ]
71 "//base/third_party/dynamic_annotations",
73 if (v8_use_external_startup_data && is_win) {
75 ":gin_v8_snapshot_fingerprint",
78 sources += [ "$target_gen_dir/v8_snapshot_fingerprint.cc" ]
79 defines += [ "V8_VERIFY_EXTERNAL_STARTUP_DATA" ]
83 if (v8_use_external_startup_data) {
84 action("gin_v8_snapshot_fingerprint") {
85 script = "//gin/fingerprint/fingerprint_v8_snapshot.py"
87 snapshot_file = "$root_build_dir/snapshot_blob.bin"
88 natives_file = "$root_build_dir/natives_blob.bin"
89 output_file = "$target_gen_dir/v8_snapshot_fingerprint.cc"
93 rebase_path(snapshot_file, root_build_dir),
95 rebase_path(natives_file, root_build_dir),
97 rebase_path(output_file, root_build_dir),
109 executable("gin_shell") {
122 source_set("gin_test") {
127 "test/file_runner.cc",
128 "test/file_runner.h",
146 test("gin_unittests") {
148 "converter_unittest.cc",
149 "interceptor_unittest.cc",
150 "modules/module_registry_unittest.cc",
151 "modules/timer_unittest.cc",
152 "per_context_data_unittest.cc",
153 "shell_runner_unittest.cc",
154 "shell/gin_shell_unittest.cc",
155 "test/run_all_unittests.cc",
156 "test/run_js_tests.cc",
157 "wrappable_unittest.cc",
162 "//base/test:test_support",