diff options
author | Sharif Elcott <selcott@google.com> | 2018-07-25 11:33:44 +0900 |
---|---|---|
committer | Sharif Elcott <selcott@google.com> | 2018-07-25 12:00:05 +0900 |
commit | c3e77754cab44d3231d0905206b4b775b58e7695 (patch) | |
tree | 0521d5bbfbe8b97ea834b4de3a67ce6f03cfe28f | |
parent | 0ba51a1e9e95c413338fbf8f9145144a903ea44a (diff) | |
download | wayland-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.bp | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 { |