summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharif Elcott <selcott@google.com>2018-07-25 11:33:44 +0900
committerSharif Elcott <selcott@google.com>2018-07-25 12:00:05 +0900
commitc3e77754cab44d3231d0905206b4b775b58e7695 (patch)
tree0521d5bbfbe8b97ea834b4de3a67ce6f03cfe28f
parent0ba51a1e9e95c413338fbf8f9145144a903ea44a (diff)
downloadwayland-protocols-c3e77754cab44d3231d0905206b4b775b58e7695.tar.gz
Generate wayland server protocol headers.
Added a build target to run wayland_scanner on the protocol xml files to generate all the *-server-protocol.h files, rather than only the *-client-protocol.h files as before. Test: - Add 'generated_headers: ["wayland_extension_server_protocol_headers"]' to any other cc_binary or cc_library build target (T) - m T - Check that out/soong/.intermediates/external/wayland-protocols/\ wayland_extension_server_protocol_headers/gen/*-server-protocol.h exists, and that source files in T can include them. Change-Id: I940a3845c400bd05020295229a28d0202b6d4538
-rw-r--r--Android.bp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 38774f3..ee20631 100644
--- a/Android.bp
+++ b/Android.bp
@@ -54,6 +54,15 @@ wayland_protocol_codegen {
tools: ["wayland_scanner"],
}
+// Generate protocol header files used by the server
+wayland_protocol_codegen {
+ name: "wayland_extension_server_protocol_headers",
+ cmd: "$(location wayland_scanner) server-header < $(in) > $(out)",
+ suffix: "-server-protocol.h",
+ srcs: [":wayland_extension_protocols"],
+ tools: ["wayland_scanner"],
+}
+
// Generate a library with the protocol files, configured to export the client
// header files
cc_library_static {