12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- filegroup {
- name: "gpuservice_sources",
- srcs: [
- "GpuService.cpp",
- "gpustats/GpuStats.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",
- ],
- srcs: [
- ":gpuservice_sources",
- ],
- include_dirs: [
- "frameworks/native/vulkan/vkjson",
- "frameworks/native/vulkan/include",
- ],
- shared_libs: [
- "libbase",
- "libbinder",
- "libcutils",
- "libgraphicsenv",
- "liblog",
- "libutils",
- "libvulkan",
- ],
- static_libs: [
- "libserviceutils",
- "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",
- "libcutils",
- "liblog",
- "libutils",
- ],
- ldflags: ["-Wl,--export-dynamic"],
- }
- cc_binary {
- name: "gpuservice",
- defaults: ["gpuservice_binary"],
- init_rc: ["gpuservice.rc"],
- srcs: [":gpuservice_binary_sources"],
- }
|