OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'internal_ozone_platform_deps': [ | 7 'internal_ozone_platform_deps': [ |
8 'ozone_platform_wayland', | 8 'ozone_platform_wayland', |
9 ], | 9 ], |
10 'internal_ozone_platform_unittest_deps': [ | 10 'internal_ozone_platform_unittest_deps': [ |
11 'ozone_platform_wayland_unittests', | 11 'ozone_platform_wayland_unittests', |
12 ], | 12 ], |
13 'internal_ozone_platforms': [ | 13 'internal_ozone_platforms': [ |
14 'wayland' | 14 'wayland' |
15 ], | 15 ], |
| 16 'use_wayland_egl%': 0, |
16 }, | 17 }, |
17 'targets': [ | 18 'targets': [ |
18 { | 19 { |
19 'target_name': 'ozone_platform_wayland', | 20 'target_name': 'ozone_platform_wayland', |
20 'type': 'static_library', | 21 'type': 'static_library', |
21 'defines': [ | 22 'defines': [ |
22 'OZONE_IMPLEMENTATION', | 23 'OZONE_IMPLEMENTATION', |
23 ], | 24 ], |
24 'dependencies': [ | 25 'dependencies': [ |
25 'ozone.gyp:ozone_base', | 26 'ozone.gyp:ozone_base', |
(...skipping 11 matching lines...) Expand all Loading... |
37 'ozone_platform_wayland.h', | 38 'ozone_platform_wayland.h', |
38 'wayland_display.cc', | 39 'wayland_display.cc', |
39 'wayland_display.h', | 40 'wayland_display.h', |
40 'wayland_object.cc', | 41 'wayland_object.cc', |
41 'wayland_object.h', | 42 'wayland_object.h', |
42 'wayland_surface_factory.cc', | 43 'wayland_surface_factory.cc', |
43 'wayland_surface_factory.h', | 44 'wayland_surface_factory.h', |
44 'wayland_window.cc', | 45 'wayland_window.cc', |
45 'wayland_window.h', | 46 'wayland_window.h', |
46 ], | 47 ], |
| 48 'conditions': [ |
| 49 ['use_wayland_egl==1', { |
| 50 'defines': [ |
| 51 'USE_WAYLAND_EGL', |
| 52 ], |
| 53 'dependencies': [ |
| 54 '../../build/linux/system.gyp:wayland-egl', |
| 55 ], |
| 56 'sources': [ |
| 57 'wayland_egl_surface.cc', |
| 58 'wayland_egl_surface.h', |
| 59 ], |
| 60 }], |
| 61 ], |
47 }, | 62 }, |
48 { | 63 { |
49 'target_name': 'ozone_platform_wayland_unittests', | 64 'target_name': 'ozone_platform_wayland_unittests', |
50 'type': 'none', | 65 'type': 'none', |
51 'dependencies': [ | 66 'dependencies': [ |
52 'ozone.gyp:ozone_platform', | 67 'ozone.gyp:ozone_platform', |
53 '../../skia/skia.gyp:skia', | 68 '../../skia/skia.gyp:skia', |
54 '../../testing/gmock.gyp:gmock', | 69 '../../testing/gmock.gyp:gmock', |
55 '../../third_party/wayland-protocols/wayland-protocols.gyp:xdg_shell_pro
tocol', | 70 '../../third_party/wayland-protocols/wayland-protocols.gyp:xdg_shell_pro
tocol', |
56 '../../third_party/wayland/wayland.gyp:wayland_server', | 71 '../../third_party/wayland/wayland.gyp:wayland_server', |
(...skipping 12 matching lines...) Expand all Loading... |
69 'fake_server.h', | 84 'fake_server.h', |
70 'mock_platform_window_delegate.cc', | 85 'mock_platform_window_delegate.cc', |
71 'wayland_display_unittest.cc', | 86 'wayland_display_unittest.cc', |
72 'wayland_surface_factory_unittest.cc', | 87 'wayland_surface_factory_unittest.cc', |
73 'wayland_window_unittest.cc', | 88 'wayland_window_unittest.cc', |
74 ], | 89 ], |
75 }, | 90 }, |
76 }, | 91 }, |
77 ], | 92 ], |
78 } | 93 } |
OLD | NEW |