1package { 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 10cc_library_headers { 11 name: "libpdx_headers", 12 export_include_dirs: ["private"], 13 vendor_available: true, 14 min_sdk_version: "29", 15} 16 17cc_library_static { 18 name: "libpdx", 19 clang: true, 20 cflags: [ 21 "-Wall", 22 "-Wextra", 23 "-Werror", 24 "-DLOG_TAG=\"libpdx\"", 25 "-DTRACE=0", 26 ], 27 header_libs: ["libpdx_headers"], 28 export_header_lib_headers: ["libpdx_headers"], 29 srcs: [ 30 "client.cpp", 31 "service.cpp", 32 "service_dispatcher.cpp", 33 "status.cpp", 34 ], 35 shared_libs: [ 36 "libbinder", 37 "libcutils", 38 "libutils", 39 "liblog", 40 ], 41} 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: [ 61 "libcutils", 62 "libgmock", 63 "libpdx", 64 "liblog", 65 "libutils", 66 ], 67 shared_libs: [ 68 "libvndksupport", 69 ], 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} 89