Handle failed GpuMemoryBuffer allocations properly.
[chromium-blink-merge.git] / gin / gin.gyp
blobb38dc850e423e8290ea922200bd462004103783f
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   },
9   'targets': [
10     {
11       'target_name': 'gin',
12       'type': '<(component)',
13       'dependencies': [
14         '../base/base.gyp:base',
15         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
16         '../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_platform.cc',
77         'wrappable.cc',
78         'wrappable.h',
79         'wrapper_info.cc',
80       ],
81     },
82     {
83       'target_name': 'gin_shell',
84       'type': 'executable',
85       'dependencies': [
86         '../base/base.gyp:base',
87         '../base/base.gyp:base_i18n',
88         '../v8/tools/gyp/v8.gyp:v8',
89         'gin',
90       ],
91       'sources': [
92         'shell/gin_main.cc',
93       ],
94       'msvs_settings': {
95         'VCLinkerTool': {
96           'SubSystem': '1', # /SUBSYSTEM:CONSOLE
97         },
98       },
99     },
100     {
101       'target_name': 'gin_test',
102       'type': 'static_library',
103       'dependencies': [
104         '../testing/gtest.gyp:gtest',
105         '../v8/tools/gyp/v8.gyp:v8',
106         'gin',
107       ],
108       'export_dependent_settings': [
109         '../testing/gtest.gyp:gtest',
110         'gin',
111       ],
112       'sources': [
113         'test/file.cc',
114         'test/file.h',
115         'test/file_runner.cc',
116         'test/file_runner.h',
117         'test/gc.cc',
118         'test/gc.h',
119         'test/gtest.cc',
120         'test/gtest.h',
121         'test/v8_test.cc',
122         'test/v8_test.h',
123       ],
124     },
125     {
126       'target_name': 'gin_unittests',
127       'type': 'executable',
128       'dependencies': [
129         '../base/base.gyp:test_support_base',
130         '../v8/tools/gyp/v8.gyp:v8',
131         'gin_test',
132       ],
133       'sources': [
134         'converter_unittest.cc',
135         'interceptor_unittest.cc',
136         'modules/module_registry_unittest.cc',
137         'modules/timer_unittest.cc',
138         'per_context_data_unittest.cc',
139         'shell_runner_unittest.cc',
140         'shell/gin_shell_unittest.cc',
141         'test/run_all_unittests.cc',
142         'test/run_js_tests.cc',
143         'wrappable_unittest.cc',
144       ],
145     },
146   ],