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 14 matching lines...) Expand all Loading... |
40 'wayland_display.h', | 41 'wayland_display.h', |
41 'wayland_object.cc', | 42 'wayland_object.cc', |
42 'wayland_object.h', | 43 'wayland_object.h', |
43 'wayland_pointer.cc', | 44 'wayland_pointer.cc', |
44 'wayland_pointer.h', | 45 'wayland_pointer.h', |
45 'wayland_surface_factory.cc', | 46 'wayland_surface_factory.cc', |
46 'wayland_surface_factory.h', | 47 'wayland_surface_factory.h', |
47 'wayland_window.cc', | 48 'wayland_window.cc', |
48 'wayland_window.h', | 49 'wayland_window.h', |
49 ], | 50 ], |
| 51 'conditions': [ |
| 52 ['use_wayland_egl==1', { |
| 53 'defines': [ |
| 54 'USE_WAYLAND_EGL', |
| 55 ], |
| 56 'dependencies': [ |
| 57 '../../build/linux/system.gyp:wayland-egl', |
| 58 ], |
| 59 'sources': [ |
| 60 'wayland_egl_surface.cc', |
| 61 'wayland_egl_surface.h', |
| 62 ], |
| 63 }], |
| 64 ], |
50 }, | 65 }, |
51 { | 66 { |
52 'target_name': 'ozone_platform_wayland_unittests', | 67 'target_name': 'ozone_platform_wayland_unittests', |
53 'type': 'none', | 68 'type': 'none', |
54 'dependencies': [ | 69 'dependencies': [ |
55 'ozone.gyp:ozone_platform', | 70 'ozone.gyp:ozone_platform', |
56 '../../skia/skia.gyp:skia', | 71 '../../skia/skia.gyp:skia', |
57 '../../testing/gmock.gyp:gmock', | 72 '../../testing/gmock.gyp:gmock', |
58 '../../third_party/wayland-protocols/wayland-protocols.gyp:xdg_shell_pro
tocol', | 73 '../../third_party/wayland-protocols/wayland-protocols.gyp:xdg_shell_pro
tocol', |
59 '../../third_party/wayland/wayland.gyp:wayland_server', | 74 '../../third_party/wayland/wayland.gyp:wayland_server', |
(...skipping 18 matching lines...) Expand all Loading... |
78 'wayland_pointer_unittest.cc', | 93 'wayland_pointer_unittest.cc', |
79 'wayland_surface_factory_unittest.cc', | 94 'wayland_surface_factory_unittest.cc', |
80 'wayland_test.cc', | 95 'wayland_test.cc', |
81 'wayland_test.h', | 96 'wayland_test.h', |
82 'wayland_window_unittest.cc', | 97 'wayland_window_unittest.cc', |
83 ], | 98 ], |
84 }, | 99 }, |
85 }, | 100 }, |
86 ], | 101 ], |
87 } | 102 } |
OLD | NEW |