Remove chromeos==0 blacklist for test_isolation_mode.
[chromium-blink-merge.git] / ui / ozone / ozone.gyp
blob67f1a7eadefb6e0fa6608b25625e594e73f9db11
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     # Normally, the external_ozone_platform* variables below can be
9     # overridden by supplement.gypi which must exist exactly one level
10     # below the top-level src directory. They can now also be set in
11     # $GYP_DEFINES
12     'external_ozone_platforms%': [],
13     'external_ozone_platform_files%': [],
14     'external_ozone_platform_deps%': [],
15     'external_ozone_platform_unittest_deps%': [],
16     'internal_ozone_platforms': [],
17     'internal_ozone_platform_deps': [],
18     'internal_ozone_platform_unittest_deps': [],
19   },
20   'targets': [
21     {
22       # GN version: //ui/ozone:ozone_base
23       'target_name': 'ozone_base',
24       'type': '<(component)',
25       'dependencies': [
26         '<(DEPTH)/base/base.gyp:base',
27         '<(DEPTH)/skia/skia.gyp:skia',
28         '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
29       ],
30       'defines': [
31         'OZONE_BASE_IMPLEMENTATION',
32       ],
33       'sources': [
34         'public/cursor_factory_ozone.cc',
35         'public/cursor_factory_ozone.h',
36         'public/gpu_platform_support.cc',
37         'public/gpu_platform_support.h',
38         'public/gpu_platform_support_host.cc',
39         'public/gpu_platform_support_host.h',
40         'public/native_pixmap.h',
41         'public/overlay_candidates_ozone.cc',
42         'public/overlay_candidates_ozone.h',
43         'public/overlay_manager_ozone.h',
44         'public/surface_factory_ozone.cc',
45         'public/surface_factory_ozone.h',
46         'public/surface_ozone_canvas.h',
47         'public/surface_ozone_egl.cc',
48         'public/surface_ozone_egl.h',
49         'public/system_input_injector.h',
50       ],
51     },
52     {
53       # GN version: //ui/ozone
54       'target_name': 'ozone',
55       'type': '<(component)',
56       'dependencies': [
57         '<(DEPTH)/base/base.gyp:base',
58         '<(DEPTH)/ipc/ipc.gyp:ipc',
59         '<(DEPTH)/skia/skia.gyp:skia',
60         '<(DEPTH)/ui/display/display.gyp:display_types',
61         '<(DEPTH)/ui/display/display.gyp:display_util',
62         '<(DEPTH)/ui/events/events.gyp:events',
63         '<(DEPTH)/ui/events/ozone/events_ozone.gyp:events_ozone',
64         '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
65         '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
66         '<(DEPTH)/ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
67         '<@(external_ozone_platform_deps)',
68         '<@(internal_ozone_platform_deps)',
69         'ozone_base',
70       ],
71       'defines': [
72         'OZONE_IMPLEMENTATION',
73       ],
74       'variables': {
75         'platform_list_cc_file': '<(INTERMEDIATE_DIR)/ui/ozone/platform_list.cc',
76         'platform_list_h_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/platform_list.h',
77         'platform_list_txt_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/platform_list.txt',
78         'constructor_list_cc_file': '<(INTERMEDIATE_DIR)/ui/ozone/constructor_list.cc',
79         'ozone_platforms': [
80           '<@(external_ozone_platforms)',
81           '<@(internal_ozone_platforms)',
82         ],
83       },
84       'include_dirs': [
85         '<(SHARED_INTERMEDIATE_DIR)',
86       ],
87       'sources': [
88         '<(platform_list_cc_file)',
89         '<(platform_list_h_file)',
90         '<(constructor_list_cc_file)',
92         'common/display_mode_proxy.cc',
93         'common/display_mode_proxy.h',
94         'common/display_snapshot_proxy.cc',
95         'common/display_snapshot_proxy.h',
96         'common/display_util.cc',
97         'common/display_util.h',
98         'common/egl_util.cc',
99         'common/egl_util.h',
100         'common/gpu/ozone_gpu_message_generator.cc',
101         'common/gpu/ozone_gpu_message_generator.h',
102         'common/gpu/ozone_gpu_message_params.cc',
103         'common/gpu/ozone_gpu_message_params.h',
104         'common/gpu/ozone_gpu_messages.h',
105         'common/native_display_delegate_ozone.cc',
106         'common/native_display_delegate_ozone.h',
107         'common/stub_overlay_manager.cc',
108         'common/stub_overlay_manager.h',
109         'platform_selection.cc',
110         'platform_selection.h',
111         'public/input_controller.cc',
112         'public/input_controller.h',
113         'public/ozone_gpu_test_helper.cc',
114         'public/ozone_gpu_test_helper.h',
115         'public/ozone_platform.cc',
116         'public/ozone_platform.h',
117         'public/ozone_switches.cc',
118         'public/ozone_switches.h',
119         '<@(external_ozone_platform_files)',
120       ],
121       'actions': [
122         {
123           # GN version: //ui/ozone:generate_ozone_platform_list
124           'action_name': 'generate_ozone_platform_list',
125           'variables': {
126             'generator_path': 'generate_ozone_platform_list.py',
127           },
128           'inputs': [
129             '<(generator_path)',
130           ],
131           'outputs': [
132             '<(platform_list_cc_file)',
133             '<(platform_list_h_file)',
134             '<(platform_list_txt_file)',
135           ],
136           'action': [
137             'python',
138             '<(generator_path)',
139             '--output_cc=<(platform_list_cc_file)',
140             '--output_h=<(platform_list_h_file)',
141             '--output_txt=<(platform_list_txt_file)',
142             '--default=<(ozone_platform)',
143             '<@(ozone_platforms)',
144           ],
145         },
146         {
147           # GN version: //ui/ozone:generate_constructor_list
148           'action_name': 'generate_constructor_list',
149           'variables': {
150             'generator_path': 'generate_constructor_list.py',
151           },
152           'inputs': [
153             '<(generator_path)',
154             '<(platform_list_txt_file)',
155           ],
156           'outputs': [
157             '<(constructor_list_cc_file)',
158           ],
159           'action': [
160             'python',
161             '<(generator_path)',
162             '--platform_list=<(platform_list_txt_file)',
163             '--output_cc=<(constructor_list_cc_file)',
164             '--namespace=ui',
165             '--typename=OzonePlatform',
166             '--include="ui/ozone/public/ozone_platform.h"'
167           ],
168         },
169       ],
170       'conditions': [
171         ['use_udev == 0', {
172           'sources/': [
173             ['exclude', '_udev\\.(h|cc)$'],
174           ],
175         }],
176       ],
177     },
178     {
179       'target_name': 'ozone_unittests',
180       'type': '<(gtest_target_type)',
181       'sources': [
182         'run_all_unittests.cc',
183       ],
184       'dependencies': [
185         'ozone',
186         '../../base/base.gyp:base',
187         '../../base/base.gyp:test_support_base',
188         '../../testing/gtest.gyp:gtest',
189         '../gfx/gfx.gyp:gfx_geometry',
190         '<@(external_ozone_platform_unittest_deps)',
191         '<@(internal_ozone_platform_unittest_deps)',
192       ],
193     },
194   ],
195   'conditions': [
196     ['<(ozone_platform_caca) == 1', {
197       'includes': [
198         'platform/caca/caca.gypi',
199       ],
200     }],
201     ['<(ozone_platform_cast) == 1', {
202       'includes': [
203         'platform/cast/cast.gypi',
204       ],
205     }],
206     ['<(ozone_platform_dri) == 1 or <(ozone_platform_drm) == 1 or <(ozone_platform_gbm) == 1', {
207       'includes': [
208         'platform/drm/drm.gypi',
209       ],
210     }],
211     ['<(ozone_platform_egltest) == 1', {
212       'includes': [
213         'platform/egltest/egltest.gypi',
214       ],
215     }],
216     ['<(ozone_platform_gbm) == 1', {
217       'includes': [
218         'platform/drm/gbm.gypi',
219       ],
220     }],
221     ['<(ozone_platform_test) == 1', {
222       'includes': [
223         'platform/test/test.gypi',
224       ],
225     }],
226   ],