blob: 47bed65a2bcfe54d07799be4408482f84016e915 [file] [log] [blame]
Peiyong Lin2da74652018-11-01 10:34:57 -07001filegroup {
2 name: "gpuservice_sources",
3 srcs: [
4 "GpuService.cpp",
5 ],
6}
7
8filegroup {
9 name: "gpuservice_binary_sources",
10 srcs: ["main_gpuservice.cpp"],
11}
12
13cc_defaults {
14 name: "gpuservice_defaults",
15 cflags: [
16 "-DLOG_TAG=\"GpuService\"",
17 "-Wall",
18 "-Werror",
19 "-Wformat",
20 "-Wthread-safety",
21 "-Wunused",
22 "-Wunreachable-code",
23 ],
Peiyong Lin2da74652018-11-01 10:34:57 -070024 srcs: [
25 ":gpuservice_sources",
26 ],
27 include_dirs: [
28 "frameworks/native/vulkan/vkjson",
29 "frameworks/native/vulkan/include",
30 ],
31 shared_libs: [
32 "libbinder",
33 "liblog",
34 "libutils",
35 "libvulkan",
36 ],
37 static_libs: [
38 "libvkjson",
39 ],
40}
41
42cc_defaults {
43 name: "gpuservice_production_defaults",
44 defaults: ["gpuservice_defaults"],
45 cflags: [
46 "-fvisibility=hidden",
47 "-fwhole-program-vtables", // requires ThinLTO
48 ],
49 lto: {
50 thin: true,
51 },
52}
53
54cc_defaults {
55 name: "gpuservice_binary",
56 defaults: ["gpuservice_defaults"],
57 whole_static_libs: [
58 "libsigchain",
59 ],
60 shared_libs: [
61 "libbinder",
62 "liblog",
63 "libutils",
64 ],
65 ldflags: ["-Wl,--export-dynamic"],
66}
67
68cc_binary {
69 name: "gpuservice",
70 defaults: ["gpuservice_binary"],
71 init_rc: ["gpuservice.rc"],
72 srcs: [":gpuservice_binary_sources"],
73}