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.
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
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': [],
22 # GN version: //ui/ozone:ozone_base
23 'target_name': 'ozone_base',
24 'type': '<(component)',
26 '<(DEPTH)/base/base.gyp:base',
27 '<(DEPTH)/skia/skia.gyp:skia',
28 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
31 'OZONE_BASE_IMPLEMENTATION',
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',
53 # GN version: //ui/ozone
54 'target_name': 'ozone',
55 'type': '<(component)',
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)',
72 'OZONE_IMPLEMENTATION',
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',
80 '<@(external_ozone_platforms)',
81 '<@(internal_ozone_platforms)',
85 '<(SHARED_INTERMEDIATE_DIR)',
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',
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_client_native_pixmap_factory.cc',
108 'common/stub_client_native_pixmap_factory.h',
109 'common/stub_overlay_manager.cc',
110 'common/stub_overlay_manager.h',
111 'platform_selection.cc',
112 'platform_selection.h',
113 'public/client_native_pixmap_factory.cc',
114 'public/client_native_pixmap_factory.h',
115 'public/input_controller.cc',
116 'public/input_controller.h',
117 'public/ozone_gpu_test_helper.cc',
118 'public/ozone_gpu_test_helper.h',
119 'public/ozone_platform.cc',
120 'public/ozone_platform.h',
121 'public/ozone_switches.cc',
122 'public/ozone_switches.h',
123 '<@(external_ozone_platform_files)',
127 # GN version: //ui/ozone:generate_ozone_platform_list
128 'action_name': 'generate_ozone_platform_list',
130 'generator_path': 'generate_ozone_platform_list.py',
136 '<(platform_list_cc_file)',
137 '<(platform_list_h_file)',
138 '<(platform_list_txt_file)',
143 '--output_cc=<(platform_list_cc_file)',
144 '--output_h=<(platform_list_h_file)',
145 '--output_txt=<(platform_list_txt_file)',
146 '--default=<(ozone_platform)',
147 '<@(ozone_platforms)',
151 # GN version: //ui/ozone:generate_constructor_list
152 'action_name': 'generate_constructor_list',
154 'generator_path': 'generate_constructor_list.py',
158 '<(platform_list_txt_file)',
161 '<(constructor_list_cc_file)',
166 '--platform_list=<(platform_list_txt_file)',
167 '--output_cc=<(constructor_list_cc_file)',
169 '--typename=OzonePlatform',
170 '--typename=ClientNativePixmapFactory',
171 '--include="ui/ozone/public/ozone_platform.h"',
172 '--include="ui/ozone/public/client_native_pixmap_factory.h"'
179 ['exclude', '_udev\\.(h|cc)$'],
185 'target_name': 'ozone_unittests',
186 'type': '<(gtest_target_type)',
188 'run_all_unittests.cc',
192 '../../base/base.gyp:base',
193 '../../base/base.gyp:test_support_base',
194 '../../testing/gtest.gyp:gtest',
195 '../gfx/gfx.gyp:gfx_geometry',
196 '<@(external_ozone_platform_unittest_deps)',
197 '<@(internal_ozone_platform_unittest_deps)',
202 ['<(ozone_platform_caca) == 1', {
204 'platform/caca/caca.gypi',
207 ['<(ozone_platform_cast) == 1', {
209 'platform/cast/cast.gypi',
212 ['<(ozone_platform_drm) == 1 or <(ozone_platform_gbm) == 1', {
214 'platform/drm/drm.gypi',
217 ['<(ozone_platform_egltest) == 1', {
219 'platform/egltest/egltest.gypi',
222 ['<(ozone_platform_gbm) == 1', {
224 'platform/drm/gbm.gypi',
227 ['<(ozone_platform_test) == 1', {
229 'platform/test/test.gypi',