diff options
author | Xin Li <delphij@google.com> | 2019-09-04 13:33:54 -0700 |
---|---|---|
committer | Xin Li <delphij@google.com> | 2019-09-04 13:33:54 -0700 |
commit | ef33d009d8ec509b2ecf9f95fc0471832c7a033e (patch) | |
tree | 0a2a08307e1abfe274ea41a2d62173fdf0aa6a06 | |
parent | b8390fcf7d537a37948babfc1f102a905c62489f (diff) | |
parent | 722e953ce22747eb50a89e3c48d2a01bfeafda3e (diff) | |
download | wayland-ef33d009d8ec509b2ecf9f95fc0471832c7a033e.tar.gz |
DO NOT MERGE - Merge Android 10 into master
Bug: 139893257
Change-Id: I836b8ceed9e7816ddc2c280cbb9be3b722c51199
-rw-r--r-- | Android.bp | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -72,6 +72,15 @@ genrule { tools: ["wayland_scanner"], } +// Generate protocol header files used by the server +genrule { + name: "wayland_core_server_protocol_headers", + cmd: "$(location wayland_scanner) server-header < $(in) > $(out)", + srcs: [":wayland_core_protocol"], + out: ["wayland-server-protocol.h"], + tools: ["wayland_scanner"], +} + // Build wayland_client cc_library_static { name: "libwayland_client", @@ -97,3 +106,31 @@ cc_library_static { "wayland_core_client_protocol_headers" ], } + +// Build wayland_server +cc_library_static { + name: "libwayland_server", + vendor_available: true, + defaults: ["wayland_defaults"], + srcs: [ + "src/connection.c", + "src/wayland-os.c", + "src/wayland-util.c", + "src/wayland-server.c", + "src/wayland-shm.c", + "src/event-loop.c", + ], + cflags: ["-Wall", "-Werror"], + generated_sources: ["wayland_core_protocol_sources"], + static_libs: ["libffi"], + local_include_dirs: ["src"], + generated_headers: [ + "wayland_version_header", + "wayland_core_server_protocol_headers", + ], + export_include_dirs: ["src"], + export_generated_headers: [ + "wayland_version_header", + "wayland_core_server_protocol_headers", + ], +} |