xref: /aosp_15_r20/external/wayland-protocols/Android.bp (revision 6c119a463dd5c45dd05bbe67429293292dde15ee)
1*6c119a46SAndroid Build Coastguard Worker// Copyright (C) 2017 The Android Open Source Project
2*6c119a46SAndroid Build Coastguard Worker//
3*6c119a46SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*6c119a46SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*6c119a46SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*6c119a46SAndroid Build Coastguard Worker//
7*6c119a46SAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*6c119a46SAndroid Build Coastguard Worker//
9*6c119a46SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*6c119a46SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*6c119a46SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*6c119a46SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*6c119a46SAndroid Build Coastguard Worker// limitations under the License.
14*6c119a46SAndroid Build Coastguard Worker
15*6c119a46SAndroid Build Coastguard Workerpackage {
16*6c119a46SAndroid Build Coastguard Worker    default_applicable_licenses: ["Android-Apache-2.0"],
17*6c119a46SAndroid Build Coastguard Worker}
18*6c119a46SAndroid Build Coastguard Worker
19*6c119a46SAndroid Build Coastguard Workerlicense {
20*6c119a46SAndroid Build Coastguard Worker    name: "external_wayland-protocols-MIT-license",
21*6c119a46SAndroid Build Coastguard Worker    license_kinds: [
22*6c119a46SAndroid Build Coastguard Worker        "SPDX-license-identifier-MIT",
23*6c119a46SAndroid Build Coastguard Worker    ],
24*6c119a46SAndroid Build Coastguard Worker    license_text: ["MIT_LICENSE.txt"],
25*6c119a46SAndroid Build Coastguard Worker}
26*6c119a46SAndroid Build Coastguard Worker
27*6c119a46SAndroid Build Coastguard Workerlicense {
28*6c119a46SAndroid Build Coastguard Worker    name: "external_wayland-protocols-ISC-license",
29*6c119a46SAndroid Build Coastguard Worker    license_kinds: [
30*6c119a46SAndroid Build Coastguard Worker        "SPDX-license-identifier-ISC",
31*6c119a46SAndroid Build Coastguard Worker    ],
32*6c119a46SAndroid Build Coastguard Worker    license_text: ["ISC_LICENSE.txt"],
33*6c119a46SAndroid Build Coastguard Worker}
34*6c119a46SAndroid Build Coastguard Worker
35*6c119a46SAndroid Build Coastguard Workerlicense {
36*6c119a46SAndroid Build Coastguard Worker    name: "external_wayland-protocols-BSD-license",
37*6c119a46SAndroid Build Coastguard Worker    license_kinds: [
38*6c119a46SAndroid Build Coastguard Worker        "SPDX-license-identifier-BSD",
39*6c119a46SAndroid Build Coastguard Worker    ],
40*6c119a46SAndroid Build Coastguard Worker    license_text: ["BSD_LICENSE.txt"],
41*6c119a46SAndroid Build Coastguard Worker}
42*6c119a46SAndroid Build Coastguard Worker
43*6c119a46SAndroid Build Coastguard Worker// Build and use the "wayland_protocol_codegen" extension. This is just a bit
44*6c119a46SAndroid Build Coastguard Worker// of glue code to invoke the wayland-scanner code generation tool provided by
45*6c119a46SAndroid Build Coastguard Worker// the core Wayland code (external/wayland) from the Android build system.
46*6c119a46SAndroid Build Coastguard Workerbootstrap_go_package {
47*6c119a46SAndroid Build Coastguard Worker    name: "soong-wayland-protocol-codegen",
48*6c119a46SAndroid Build Coastguard Worker    // licenses: ["Android-Apache-2.0"],
49*6c119a46SAndroid Build Coastguard Worker    pkgPath: "android/soong/external/wayland-protocol",
50*6c119a46SAndroid Build Coastguard Worker    deps: [
51*6c119a46SAndroid Build Coastguard Worker        "blueprint",
52*6c119a46SAndroid Build Coastguard Worker        "blueprint-proptools",
53*6c119a46SAndroid Build Coastguard Worker        "soong-android",
54*6c119a46SAndroid Build Coastguard Worker        "soong-genrule",
55*6c119a46SAndroid Build Coastguard Worker    ],
56*6c119a46SAndroid Build Coastguard Worker    srcs: [
57*6c119a46SAndroid Build Coastguard Worker        "locations.go",
58*6c119a46SAndroid Build Coastguard Worker        "wayland_protocol_codegen.go",
59*6c119a46SAndroid Build Coastguard Worker    ],
60*6c119a46SAndroid Build Coastguard Worker    testSrcs: ["wayland_protocol_codegen_test.go"],
61*6c119a46SAndroid Build Coastguard Worker    pluginFor: ["soong_build"],
62*6c119a46SAndroid Build Coastguard Worker}
63*6c119a46SAndroid Build Coastguard Worker
64*6c119a46SAndroid Build Coastguard Worker// All the MIT licensed freedesktop.org defined extension protocols.
65*6c119a46SAndroid Build Coastguard Workerfilegroup {
66*6c119a46SAndroid Build Coastguard Worker    name: "freedesktop.org-MIT-wayland_extension_protocols",
67*6c119a46SAndroid Build Coastguard Worker    licenses: ["external_wayland-protocols-MIT-license"],
68*6c119a46SAndroid Build Coastguard Worker    srcs: [
69*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/stable/presentation-time/presentation-time.xml",
70*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/stable/viewporter/viewporter.xml",
71*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/stable/xdg-shell/xdg-shell.xml",
72*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/staging/drm-lease/drm-lease-v1.xml",
73*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/staging/xdg-activation/xdg-activation-v1.xml",
74*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/unstable/fullscreen-shell/fullscreen-shell-unstable-v1.xml",
75*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/unstable/idle-inhibit/idle-inhibit-unstable-v1.xml",
76*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/unstable/input-method/input-method-unstable-v1.xml",
77*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/unstable/input-timestamps/input-timestamps-unstable-v1.xml",
78*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/unstable/keyboard-shortcuts-inhibit/keyboard-shortcuts-inhibit-unstable-v1.xml",
79*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml",
80*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/unstable/linux-explicit-synchronization/linux-explicit-synchronization-unstable-v1.xml",
81*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/unstable/pointer-constraints/pointer-constraints-unstable-v1.xml",
82*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/unstable/pointer-gestures/pointer-gestures-unstable-v1.xml",
83*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/unstable/primary-selection/primary-selection-unstable-v1.xml",
84*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/unstable/relative-pointer/relative-pointer-unstable-v1.xml",
85*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/unstable/tablet/tablet-unstable-v1.xml",
86*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/unstable/tablet/tablet-unstable-v2.xml",
87*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/unstable/text-input/text-input-unstable-v1.xml",
88*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml",
89*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/unstable/xdg-foreign/xdg-foreign-unstable-v1.xml",
90*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/unstable/xdg-foreign/xdg-foreign-unstable-v2.xml",
91*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/unstable/xdg-output/xdg-output-unstable-v1.xml",
92*6c119a46SAndroid Build Coastguard Worker        // Note: Conflicts with freedesktop.org/stable/xdg-shell/xdg-shell.xml
93*6c119a46SAndroid Build Coastguard Worker        // "./freedesktop.org/unstable/xdg-shell/xdg-shell-unstable-v5.xml",
94*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/unstable/xdg-shell/xdg-shell-unstable-v6.xml",
95*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/unstable/xwayland-keyboard-grab/xwayland-keyboard-grab-unstable-v1.xml",
96*6c119a46SAndroid Build Coastguard Worker    ],
97*6c119a46SAndroid Build Coastguard Worker}
98*6c119a46SAndroid Build Coastguard Worker
99*6c119a46SAndroid Build Coastguard Worker// All the ISC licensed freedesktop.org defined extension protocols.
100*6c119a46SAndroid Build Coastguard Workerfilegroup {
101*6c119a46SAndroid Build Coastguard Worker    name: "freedesktop.org-ISC-wayland_extension_protocols",
102*6c119a46SAndroid Build Coastguard Worker    licenses: ["external_wayland-protocols-ISC-license"],
103*6c119a46SAndroid Build Coastguard Worker    srcs: [
104*6c119a46SAndroid Build Coastguard Worker        "./freedesktop.org/unstable/text-input/text-input-unstable-v3.xml",
105*6c119a46SAndroid Build Coastguard Worker    ],
106*6c119a46SAndroid Build Coastguard Worker}
107*6c119a46SAndroid Build Coastguard Worker
108*6c119a46SAndroid Build Coastguard Worker// All the BSD licensed freedesktop.org defined extension protocols.
109*6c119a46SAndroid Build Coastguard Workerfilegroup {
110*6c119a46SAndroid Build Coastguard Worker    name: "freedesktop.org-BSD-wayland_extension_protocols",
111*6c119a46SAndroid Build Coastguard Worker    licenses: ["external_wayland-protocols-BSD-license"],
112*6c119a46SAndroid Build Coastguard Worker    srcs: [
113*6c119a46SAndroid Build Coastguard Worker    ],
114*6c119a46SAndroid Build Coastguard Worker}
115*6c119a46SAndroid Build Coastguard Worker
116*6c119a46SAndroid Build Coastguard Worker// All the BSD licensed chromium.org defined extension protocols.
117*6c119a46SAndroid Build Coastguard Workerfilegroup {
118*6c119a46SAndroid Build Coastguard Worker    name: "chromium.org-wayland_extension_protocols",
119*6c119a46SAndroid Build Coastguard Worker    licenses: ["external_wayland-protocols-BSD-license"],
120*6c119a46SAndroid Build Coastguard Worker    srcs: [
121*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/components/exo/wayland/protocol/aura-output-management.xml",
122*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/components/exo/wayland/protocol/aura-shell.xml",
123*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/components/exo/wayland/protocol/chrome-color-management.xml",
124*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/components/exo/wayland/protocol/overlay-prioritizer.xml",
125*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/components/exo/wayland/protocol/surface-augmenter.xml",
126*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/third_party/wayland-protocols/unstable/alpha-compositing/alpha-compositing-unstable-v1.xml",
127*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/third_party/wayland-protocols/unstable/cursor-shapes/cursor-shapes-unstable-v1.xml",
128*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/third_party/wayland-protocols/unstable/extended-drag/extended-drag-unstable-v1.xml",
129*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/third_party/wayland-protocols/unstable/gaming-input/gaming-input-unstable-v2.xml",
130*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/third_party/wayland-protocols/unstable/keyboard/keyboard-configuration-unstable-v1.xml",
131*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/third_party/wayland-protocols/unstable/keyboard/keyboard-extension-unstable-v1.xml",
132*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/third_party/wayland-protocols/unstable/notification-shell/notification-shell-unstable-v1.xml",
133*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/third_party/wayland-protocols/unstable/remote-shell/remote-shell-unstable-v1.xml",
134*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/third_party/wayland-protocols/unstable/remote-shell/remote-shell-unstable-v2.xml",
135*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/third_party/wayland-protocols/unstable/secure-output/secure-output-unstable-v1.xml",
136*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/third_party/wayland-protocols/unstable/stylus-tools/stylus-tools-unstable-v1.xml",
137*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/third_party/wayland-protocols/unstable/stylus/stylus-unstable-v2.xml",
138*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/third_party/wayland-protocols/unstable/text-input/text-input-extension-unstable-v1.xml",
139*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/third_party/wayland-protocols/unstable/touchpad-haptics/touchpad-haptics-unstable-v1.xml",
140*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/third_party/wayland-protocols/unstable/ui-controls/ui-controls-unstable-v1.xml",
141*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/third_party/wayland-protocols/unstable/vsync-feedback/vsync-feedback-unstable-v1.xml",
142*6c119a46SAndroid Build Coastguard Worker    ],
143*6c119a46SAndroid Build Coastguard Worker}
144*6c119a46SAndroid Build Coastguard Worker
145*6c119a46SAndroid Build Coastguard Workerfilegroup {
146*6c119a46SAndroid Build Coastguard Worker    name: "chromium.org-MIT-wayland_extension_protocols",
147*6c119a46SAndroid Build Coastguard Worker    licenses: ["external_wayland-protocols-MIT-license"],
148*6c119a46SAndroid Build Coastguard Worker    srcs: [
149*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/third_party/wayland-protocols/unstable/content-type/content-type-v1.xml",
150*6c119a46SAndroid Build Coastguard Worker        "./chromium.org/third_party/wayland-protocols/unstable/gtk-primary-selection/gtk-primary-selection.xml",
151*6c119a46SAndroid Build Coastguard Worker    ],
152*6c119a46SAndroid Build Coastguard Worker}
153*6c119a46SAndroid Build Coastguard Worker
154*6c119a46SAndroid Build Coastguard Worker// Allows for easy reference to all the extension protocols.
155*6c119a46SAndroid Build Coastguard Workerfilegroup {
156*6c119a46SAndroid Build Coastguard Worker    name: "wayland_extension_protocols",
157*6c119a46SAndroid Build Coastguard Worker    srcs: [
158*6c119a46SAndroid Build Coastguard Worker        ":freedesktop.org-BSD-wayland_extension_protocols",
159*6c119a46SAndroid Build Coastguard Worker        ":freedesktop.org-MIT-wayland_extension_protocols",
160*6c119a46SAndroid Build Coastguard Worker        ":freedesktop.org-ISC-wayland_extension_protocols",
161*6c119a46SAndroid Build Coastguard Worker        ":chromium.org-wayland_extension_protocols",
162*6c119a46SAndroid Build Coastguard Worker        ":chromium.org-MIT-wayland_extension_protocols",
163*6c119a46SAndroid Build Coastguard Worker    ],
164*6c119a46SAndroid Build Coastguard Worker}
165*6c119a46SAndroid Build Coastguard Worker
166*6c119a46SAndroid Build Coastguard Worker// Common settings for processing these protocols
167*6c119a46SAndroid Build Coastguard Workerwayland_protocol_codegen_defaults {
168*6c119a46SAndroid Build Coastguard Worker    name: "wayland_extension_protocol_defaults",
169*6c119a46SAndroid Build Coastguard Worker
170*6c119a46SAndroid Build Coastguard Worker    // All the protocol files to generate code for.
171*6c119a46SAndroid Build Coastguard Worker    srcs: [":wayland_extension_protocols"],
172*6c119a46SAndroid Build Coastguard Worker
173*6c119a46SAndroid Build Coastguard Worker    // Use "wayland_scanner" out of external/wayland.
174*6c119a46SAndroid Build Coastguard Worker    tools: ["wayland_scanner"],
175*6c119a46SAndroid Build Coastguard Worker}
176*6c119a46SAndroid Build Coastguard Worker
177*6c119a46SAndroid Build Coastguard Worker// Generate protocol source files used by both client and server
178*6c119a46SAndroid Build Coastguard Workerwayland_protocol_codegen {
179*6c119a46SAndroid Build Coastguard Worker    name: "wayland_extension_protocol_sources",
180*6c119a46SAndroid Build Coastguard Worker    defaults: ["wayland_extension_protocol_defaults"],
181*6c119a46SAndroid Build Coastguard Worker
182*6c119a46SAndroid Build Coastguard Worker    // Specifies the command to run to generate each output file for each input file.
183*6c119a46SAndroid Build Coastguard Worker    cmd: "$(location wayland_scanner) private-code < $(in) > $(out)",
184*6c119a46SAndroid Build Coastguard Worker
185*6c119a46SAndroid Build Coastguard Worker    // There is a 1:1 correspondence between each generated output file and each source file.
186*6c119a46SAndroid Build Coastguard Worker    // The output filename should use the base filename of the protocol file (no extension), and
187*6c119a46SAndroid Build Coastguard Worker    // add a ".c" suffix. For example, "freedesktop.org/stable/xdg-shell/xdg-shell.xml" generates
188*6c119a46SAndroid Build Coastguard Worker    // "xdg-shell.c".
189*6c119a46SAndroid Build Coastguard Worker    output: "$(in).c",
190*6c119a46SAndroid Build Coastguard Worker}
191*6c119a46SAndroid Build Coastguard Worker
192*6c119a46SAndroid Build Coastguard Worker// Generate protocol header files used by the client
193*6c119a46SAndroid Build Coastguard Workerwayland_protocol_codegen {
194*6c119a46SAndroid Build Coastguard Worker    name: "wayland_extension_client_protocol_headers",
195*6c119a46SAndroid Build Coastguard Worker    defaults: ["wayland_extension_protocol_defaults"],
196*6c119a46SAndroid Build Coastguard Worker
197*6c119a46SAndroid Build Coastguard Worker    // Specifies the command to run to generate each output file for each input file.
198*6c119a46SAndroid Build Coastguard Worker    cmd: "$(location wayland_scanner) client-header < $(in) > $(out)",
199*6c119a46SAndroid Build Coastguard Worker
200*6c119a46SAndroid Build Coastguard Worker    // There is a 1:1 correspondence between each generated output file and each source file.
201*6c119a46SAndroid Build Coastguard Worker    // The output filename should use the base filename of the protocol file (no extension), and
202*6c119a46SAndroid Build Coastguard Worker    // add a "-client-protocol.h" suffix. For example,
203*6c119a46SAndroid Build Coastguard Worker    // "freedesktop.org/stable/xdg-shell/xdg-shell.xml" generates "xdg-shell-client-protocol.h".
204*6c119a46SAndroid Build Coastguard Worker    output: "$(in)-client-protocol.h",
205*6c119a46SAndroid Build Coastguard Worker}
206*6c119a46SAndroid Build Coastguard Worker
207*6c119a46SAndroid Build Coastguard Worker// Generate protocol header files used by the server
208*6c119a46SAndroid Build Coastguard Workerwayland_protocol_codegen {
209*6c119a46SAndroid Build Coastguard Worker    name: "wayland_extension_server_protocol_headers",
210*6c119a46SAndroid Build Coastguard Worker    defaults: ["wayland_extension_protocol_defaults"],
211*6c119a46SAndroid Build Coastguard Worker
212*6c119a46SAndroid Build Coastguard Worker    // Specifies the command to run to generate each output file for each input file.
213*6c119a46SAndroid Build Coastguard Worker    cmd: "$(location wayland_scanner) server-header < $(in) > $(out)",
214*6c119a46SAndroid Build Coastguard Worker
215*6c119a46SAndroid Build Coastguard Worker    // There is a 1:1 correspondence between each generated output file and each source file.
216*6c119a46SAndroid Build Coastguard Worker    // The output filename should use the base filename of the protocol file (no extension), and
217*6c119a46SAndroid Build Coastguard Worker    // add a "-server-protocol.h" suffix. For example,
218*6c119a46SAndroid Build Coastguard Worker    // "freedesktop.org/stable/xdg-shell/xdg-shell.xml" generates "xdg-shell-server-protocol.h".
219*6c119a46SAndroid Build Coastguard Worker    output: "$(in)-server-protocol.h",
220*6c119a46SAndroid Build Coastguard Worker}
221*6c119a46SAndroid Build Coastguard Worker
222*6c119a46SAndroid Build Coastguard Worker// Generate a library with the protocol files, configured to export the client
223*6c119a46SAndroid Build Coastguard Worker// header files
224*6c119a46SAndroid Build Coastguard Workercc_library_static {
225*6c119a46SAndroid Build Coastguard Worker    name: "libwayland_extension_client_protocols",
226*6c119a46SAndroid Build Coastguard Worker    vendor_available: true,
227*6c119a46SAndroid Build Coastguard Worker    cflags: [
228*6c119a46SAndroid Build Coastguard Worker        "-Wall",
229*6c119a46SAndroid Build Coastguard Worker        "-Wextra",
230*6c119a46SAndroid Build Coastguard Worker        "-Werror",
231*6c119a46SAndroid Build Coastguard Worker        "-g",
232*6c119a46SAndroid Build Coastguard Worker        "-fvisibility=hidden",
233*6c119a46SAndroid Build Coastguard Worker    ],
234*6c119a46SAndroid Build Coastguard Worker    static_libs: ["libwayland_client_static"],
235*6c119a46SAndroid Build Coastguard Worker    generated_sources: ["wayland_extension_protocol_sources"],
236*6c119a46SAndroid Build Coastguard Worker    generated_headers: ["wayland_extension_client_protocol_headers"],
237*6c119a46SAndroid Build Coastguard Worker    export_generated_headers: ["wayland_extension_client_protocol_headers"],
238*6c119a46SAndroid Build Coastguard Worker}
239*6c119a46SAndroid Build Coastguard Worker
240*6c119a46SAndroid Build Coastguard Worker// Generate a library with the protocol files, configured to export the server
241*6c119a46SAndroid Build Coastguard Worker// header files
242*6c119a46SAndroid Build Coastguard Workercc_library_static {
243*6c119a46SAndroid Build Coastguard Worker    name: "libwayland_extension_server_protocols",
244*6c119a46SAndroid Build Coastguard Worker    vendor_available: true,
245*6c119a46SAndroid Build Coastguard Worker    host_supported: true,
246*6c119a46SAndroid Build Coastguard Worker    cflags: [
247*6c119a46SAndroid Build Coastguard Worker        "-Wall",
248*6c119a46SAndroid Build Coastguard Worker        "-Wextra",
249*6c119a46SAndroid Build Coastguard Worker        "-Werror",
250*6c119a46SAndroid Build Coastguard Worker        "-g",
251*6c119a46SAndroid Build Coastguard Worker        "-fvisibility=hidden",
252*6c119a46SAndroid Build Coastguard Worker    ],
253*6c119a46SAndroid Build Coastguard Worker    static_libs: ["libwayland_server"],
254*6c119a46SAndroid Build Coastguard Worker    generated_sources: ["wayland_extension_protocol_sources"],
255*6c119a46SAndroid Build Coastguard Worker    generated_headers: ["wayland_extension_server_protocol_headers"],
256*6c119a46SAndroid Build Coastguard Worker    export_generated_headers: ["wayland_extension_server_protocol_headers"],
257*6c119a46SAndroid Build Coastguard Worker}
258