OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 config("xdg_shell_protocol_config") { | 5 config("xdg_shell_protocol_config") { |
6 include_dirs = [ "include/protocol" ] | 6 include_dirs = [ "include/protocol" ] |
7 } | 7 } |
8 | 8 |
9 source_set("xdg_shell_protocol") { | 9 source_set("xdg_shell_protocol") { |
10 sources = [ | 10 sources = [ |
11 "include/protocol/xdg-shell-unstable-v5-client-protocol.h", | 11 "include/protocol/xdg-shell-unstable-v5-client-protocol.h", |
12 "include/protocol/xdg-shell-unstable-v5-server-protocol.h", | 12 "include/protocol/xdg-shell-unstable-v5-server-protocol.h", |
13 "protocol/xdg-shell-protocol.c", | 13 "protocol/xdg-shell-protocol.c", |
14 ] | 14 ] |
15 | 15 |
16 deps = [ | 16 deps = [ |
17 "//third_party/wayland:wayland_util", | 17 "//third_party/wayland:wayland_util", |
18 ] | 18 ] |
19 | 19 |
20 configs -= [ "//build/config/compiler:chromium_code" ] | 20 configs -= [ "//build/config/compiler:chromium_code" ] |
21 configs += [ "//build/config/compiler:no_chromium_code" ] | 21 configs += [ "//build/config/compiler:no_chromium_code" ] |
22 | 22 |
23 public_configs = [ ":xdg_shell_protocol_config" ] | 23 public_configs = [ ":xdg_shell_protocol_config" ] |
24 } | 24 } |
25 | 25 |
| 26 config("linux_dmabuf_protocol_config") { |
| 27 include_dirs = [ "include/protocol" ] |
| 28 } |
| 29 |
| 30 source_set("linux_dmabuf_protocol") { |
| 31 sources = [ |
| 32 "include/protocol/linux-dmabuf-unstable-v1-client-protocol.h", |
| 33 "include/protocol/linux-dmabuf-unstable-v1-server-protocol.h", |
| 34 "protocol/linux-dmabuf-protocol.c", |
| 35 ] |
| 36 |
| 37 deps = [ |
| 38 "//third_party/wayland:wayland_util", |
| 39 ] |
| 40 |
| 41 configs -= [ "//build/config/compiler:chromium_code" ] |
| 42 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 43 |
| 44 public_configs = [ ":linux_dmabuf_protocol_config" ] |
| 45 } |
| 46 |
26 config("scaler_protocol_config") { | 47 config("scaler_protocol_config") { |
27 include_dirs = [ "include/protocol" ] | 48 include_dirs = [ "include/protocol" ] |
28 } | 49 } |
29 | 50 |
30 source_set("scaler_protocol") { | 51 source_set("scaler_protocol") { |
31 sources = [ | 52 sources = [ |
32 "include/protocol/scaler-client-protocol.h", | 53 "include/protocol/scaler-client-protocol.h", |
33 "include/protocol/scaler-server-protocol.h", | 54 "include/protocol/scaler-server-protocol.h", |
34 "protocol/scaler-protocol.c", | 55 "protocol/scaler-protocol.c", |
35 ] | 56 ] |
36 | 57 |
37 deps = [ | 58 deps = [ |
38 "//third_party/wayland:wayland_util", | 59 "//third_party/wayland:wayland_util", |
39 ] | 60 ] |
40 | 61 |
41 configs -= [ "//build/config/compiler:chromium_code" ] | 62 configs -= [ "//build/config/compiler:chromium_code" ] |
42 configs += [ "//build/config/compiler:no_chromium_code" ] | 63 configs += [ "//build/config/compiler:no_chromium_code" ] |
43 | 64 |
44 public_configs = [ ":scaler_protocol_config" ] | 65 public_configs = [ ":scaler_protocol_config" ] |
45 } | 66 } |
OLD | NEW |