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