Pop up the notification when the download is interrupted or completed
[chromium-blink-merge.git] / ui / ozone / ozone.gyp
blob30211ee0871cd99aa701cea6b7bdd2718ee9bd41
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/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',
49       ],
50     },
51     {
52       # GN version: //ui/ozone
53       'target_name': 'ozone',
54       'type': '<(component)',
55       'dependencies': [
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)',
68         'ozone_base',
69       ],
70       'defines': [
71         'OZONE_IMPLEMENTATION',
72       ],
73       'variables': {
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',
78         'ozone_platforms': [
79           '<@(external_ozone_platforms)',
80           '<@(internal_ozone_platforms)',
81         ],
82       },
83       'include_dirs': [
84         '<(SHARED_INTERMEDIATE_DIR)',
85       ],
86       'sources': [
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',
97         'common/egl_util.cc',
98         'common/egl_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)',
117       ],
118       'actions': [
119         {
120           # GN version: //ui/ozone:generate_ozone_platform_list
121           'action_name': 'generate_ozone_platform_list',
122           'variables': {
123             'generator_path': 'generate_ozone_platform_list.py',
124           },
125           'inputs': [
126             '<(generator_path)',
127           ],
128           'outputs': [
129             '<(platform_list_cc_file)',
130             '<(platform_list_h_file)',
131             '<(platform_list_txt_file)',
132           ],
133           'action': [
134             'python',
135             '<(generator_path)',
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)',
141           ],
142         },
143         {
144           # GN version: //ui/ozone:generate_constructor_list
145           'action_name': 'generate_constructor_list',
146           'variables': {
147             'generator_path': 'generate_constructor_list.py',
148           },
149           'inputs': [
150             '<(generator_path)',
151             '<(platform_list_txt_file)',
152           ],
153           'outputs': [
154             '<(constructor_list_cc_file)',
155           ],
156           'action': [
157             'python',
158             '<(generator_path)',
159             '--platform_list=<(platform_list_txt_file)',
160             '--output_cc=<(constructor_list_cc_file)',
161             '--namespace=ui',
162             '--typename=OzonePlatform',
163             '--include="ui/ozone/public/ozone_platform.h"'
164           ],
165         },
166       ],
167       'conditions': [
168         ['use_udev == 0', {
169           'sources/': [
170             ['exclude', '_udev\\.(h|cc)$'],
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',
183         '../../base/base.gyp:base',
184         '../../base/base.gyp:test_support_base',
185         '../../testing/gtest.gyp:gtest',
186         '../gfx/gfx.gyp:gfx_geometry',
187         '<@(external_ozone_platform_unittest_deps)',
188         '<@(internal_ozone_platform_unittest_deps)',
189       ],
190     },
191   ],
192   'conditions': [
193     ['<(ozone_platform_caca) == 1', {
194       'includes': [
195         'platform/caca/caca.gypi',
196       ],
197     }],
198     ['<(ozone_platform_cast) == 1', {
199       'includes': [
200         'platform/cast/cast.gypi',
201       ],
202     }],
203     ['<(ozone_platform_dri) == 1 or <(ozone_platform_drm) == 1 or <(ozone_platform_gbm) == 1', {
204       'includes': [
205         'platform/drm/drm.gypi',
206       ],
207     }],
208     ['<(ozone_platform_egltest) == 1', {
209       'includes': [
210         'platform/egltest/egltest.gypi',
211       ],
212     }],
213     ['<(ozone_platform_gbm) == 1', {
214       'includes': [
215         'platform/drm/gbm.gypi',
216       ],
217     }],
218     ['<(ozone_platform_test) == 1', {
219       'includes': [
220         'platform/test/test.gypi',
221       ],
222     }],
223   ],