diff options
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 33 |
1 files changed, 24 insertions, 9 deletions
@@ -10,14 +10,27 @@ license { license_text: ["LICENSE"], } +filegroup { + name: "act-proto", + srcs: [ + "**/*.proto", + "act/act.proto", + ], + visibility: ["//packages/modules/AdServices:__subpackages__"], + path: "act", +} + cc_defaults { name: "libact_defaults", host_supported: true, } -cc_library { +cc_library_static { name: "libact", defaults: ["libact_defaults"], + min_sdk_version: "30", + sdk_version: "current", + stl: "libc++_static", srcs: [ "act/act.proto", "act/act_v0/act_v0.cc", @@ -27,13 +40,13 @@ cc_library { shared_libs: [ "libcrypto", "liblog", - "libprotobuf-cpp-lite", ], - static_libs: [ + whole_static_libs: [ "libpjc_crypto", "libpjc_third_party_libabsl", ], cflags: ["-Wno-unused-parameter"], + export_include_dirs: ["."], proto: { type: "lite", export_proto_headers: true, @@ -48,13 +61,15 @@ cc_library { integer_overflow: true, misc_undefined: ["bounds"], }, + apex_available: ["com.android.adservices", "com.android.extservices",], + visibility: ["//packages/modules/AdServices/adservices/service-core"], target: { - android: { - sanitize: { - cfi: true, - }, - }, - }, + android: { + whole_static_libs: [ + "libprotobuf-cpp-lite-ndk", + ] + } + } } cc_test { |