blob: 7c17910a56f11d029f5fb8e642ed4e7c15c3069f [file] [log] [blame]
Torne (Richard Coles)f2477e02013-11-28 11:55:43 +00001# 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.
4
5{
6 'variables': {
7 'chromium_code': 1,
8 },
9 'targets': [
10 {
11 'target_name': 'gin',
12 'type': 'static_library',
13 'dependencies': [
14 '../base/base.gyp:base',
15 '../v8/tools/gyp/v8.gyp:v8',
16 ],
17 'export_dependent_settings': [
18 '../base/base.gyp:base',
19 '../v8/tools/gyp/v8.gyp:v8',
20 ],
21 'sources': [
22 'arguments.cc',
23 'arguments.h',
24 'array_buffer.cc',
25 'array_buffer.h',
26 'context_holder.cc',
27 'context_holder.h',
28 'converter.cc',
29 'converter.h',
30 'dictionary.cc',
31 'dictionary.h',
32 'function_template.cc',
33 'function_template.h',
34 'isolate_holder.cc',
35 'modules/console.cc',
36 'modules/console.h',
37 'modules/file_module_provider.cc',
38 'modules/file_module_provider.h',
39 'modules/module_registry.cc',
40 'modules/module_registry.h',
41 'modules/module_runner_delegate.cc',
42 'modules/module_runner_delegate.h',
43 'per_context_data.cc',
44 'per_context_data.h',
45 'per_isolate_data.cc',
46 'per_isolate_data.h',
47 'public/gin_embedders.h',
48 'public/isolate_holder.h',
49 'public/wrapper_info.h',
50 'runner.cc',
51 'runner.h',
52 'try_catch.cc',
53 'try_catch.h',
54 'wrappable.cc',
55 'wrappable.h',
56 'wrapper_info.cc',
57 ],
58 },
59 {
60 'target_name': 'gin_shell',
61 'type': 'executable',
62 'dependencies': [
63 '../base/base.gyp:base_i18n',
64 'gin',
65 ],
66 'sources': [
67 'shell/gin_main.cc',
68 ],
69 'msvs_settings': {
70 'VCLinkerTool': {
71 'SubSystem': '1', # /SUBSYSTEM:CONSOLE
72 },
73 },
74 },
75 {
76 'target_name': 'gin_test',
77 'type': 'static_library',
78 'dependencies': [
79 '../testing/gtest.gyp:gtest',
80 'gin',
81 ],
82 'export_dependent_settings': [
83 '../testing/gtest.gyp:gtest',
84 'gin',
85 ],
86 'sources': [
87 'test/file_runner.cc',
88 'test/file_runner.h',
89 'test/gtest.cc',
90 'test/gtest.h',
91 'test/v8_test.cc',
92 'test/v8_test.h',
93 ],
94 },
95 {
96 'target_name': 'gin_unittests',
97 'type': 'executable',
98 'dependencies': [
99 '../base/base.gyp:run_all_unittests',
100 'gin_test',
101 ],
102 'sources': [
103 'converter_unittest.cc',
104 'test/run_all_unittests.cc',
105 'test/run_js_tests.cc',
106 'runner_unittest.cc',
107 'wrappable_unittest.cc',
108 ],
109 },
110 ],
111}