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_defaults { 11 name: "pdx_default_transport_compiler_defaults", 12 clang: true, 13 cflags: [ 14 "-Wall", 15 "-Wextra", 16 "-Werror", 17 ], 18} 19 20cc_defaults { 21 name: "pdx_default_transport_lib_defaults", 22 export_include_dirs: ["private"], 23 whole_static_libs: ["libpdx"], 24} 25 26cc_defaults { 27 name: "pdx_use_transport_servicefs", 28 export_include_dirs: ["private/servicefs"], 29 whole_static_libs: ["libpdx_servicefs", "libservicefs"], 30} 31 32cc_defaults { 33 name: "pdx_use_transport_uds", 34 export_include_dirs: ["private/uds"], 35 whole_static_libs: ["libpdx_uds"], 36} 37 38cc_library_shared { 39 name: "libpdx_default_transport", 40 defaults: [ 41 "pdx_default_transport_compiler_defaults", 42 "pdx_default_transport_lib_defaults", 43 "pdx_use_transport_uds", 44 ], 45 shared_libs: [ 46 "libbase", 47 "libbinder", 48 "libcutils", 49 "liblog", 50 "libutils", 51 "libselinux", 52 ], 53} 54 55cc_binary { 56 name: "pdx_tool", 57 system_ext_specific: true, 58 defaults: ["pdx_default_transport_compiler_defaults"], 59 srcs: [ 60 "pdx_tool.cpp", 61 ], 62 shared_libs: [ 63 "libbinder", 64 "libcutils", 65 "liblog", 66 "libpdx_default_transport", 67 ], 68} 69 70// Benchmarks. 71cc_binary { 72 name: "pdx_benchmarks", 73 defaults: ["pdx_default_transport_compiler_defaults"], 74 srcs: [ 75 "pdx_benchmarks.cpp", 76 ], 77 shared_libs: [ 78 "libbase", 79 "libbinder", 80 "libchrome", 81 "libcutils", 82 "liblog", 83 "libutils", 84 "libpdx_default_transport", 85 ], 86} 87