Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / gin / BUILD.gn
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.
4
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   ]
56
57   defines = [ "GIN_IMPLEMENTATION" ]
58   deps = [
59     "//base",
60     "//base/third_party/dynamic_annotations",
61     "//v8",
62   ]
63
64   forward_dependent_configs_from = [
65     "//base",
66     "//v8",
67   ]
68 }
69
70 executable("gin_shell") {
71   sources = [
72     "shell/gin_main.cc",
73   ]
74
75   deps = [
76     ":gin",
77     "//base",
78     "//base:i18n",
79     "//v8",
80   ]
81 }
82
83 source_set("gin_test") {
84   sources = [
85     "test/file.cc",
86     "test/file.h",
87     "test/file_runner.cc",
88     "test/file_runner.h",
89     "test/gc.cc",
90     "test/gc.h",
91     "test/gtest.cc",
92     "test/gtest.h",
93     "test/v8_test.cc",
94     "test/v8_test.h",
95   ]
96
97   deps = [
98     ":gin",
99     "//testing/gtest",
100     "//v8",
101   ]
102
103   forward_dependent_configs_from = [
104     ":gin",
105     "//testing/gtest",
106   ]
107 }
108
109 test("gin_unittests") {
110   sources = [
111     "converter_unittest.cc",
112     "interceptor_unittest.cc",
113     "modules/module_registry_unittest.cc",
114     "modules/timer_unittest.cc",
115     "per_context_data_unittest.cc",
116     "shell_runner_unittest.cc",
117     "shell/gin_shell_unittest.cc",
118     "test/run_all_unittests.cc",
119     "test/run_js_tests.cc",
120     "wrappable_unittest.cc",
121   ]
122
123   deps = [
124     ":gin_test",
125     "//base/test:test_support",
126     "//v8",
127   ]
128 }