blob: 250bbee3509990a6b789b5ef04335a95470a5e5b [file] [log] [blame]
filegroup {
name: "gpuservice_sources",
srcs: [
"GpuService.cpp",
],
}
filegroup {
name: "gpuservice_binary_sources",
srcs: ["main_gpuservice.cpp"],
}
cc_defaults {
name: "gpuservice_defaults",
cflags: [
"-DLOG_TAG=\"GpuService\"",
"-Wall",
"-Werror",
"-Wformat",
"-Wthread-safety",
"-Wunused",
"-Wunreachable-code",
],
cppflags: ["-std=c++1z"],
srcs: [
":gpuservice_sources",
],
include_dirs: [
"frameworks/native/vulkan/vkjson",
"frameworks/native/vulkan/include",
],
shared_libs: [
"libbinder",
"liblog",
"libutils",
"libvulkan",
],
static_libs: [
"libvkjson",
],
}
cc_defaults {
name: "gpuservice_production_defaults",
defaults: ["gpuservice_defaults"],
cflags: [
"-fvisibility=hidden",
"-fwhole-program-vtables", // requires ThinLTO
],
lto: {
thin: true,
},
}
cc_defaults {
name: "gpuservice_binary",
defaults: ["gpuservice_defaults"],
whole_static_libs: [
"libsigchain",
],
shared_libs: [
"libbinder",
"liblog",
"libutils",
],
ldflags: ["-Wl,--export-dynamic"],
}
cc_binary {
name: "gpuservice",
defaults: ["gpuservice_binary"],
init_rc: ["gpuservice.rc"],
srcs: [":gpuservice_binary_sources"],
}