OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 | 9 |
10 'target_defaults': { | 10 'target_defaults': { |
11 'conditions': [ | 11 'conditions': [ |
12 ['toolkit_uses_gtk == 1', { | 12 ['toolkit_uses_gtk == 1 or use_wayland == 1', { |
13 'include_dirs': [ | 13 'include_dirs': [ |
14 '<(DEPTH)/third_party/angle/include', | 14 '<(DEPTH)/third_party/angle/include', |
15 ], | 15 ], |
16 }], | 16 }], |
17 ], | 17 ], |
18 }, | 18 }, |
19 'targets': [ | 19 'targets': [ |
20 { | 20 { |
21 'target_name': 'surface', | 21 'target_name': 'surface', |
22 'type': 'static_library', | 22 'type': 'static_library', |
23 'dependencies': [ | 23 'dependencies': [ |
24 '<(DEPTH)/base/base.gyp:base', | 24 '<(DEPTH)/base/base.gyp:base', |
25 '<(DEPTH)/skia/skia.gyp:skia', | 25 '<(DEPTH)/skia/skia.gyp:skia', |
26 '<(DEPTH)/ui/gfx/gl/gl.gyp:gl', | 26 '<(DEPTH)/ui/gfx/gl/gl.gyp:gl', |
27 '<(DEPTH)/ui/ui.gyp:ui', | 27 '<(DEPTH)/ui/ui.gyp:ui', |
28 ], | 28 ], |
29 'sources': [ | 29 'sources': [ |
30 'accelerated_surface_linux.cc', | 30 'accelerated_surface_linux.cc', |
31 'accelerated_surface_linux.h', | 31 'accelerated_surface_linux.h', |
32 'accelerated_surface_mac.cc', | 32 'accelerated_surface_mac.cc', |
33 'accelerated_surface_mac.h', | 33 'accelerated_surface_mac.h', |
| 34 'accelerated_surface_wayland.cc', |
| 35 'accelerated_surface_wayland.h', |
34 'io_surface_support_mac.cc', | 36 'io_surface_support_mac.cc', |
35 'io_surface_support_mac.h', | 37 'io_surface_support_mac.h', |
36 'transport_dib.h', | 38 'transport_dib.h', |
37 'transport_dib_linux.cc', | 39 'transport_dib_linux.cc', |
38 'transport_dib_mac.cc', | 40 'transport_dib_mac.cc', |
39 'transport_dib_win.cc', | 41 'transport_dib_win.cc', |
40 ], | 42 ], |
| 43 'conditions': [ |
| 44 ['use_wayland == 1', { |
| 45 'sources/': [ |
| 46 ['exclude', 'accelerated_surface_linux.cc'], |
| 47 ['exclude', 'accelerated_surface_linux.h'], |
| 48 ], |
| 49 }], |
| 50 ], |
41 }, | 51 }, |
42 ], | 52 ], |
43 } | 53 } |
OLD | NEW |