blob: 2e8571ac4d9e175bed103fae92ac02411456aa7b [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: [
Yiwei Zhangbb4eaf62019-02-23 17:53:27 -080032 "libbase",
Peiyong Lin2da74652018-11-01 10:34:57 -070033 "libbinder",
Yiwei Zhangcb9d4e42019-02-06 20:22:59 -080034 "libcutils",
35 "libgraphicsenv",
Peiyong Lin2da74652018-11-01 10:34:57 -070036 "liblog",
37 "libutils",
38 "libvulkan",
39 ],
40 static_libs: [
Yiwei Zhangbb4eaf62019-02-23 17:53:27 -080041 "libserviceutils",
Peiyong Lin2da74652018-11-01 10:34:57 -070042 "libvkjson",
43 ],
44}
45
46cc_defaults {
47 name: "gpuservice_production_defaults",
48 defaults: ["gpuservice_defaults"],
49 cflags: [
50 "-fvisibility=hidden",
51 "-fwhole-program-vtables", // requires ThinLTO
52 ],
53 lto: {
54 thin: true,
55 },
56}
57
58cc_defaults {
59 name: "gpuservice_binary",
60 defaults: ["gpuservice_defaults"],
61 whole_static_libs: [
62 "libsigchain",
63 ],
64 shared_libs: [
65 "libbinder",
Yiwei Zhangcb9d4e42019-02-06 20:22:59 -080066 "libcutils",
Peiyong Lin2da74652018-11-01 10:34:57 -070067 "liblog",
68 "libutils",
69 ],
70 ldflags: ["-Wl,--export-dynamic"],
71}
72
73cc_binary {
74 name: "gpuservice",
75 defaults: ["gpuservice_binary"],
76 init_rc: ["gpuservice.rc"],
77 srcs: [":gpuservice_binary_sources"],
78}