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