Move MatchPattern to its own header and the base namespace.
[chromium-blink-merge.git] / gin / gin.gyp
bloba3e4d39c1c8d5fba4b152b043b44d9457c00d3c9
1 # Copyright 2013 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.
6   'variables': {
7     'chromium_code': 1,
8     'gin_gen_path': '<(SHARED_INTERMEDIATE_DIR)/gin/',
9   },
10   'targets': [
11     {
12       'target_name': 'gin',
13       'type': '<(component)',
14       'dependencies': [
15         '../base/base.gyp:base',
16         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
17         '../v8/tools/gyp/v8.gyp:v8',
18       ],
19       'export_dependent_settings': [
20         '../base/base.gyp:base',
21         '../v8/tools/gyp/v8.gyp:v8',
22       ],
23       'defines': [
24         'GIN_IMPLEMENTATION',
25       ],
26       'sources': [
27         'arguments.cc',
28         'arguments.h',
29         'array_buffer.cc',
30         'array_buffer.h',
31         'context_holder.cc',
32         'converter.cc',
33         'converter.h',
34         'debug_impl.cc',
35         'debug_impl.h',
36         'dictionary.cc',
37         'dictionary.h',
38         'function_template.cc',
39         'function_template.h',
40         'gin_export.h',
41         'handle.h',
42         'interceptor.cc',
43         'interceptor.h',
44         'isolate_holder.cc',
45         'modules/console.cc',
46         'modules/console.h',
47         'modules/file_module_provider.cc',
48         'modules/file_module_provider.h',
49         'modules/module_registry.cc',
50         'modules/module_registry.h',
51         'modules/module_registry_observer.h',
52         'modules/module_runner_delegate.cc',
53         'modules/module_runner_delegate.h',
54         'modules/timer.cc',
55         'modules/timer.h',
56         'object_template_builder.cc',
57         'object_template_builder.h',
58         'per_context_data.cc',
59         'per_context_data.h',
60         'per_isolate_data.cc',
61         'per_isolate_data.h',
62         'public/context_holder.h',
63         'public/debug.h',
64         'public/gin_embedders.h',
65         'public/isolate_holder.h',
66         'public/v8_platform.h',
67         'public/wrapper_info.h',
68         'runner.cc',
69         'runner.h',
70         'run_microtasks_observer.cc',
71         'run_microtasks_observer.h',
72         'shell_runner.cc',
73         'shell_runner.h',
74         'try_catch.cc',
75         'try_catch.h',
76         'v8_initializer.h',
77         'v8_initializer.cc',
78         'v8_isolate_memory_dump_provider.cc',
79         'v8_isolate_memory_dump_provider.h',
80         'v8_platform.cc',
81         'wrappable.cc',
82         'wrappable.h',
83         'wrapper_info.cc',
84       ],
85       'conditions': [
86         ['v8_use_external_startup_data==1 and OS=="win"', {
87           'dependencies': [
88             'gin_v8_snapshot_fingerprint',
89             '../crypto/crypto.gyp:crypto',
90           ],
91           'sources': [
92             '<(gin_gen_path)/v8_snapshot_fingerprint.cc',
93           ],
94           'defines': [
95             'V8_VERIFY_EXTERNAL_STARTUP_DATA',
96           ]
97         }],
98       ],
99     },
100     {
101       'target_name': 'gin_v8_snapshot_fingerprint',
102       'type': 'none',
103       'variables': {
104         'snapshot_file': '<(PRODUCT_DIR)/snapshot_blob.bin',
105         'natives_file': '<(PRODUCT_DIR)/natives_blob.bin',
106         'output_file': '<(gin_gen_path)/v8_snapshot_fingerprint.cc',
107       },
108       'includes': [ '../gin/fingerprint/fingerprint_v8_snapshot.gypi' ],
109     },
110     {
111       'target_name': 'gin_shell',
112       'type': 'executable',
113       'dependencies': [
114         '../base/base.gyp:base',
115         '../base/base.gyp:base_i18n',
116         '../v8/tools/gyp/v8.gyp:v8',
117         'gin',
118       ],
119       'sources': [
120         'shell/gin_main.cc',
121       ],
122       'msvs_settings': {
123         'VCLinkerTool': {
124           'SubSystem': '1', # /SUBSYSTEM:CONSOLE
125         },
126       },
127     },
128     {
129       'target_name': 'gin_test',
130       'type': 'static_library',
131       'dependencies': [
132         '../testing/gtest.gyp:gtest',
133         '../v8/tools/gyp/v8.gyp:v8',
134         'gin',
135       ],
136       'export_dependent_settings': [
137         '../testing/gtest.gyp:gtest',
138         'gin',
139       ],
140       'sources': [
141         'test/file.cc',
142         'test/file.h',
143         'test/file_runner.cc',
144         'test/file_runner.h',
145         'test/gc.cc',
146         'test/gc.h',
147         'test/gtest.cc',
148         'test/gtest.h',
149         'test/v8_test.cc',
150         'test/v8_test.h',
151       ],
152     },
153     {
154       'target_name': 'gin_unittests',
155       'type': 'executable',
156       'dependencies': [
157         '../base/base.gyp:test_support_base',
158         '../v8/tools/gyp/v8.gyp:v8',
159         'gin_test',
160       ],
161       'sources': [
162         'converter_unittest.cc',
163         'interceptor_unittest.cc',
164         'modules/module_registry_unittest.cc',
165         'modules/timer_unittest.cc',
166         'per_context_data_unittest.cc',
167         'shell_runner_unittest.cc',
168         'shell/gin_shell_unittest.cc',
169         'test/run_all_unittests.cc',
170         'test/run_js_tests.cc',
171         'v8_isolate_memory_dump_provider_unittest.cc',
172         'wrappable_unittest.cc',
173       ],
174     },
175   ],