Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(441)

Side by Side Diff: ui/ozone/ozone.gyp

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/ozone/ozone.gni ('k') | ui/ozone/ozone_base_export.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 {
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/surface_factory_ozone.cc',
44 'public/surface_factory_ozone.h',
45 'public/surface_ozone_canvas.h',
46 'public/surface_ozone_egl.h',
47 ],
48 },
49 {
50 # GN version: //ui/ozone
51 'target_name': 'ozone',
52 'type': '<(component)',
53 'dependencies': [
54 '<(DEPTH)/base/base.gyp:base',
55 '<(DEPTH)/ipc/ipc.gyp:ipc',
56 '<(DEPTH)/skia/skia.gyp:skia',
57 '<(DEPTH)/ui/display/display.gyp:display_types',
58 '<(DEPTH)/ui/events/events.gyp:events',
59 '<(DEPTH)/ui/events/ozone/events_ozone.gyp:events_ozone',
60 '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
61 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
62 '<(DEPTH)/ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
63 '<@(external_ozone_platform_deps)',
64 '<@(internal_ozone_platform_deps)',
65 'ozone_base',
66 ],
67 'defines': [
68 'OZONE_IMPLEMENTATION',
69 ],
70 'variables': {
71 'platform_list_cc_file': '<(INTERMEDIATE_DIR)/ui/ozone/platform_list.cc' ,
72 'platform_list_h_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/platform_li st.h',
73 'platform_list_txt_file': '<(SHARED_INTERMEDIATE_DIR)/ui/ozone/platform_ list.txt',
74 'constructor_list_cc_file': '<(INTERMEDIATE_DIR)/ui/ozone/constructor_li st.cc',
75 'ozone_platforms': [
76 '<@(external_ozone_platforms)',
77 '<@(internal_ozone_platforms)',
78 ],
79 },
80 'include_dirs': [
81 '<(SHARED_INTERMEDIATE_DIR)',
82 ],
83 'sources': [
84 '<(platform_list_cc_file)',
85 '<(platform_list_h_file)',
86 '<(constructor_list_cc_file)',
87
88 'common/display_mode_proxy.cc',
89 'common/display_mode_proxy.h',
90 'common/display_snapshot_proxy.cc',
91 'common/display_snapshot_proxy.h',
92 'common/display_util.cc',
93 'common/display_util.h',
94 'common/gpu/ozone_gpu_message_generator.cc',
95 'common/gpu/ozone_gpu_message_generator.h',
96 'common/gpu/ozone_gpu_message_params.cc',
97 'common/gpu/ozone_gpu_message_params.h',
98 'common/gpu/ozone_gpu_messages.h',
99 'common/native_display_delegate_ozone.cc',
100 'common/native_display_delegate_ozone.h',
101 'public/ozone_platform.cc',
102 'public/ozone_platform.h',
103 'public/ozone_switches.cc',
104 'public/ozone_switches.h',
105 'public/ui_thread_gpu.cc',
106 'public/ui_thread_gpu.h',
107 'platform_selection.cc',
108 'platform_selection.h',
109 '<@(external_ozone_platform_files)',
110 ],
111 'actions': [
112 {
113 # GN version: //ui/ozone:generate_ozone_platform_list
114 'action_name': 'generate_ozone_platform_list',
115 'variables': {
116 'generator_path': 'generate_ozone_platform_list.py',
117 },
118 'inputs': [
119 '<(generator_path)',
120 ],
121 'outputs': [
122 '<(platform_list_cc_file)',
123 '<(platform_list_h_file)',
124 '<(platform_list_txt_file)',
125 ],
126 'action': [
127 'python',
128 '<(generator_path)',
129 '--output_cc=<(platform_list_cc_file)',
130 '--output_h=<(platform_list_h_file)',
131 '--output_txt=<(platform_list_txt_file)',
132 '--default=<(ozone_platform)',
133 '<@(ozone_platforms)',
134 ],
135 },
136 {
137 # GN version: //ui/ozone:generate_constructor_list
138 'action_name': 'generate_constructor_list',
139 'variables': {
140 'generator_path': 'generate_constructor_list.py',
141 },
142 'inputs': [
143 '<(generator_path)',
144 '<(platform_list_txt_file)',
145 ],
146 'outputs': [
147 '<(constructor_list_cc_file)',
148 ],
149 'action': [
150 'python',
151 '<(generator_path)',
152 '--platform_list=<(platform_list_txt_file)',
153 '--output_cc=<(constructor_list_cc_file)',
154 '--namespace=ui',
155 '--typename=OzonePlatform',
156 '--include="ui/ozone/public/ozone_platform.h"'
157 ],
158 },
159 ],
160 'conditions': [
161 ['use_udev == 0', {
162 'sources/': [
163 ['exclude', '_udev\\.(h|cc)$'],
164 ],
165 }],
166 ],
167 },
168 {
169 'target_name': 'ozone_unittests',
170 'type': '<(gtest_target_type)',
171 'sources': [
172 'run_all_unittests.cc',
173 ],
174 'dependencies': [
175 'ozone_base',
176 '../../base/base.gyp:base',
177 '../../base/base.gyp:test_support_base',
178 '../../testing/gtest.gyp:gtest',
179 '<@(external_ozone_platform_unittest_deps)',
180 '<@(internal_ozone_platform_unittest_deps)',
181 ],
182 },
183 ],
184 'conditions': [
185 ['<(ozone_platform_caca) == 1', {
186 'includes': [
187 'platform/caca/caca.gypi',
188 ],
189 }],
190 ['<(ozone_platform_dri) == 1 or <(ozone_platform_gbm) == 1', {
191 'includes': [
192 'platform/dri/dri.gypi',
193 ],
194 }],
195 ['<(ozone_platform_egltest) == 1', {
196 'includes': [
197 'platform/egltest/egltest.gypi',
198 ],
199 }],
200 ['<(ozone_platform_gbm) == 1', {
201 'includes': [
202 'platform/dri/gbm.gypi',
203 ],
204 }],
205 ['<(ozone_platform_test) == 1', {
206 'includes': [
207 'platform/test/test.gypi',
208 ],
209 }],
210 ],
211 }
OLDNEW
« no previous file with comments | « ui/ozone/ozone.gni ('k') | ui/ozone/ozone_base_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698