blob: 4da12aa35e308014cbf3655eea40e9e228d4bbbd [file] [log] [blame]
// This file is manually copied from old Android.bp
// cargo2android.py limitations:
// does not handle "-l dylib=wayland-client" yet
// does not generate cc_library module yet
// does not generate wayland_protocol_codegen module yet
rust_library_host_rlib {
name: "libgpu_display",
defaults: ["crosvm_defaults"],
crate_name: "gpu_display",
srcs: ["src/lib.rs"],
rlibs: [
"libdata_model",
"liblibc",
"liblinux_input_sys",
"libsys_util",
],
static_libs: [
"libdisplay_wl",
],
}
cc_library_host_static {
name: "libdisplay_wl",
c_std: "c11",
srcs: ["src/display_wl.c"],
generated_sources: ["gpu_display_protocol_sources"],
generated_headers: ["gpu_display_client_protocol_headers"],
export_generated_headers: ["gpu_display_client_protocol_headers"],
static_libs: ["libwayland_client"],
}
wayland_protocol_codegen {
name: "gpu_display_protocol_sources",
cmd: "$(location wayland_scanner) private-code < $(in) > $(out)",
suffix: ".c",
srcs: [
"protocol/aura-shell.xml",
"protocol/linux-dmabuf-unstable-v1.xml",
"protocol/viewporter.xml",
"protocol/xdg-shell-unstable-v6.xml",
],
tools: ["wayland_scanner"],
}
wayland_protocol_codegen {
name: "gpu_display_client_protocol_headers",
cmd: "$(location wayland_scanner) client-header < $(in) > $(out)",
suffix: ".h",
srcs: [
"protocol/aura-shell.xml",
"protocol/linux-dmabuf-unstable-v1.xml",
"protocol/viewporter.xml",
"protocol/xdg-shell-unstable-v6.xml",
],
tools: ["wayland_scanner"],
}