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/surface_factory_ozone.cc',
44 'public/surface_factory_ozone.h',
45 'public/surface_ozone_canvas.h',
46 'public/surface_ozone_egl.cc',
47 'public/surface_ozone_egl.h',
48 'public/system_input_injector.h',
52 # GN version: //ui/ozone
53 'target_name': 'ozone',
54 'type': '<(component)',
56 '<(DEPTH)/base/base.gyp:base',
57 '<(DEPTH)/ipc/ipc.gyp:ipc',
58 '<(DEPTH)/skia/skia.gyp:skia',
59 '<(DEPTH)/ui/display/display.gyp:display_types',
60 '<(DEPTH)/ui/display/display.gyp:display_util',
61 '<(DEPTH)/ui/events/events.gyp:events',
62 '<(DEPTH)/ui/events/ozone/events_ozone.gyp:events_ozone',
63 '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
64 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
65 '<(DEPTH)/ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
66 '<@(external_ozone_platform_deps)',
67 '<@(internal_ozone_platform_deps)',
71 'OZONE_IMPLEMENTATION',
74 'platform_list_cc_file': '<(INTERMEDIATE_DIR)/ui/ozone/platform_list.cc',
75 'platform_list_h_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/platform_list.h',
76 'platform_list_txt_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/platform_list.txt',
77 'constructor_list_cc_file': '<(INTERMEDIATE_DIR)/ui/ozone/constructor_list.cc',
79 '<@(external_ozone_platforms)',
80 '<@(internal_ozone_platforms)',
84 '<(SHARED_INTERMEDIATE_DIR)',
87 '<(platform_list_cc_file)',
88 '<(platform_list_h_file)',
89 '<(constructor_list_cc_file)',
91 'common/display_mode_proxy.cc',
92 'common/display_mode_proxy.h',
93 'common/display_snapshot_proxy.cc',
94 'common/display_snapshot_proxy.h',
95 'common/display_util.cc',
96 'common/display_util.h',
99 'common/gpu/ozone_gpu_message_generator.cc',
100 'common/gpu/ozone_gpu_message_generator.h',
101 'common/gpu/ozone_gpu_message_params.cc',
102 'common/gpu/ozone_gpu_message_params.h',
103 'common/gpu/ozone_gpu_messages.h',
104 'common/native_display_delegate_ozone.cc',
105 'common/native_display_delegate_ozone.h',
106 'platform_selection.cc',
107 'platform_selection.h',
108 'public/input_controller.cc',
109 'public/input_controller.h',
110 'public/ozone_gpu_test_helper.cc',
111 'public/ozone_gpu_test_helper.h',
112 'public/ozone_platform.cc',
113 'public/ozone_platform.h',
114 'public/ozone_switches.cc',
115 'public/ozone_switches.h',
116 '<@(external_ozone_platform_files)',
120 # GN version: //ui/ozone:generate_ozone_platform_list
121 'action_name': 'generate_ozone_platform_list',
123 'generator_path': 'generate_ozone_platform_list.py',
129 '<(platform_list_cc_file)',
130 '<(platform_list_h_file)',
131 '<(platform_list_txt_file)',
136 '--output_cc=<(platform_list_cc_file)',
137 '--output_h=<(platform_list_h_file)',
138 '--output_txt=<(platform_list_txt_file)',
139 '--default=<(ozone_platform)',
140 '<@(ozone_platforms)',
144 # GN version: //ui/ozone:generate_constructor_list
145 'action_name': 'generate_constructor_list',
147 'generator_path': 'generate_constructor_list.py',
151 '<(platform_list_txt_file)',
154 '<(constructor_list_cc_file)',
159 '--platform_list=<(platform_list_txt_file)',
160 '--output_cc=<(constructor_list_cc_file)',
162 '--typename=OzonePlatform',
163 '--include="ui/ozone/public/ozone_platform.h"'
170 ['exclude', '_udev\\.(h|cc)$'],
176 'target_name': 'ozone_unittests',
177 'type': '<(gtest_target_type)',
179 'common/display_util_unittest.cc',
180 'run_all_unittests.cc',
184 '../../base/base.gyp:base',
185 '../../base/base.gyp:test_support_base',
186 '../../testing/gtest.gyp:gtest',
187 '../gfx/gfx.gyp:gfx_geometry',
188 '<@(external_ozone_platform_unittest_deps)',
189 '<@(internal_ozone_platform_unittest_deps)',
194 ['<(ozone_platform_caca) == 1', {
196 'platform/caca/caca.gypi',
199 ['<(ozone_platform_cast) == 1', {
201 'platform/cast/cast.gypi',
204 ['<(ozone_platform_dri) == 1 or <(ozone_platform_drm) == 1 or <(ozone_platform_gbm) == 1', {
206 'platform/drm/drm.gypi',
209 ['<(ozone_platform_egltest) == 1', {
211 'platform/egltest/egltest.gypi',
214 ['<(ozone_platform_gbm) == 1', {
216 'platform/drm/gbm.gypi',
219 ['<(ozone_platform_test) == 1', {
221 'platform/test/test.gypi',