package { default_applicable_licenses: ["Android-Apache-2.0"], } aconfig_declarations { name: "uprobestats_flags", package: "android.uprobestats.flags", container: "system", srcs: ["flag.aconfig"], } cc_aconfig_library { name: "uprobestats_flags_c_lib", aconfig_declarations: "uprobestats_flags", } cc_library { name: "libuprobestats", srcs: [ "Art.cpp", "Bpf.cpp", "ConfigResolver.cpp", "Process.cpp", "config.proto", ], header_libs: [ "bpf_headers", "bpf_syscall_wrappers", ], shared_libs: [ "libbase", "liblog", ], static_libs: [ "libc++fs", "libjsoncpp", "uprobestats_flags_c_lib", ], proto: { export_proto_headers: true, type: "lite", }, } cc_binary { name: "uprobestats", srcs: [ "UprobeStats.cpp", "config.proto", ], static_libs: [ "libc++fs", "libjsoncpp", "libprotoutil", "libuprobestats", "uprobestats_flags_c_lib", ], shared_libs: [ "libbase", "liblog", ], init_rc: [ "UprobeStats.rc", ], required: [ "BitmapAllocation.o", ], proto: { type: "lite", static: true, }, } python_binary_host { name: "hello_uprobestats", main: "test/hello_uprobestats.py", srcs: [ "test/hello_uprobestats.py", "config.proto", ], data: ["test/*.textproto"], libs: ["libprotobuf-python"], proto: { canonical_path_from_root: false, }, }