[sql] Prevent nChildren overrun decoding interior pages in recover.c.
[chromium-blink-merge.git] / gin / BUILD.gn
blob7b3f06edf5d591d2ebe8e07b3a38aca38febd947
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 component("gin") {
6   sources = [
7     "arguments.cc",
8     "arguments.h",
9     "array_buffer.cc",
10     "array_buffer.h",
11     "context_holder.cc",
12     "converter.cc",
13     "converter.h",
14     "dictionary.cc",
15     "dictionary.h",
16     "function_template.cc",
17     "function_template.h",
18     "gin_export.h",
19     "handle.h",
20     "interceptor.cc",
21     "interceptor.h",
22     "isolate_holder.cc",
23     "modules/console.cc",
24     "modules/console.h",
25     "modules/file_module_provider.cc",
26     "modules/file_module_provider.h",
27     "modules/module_registry.cc",
28     "modules/module_registry.h",
29     "modules/module_registry_observer.h",
30     "modules/module_runner_delegate.cc",
31     "modules/module_runner_delegate.h",
32     "modules/timer.cc",
33     "modules/timer.h",
34     "object_template_builder.cc",
35     "object_template_builder.h",
36     "per_context_data.cc",
37     "per_context_data.h",
38     "per_isolate_data.cc",
39     "per_isolate_data.h",
40     "public/context_holder.h",
41     "public/gin_embedders.h",
42     "public/isolate_holder.h",
43     "public/v8_platform.h",
44     "public/wrapper_info.h",
45     "runner.cc",
46     "runner.h",
47     "shell_runner.cc",
48     "shell_runner.h",
49     "try_catch.cc",
50     "try_catch.h",
51     "v8_platform.cc",
52     "wrappable.cc",
53     "wrappable.h",
54     "wrapper_info.cc",
55   ]
57   defines = [ "GIN_IMPLEMENTATION" ]
58   deps = [
59     "//base",
60     "//base/third_party/dynamic_annotations",
61     "//v8",
62   ]
64   forward_dependent_configs_from = [
65     "//base",
66     "//v8",
67   ]
70 executable("gin_shell") {
71   sources = [
72     "shell/gin_main.cc",
73   ]
75   deps = [
76     ":gin",
77     "//base",
78     "//base:i18n",
79     "//v8",
80   ]
83 source_set("gin_test") {
84   sources = [
85     "test/file_runner.cc",
86     "test/file_runner.h",
87     "test/gc.cc",
88     "test/gc.h",
89     "test/gtest.cc",
90     "test/gtest.h",
91     "test/v8_test.cc",
92     "test/v8_test.h",
93   ]
95   deps = [
96     ":gin",
97     "//testing/gtest",
98     "//v8",
99   ]
101   forward_dependent_configs_from = [
102     ":gin",
103     "//testing/gtest",
104   ]
107 test("gin_unittests") {
108   sources = [
109     "converter_unittest.cc",
110     "interceptor_unittest.cc",
111     "modules/module_registry_unittest.cc",
112     "modules/timer_unittest.cc",
113     "per_context_data_unittest.cc",
114     "shell_runner_unittest.cc",
115     "test/run_all_unittests.cc",
116     "test/run_js_tests.cc",
117     "wrappable_unittest.cc",
118   ]
120   deps = [
121     ":gin_test",
122     "//base/test:test_support",
123     "//v8",
124   ]