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