blob: e21d8e779da732bb2a79af36b962777765074f0e [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",
Yiwei Zhangcb9d4e42019-02-06 20:22:59 -080033 "libcutils",
34 "libgraphicsenv",
Peiyong Lin2da74652018-11-01 10:34:57 -070035 "liblog",
36 "libutils",
37 "libvulkan",
38 ],
39 static_libs: [
40 "libvkjson",
41 ],
42}
43
44cc_defaults {
45 name: "gpuservice_production_defaults",
46 defaults: ["gpuservice_defaults"],
47 cflags: [
48 "-fvisibility=hidden",
49 "-fwhole-program-vtables", // requires ThinLTO
50 ],
51 lto: {
52 thin: true,
53 },
54}
55
56cc_defaults {
57 name: "gpuservice_binary",
58 defaults: ["gpuservice_defaults"],
59 whole_static_libs: [
60 "libsigchain",
61 ],
62 shared_libs: [
63 "libbinder",
Yiwei Zhangcb9d4e42019-02-06 20:22:59 -080064 "libcutils",
Peiyong Lin2da74652018-11-01 10:34:57 -070065 "liblog",
66 "libutils",
67 ],
68 ldflags: ["-Wl,--export-dynamic"],
69}
70
71cc_binary {
72 name: "gpuservice",
73 defaults: ["gpuservice_binary"],
74 init_rc: ["gpuservice.rc"],
75 srcs: [":gpuservice_binary_sources"],
76}