Add TriggerOnUninstalled to ExtensionRegistry.
[chromium-blink-merge.git] / gin / BUILD.gn
blob99fd1bdc14cf9c929ca2552cd6f3ef86819f24b0
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     #TODO(GYP)
62     #"//v8",
63   ]
65   forward_dependent_configs_from = [
66     "//base",
67     #TODO(GYP)
68     #"//v8",
69   ]
72 # TODO(GYP) needs v8
73 if (false) {
74   executable("gin_shell") {
75     sources = [
76       "shell/gin_main.cc",
77     ]
79     deps = [
80       ":gin",
81       "//base",
82       "//base:i18n",
83       "//v8",
84     ]
85   }
87   source_set("gin_test") {
88     sources = [
89       "test/file_runner.cc",
90       "test/file_runner.h",
91       "test/gc.cc",
92       "test/gc.h",
93       "test/gtest.cc",
94       "test/gtest.h",
95       "test/v8_test.cc",
96       "test/v8_test.h",
97     ]
99     deps = [
100       ":gin",
101       "//testing/gtest",
102       "//v8",
103     ]
105     forward_dependent_configs_from = [
106       ":gin",
107       "//testing/gtest",
108     ]
109   }
111   test("gin_unittests") {
112     sources = [
113       "converter_unittest.cc",
114       "interceptor_unittest.cc",
115       "modules/module_registry_unittest.cc",
116       "modules/timer_unittest.cc",
117       "per_context_data_unittest.cc",
118       "shell_runner_unittest.cc",
119       "test/run_all_unittests.cc",
120       "test/run_js_tests.cc",
121       "wrappable_unittest.cc",
122     ]
124     deps = [
125       ":gin_test",
126       "//base/test:run_all_unittests",
127       "//v8",
128     ]
129   }