blob: c1f6da3b103ee5825e9e19af49c70b412891d9be [file] [log] [blame]
Bob Badour3c538232021-02-12 21:26:48 -08001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "frameworks_native_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["frameworks_native_license"],
8}
9
Jiyong Parkfe0a8242018-04-09 12:16:30 +090010cc_library_headers {
11 name: "libpdx_headers",
12 export_include_dirs: ["private"],
13 vendor_available: true,
Jooyung Hana395c8d2020-04-16 18:48:32 +090014 min_sdk_version: "29",
Jiyong Parkfe0a8242018-04-09 12:16:30 +090015}
16
Alex Vakulenkoe4eec202017-01-27 14:41:04 -080017cc_library_static {
18 name: "libpdx",
19 clang: true,
20 cflags: [
21 "-Wall",
22 "-Wextra",
23 "-Werror",
Alex Vakulenko5a244ed2017-06-09 16:29:04 -070024 "-DLOG_TAG=\"libpdx\"",
25 "-DTRACE=0",
Alex Vakulenkoe4eec202017-01-27 14:41:04 -080026 ],
Jiyong Parkfe0a8242018-04-09 12:16:30 +090027 header_libs: ["libpdx_headers"],
28 export_header_lib_headers: ["libpdx_headers"],
Alex Vakulenkoe4eec202017-01-27 14:41:04 -080029 srcs: [
30 "client.cpp",
31 "service.cpp",
Alex Vakulenko5a244ed2017-06-09 16:29:04 -070032 "service_dispatcher.cpp",
Alex Vakulenkoe4eec202017-01-27 14:41:04 -080033 "status.cpp",
34 ],
Jiwen 'Steve' Cai0f950842018-01-16 17:05:54 -080035 shared_libs: [
36 "libbinder",
37 "libcutils",
38 "libutils",
39 "liblog",
40 ],
Alex Vakulenkoe4eec202017-01-27 14:41:04 -080041}
42
43cc_test {
44 name: "pdx_tests",
45 clang: true,
46 cflags: [
47 "-Wall",
48 "-Wextra",
49 "-Werror",
50 ],
51 srcs: [
52 "client_tests.cpp",
53 "mock_tests.cpp",
54 "serialization_tests.cpp",
55 "service_tests.cpp",
56 "status_tests.cpp",
57 "thread_local_buffer_tests.cpp",
58 "variant_tests.cpp",
59 ],
60 static_libs: [
Corey Tabaka52ea25c2017-09-13 18:02:48 -070061 "libcutils",
Alex Vakulenkoe4eec202017-01-27 14:41:04 -080062 "libgmock",
63 "libpdx",
64 "liblog",
65 "libutils",
Peter Collingbourne19de2082019-12-17 20:15:48 -080066 ],
67 shared_libs: [
Jiyong Park059ceb22017-05-27 15:29:41 +090068 "libvndksupport",
Alex Vakulenkoe4eec202017-01-27 14:41:04 -080069 ],
70}
71
72// Code analysis target.
73cc_test {
74 name: "pdx_encoder_performance_test",
75 clang: true,
76 cflags: [
77 "-Wall",
78 "-Wextra",
79 "-Werror",
80 "-O2",
81 ],
82 srcs: [
83 "encoder_performance_test.cpp",
84 ],
85 static_libs: [
86 "libpdx",
87 ],
88}