Fix latent Clang plugin style issues in chrome/
[chromium-blink-merge.git] / mojo / mojo_edk.gyp
blob68b2affd914528dfd4d14f24e276efe0bfc89e17
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.
6   'includes': [
7     'mojo_variables.gypi',
8   ],
9   'targets': [
10     {
11       # GN version: //mojo/edk/system
12       'target_name': 'mojo_system_impl',
13       'type': '<(component)',
14       'dependencies': [
15         '../base/base.gyp:base',
16         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
17       ],
18       'includes': [
19         'mojo_edk_system_impl.gypi',
20       ],
21     },
22     {
23       # GN version: //mojo/edk/js
24       'target_name': 'mojo_js_lib',
25       'type': 'static_library',
26       'dependencies': [
27         '../base/base.gyp:base',
28         '../gin/gin.gyp:gin',
29         '../v8/tools/gyp/v8.gyp:v8',
30       ],
31       'export_dependent_settings': [
32         '../base/base.gyp:base',
33         '../gin/gin.gyp:gin',
34       ],
35       'sources': [
36         # Sources list duplicated in GN build.
37         'edk/js/core.cc',
38         'edk/js/core.h',
39         'edk/js/drain_data.cc',
40         'edk/js/drain_data.h',
41         'edk/js/handle.cc',
42         'edk/js/handle.h',
43         'edk/js/handle_close_observer.h',
44         'edk/js/mojo_runner_delegate.cc',
45         'edk/js/mojo_runner_delegate.h',
46         'edk/js/support.cc',
47         'edk/js/support.h',
48         'edk/js/threading.cc',
49         'edk/js/threading.h',
50         'edk/js/waiting_callback.cc',
51         'edk/js/waiting_callback.h',
52       ],
53     },
54     {
55       # GN version: //mojo/edk/test:test_support_impl
56       'target_name': 'mojo_test_support_impl',
57       'type': 'static_library',
58       'dependencies': [
59         '../base/base.gyp:base',
60       ],
61       'sources': [
62         'edk/test/test_support_impl.cc',
63         'edk/test/test_support_impl.h',
64       ],
65     },
66     {
67       # GN version: //mojo/edk/test:test_support
68       'target_name': 'mojo_common_test_support',
69       'type': 'static_library',
70       'dependencies': [
71         '../base/base.gyp:base',
72         '../base/base.gyp:test_support_base',
73         '../testing/gtest.gyp:gtest',
74         'mojo_system_impl',
75       ],
76       'sources': [
77         'edk/test/multiprocess_test_helper.cc',
78         'edk/test/multiprocess_test_helper.h',
79         'edk/test/test_utils.h',
80         'edk/test/test_utils_posix.cc',
81         'edk/test/test_utils_win.cc',
82       ],
83       'conditions': [
84         ['OS=="ios"', {
85           'sources!': [
86             'edk/test/multiprocess_test_helper.cc',
87           ],
88         }],
89       ],
90     },
91     {
92       # GN version: //mojo/edk/test:run_all_unittests
93       'target_name': 'mojo_run_all_unittests',
94       'type': 'static_library',
95       'dependencies': [
96         '../base/base.gyp:base',
97         '../base/base.gyp:test_support_base',
98         '../testing/gtest.gyp:gtest',
99         'mojo_system_impl',
100         'mojo_public.gyp:mojo_test_support',
101         'mojo_test_support_impl',
102       ],
103       'sources': [
104         'edk/test/run_all_unittests.cc',
105       ],
106     },
107     {
108       # GN version: //mojo/edk/test:run_all_perftests
109       'target_name': 'mojo_run_all_perftests',
110       'type': 'static_library',
111       'dependencies': [
112         '../base/base.gyp:test_support_base',
113         'mojo_edk.gyp:mojo_system_impl',
114         'mojo_public.gyp:mojo_test_support',
115         'mojo_test_support_impl',
116       ],
117       'sources': [
118         'edk/test/run_all_perftests.cc',
119       ],
120     },
121   ],
122   'conditions': [
123     ['OS=="win" and target_arch=="ia32"', {
124       'targets': [
125         {
126           'target_name': 'mojo_system_impl_win64',
127           'type': '<(component)',
128           'dependencies': [
129             '../base/base.gyp:base_win64',
130             '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
131           ],
132           'includes': [
133             'mojo_edk_system_impl.gypi',
134           ],
135           'configurations': {
136             'Common_Base': {
137               'msvs_target_platform': 'x64',
138             },
139           },
140         },
141       ],
142     }],
143   ],