1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5aconfig_declarations { 6 name: "uprobestats_flags", 7 package: "android.uprobestats.flags", 8 container: "system", 9 srcs: ["flag.aconfig"], 10} 11 12cc_aconfig_library { 13 name: "uprobestats_flags_c_lib", 14 aconfig_declarations: "uprobestats_flags", 15} 16 17cc_library { 18 name: "libuprobestats", 19 srcs: [ 20 "Art.cpp", 21 "Bpf.cpp", 22 "ConfigResolver.cpp", 23 "Process.cpp", 24 "config.proto", 25 ], 26 header_libs: [ 27 "bpf_headers", 28 "bpf_syscall_wrappers", 29 ], 30 shared_libs: [ 31 "libbase", 32 "liblog", 33 ], 34 static_libs: [ 35 "libc++fs", 36 "libjsoncpp", 37 "uprobestats_flags_c_lib", 38 ], 39 proto: { 40 export_proto_headers: true, 41 type: "lite", 42 }, 43} 44 45cc_binary { 46 name: "uprobestats", 47 srcs: [ 48 "UprobeStats.cpp", 49 "config.proto", 50 ], 51 static_libs: [ 52 "libc++fs", 53 "libjsoncpp", 54 "libprotoutil", 55 "libuprobestats", 56 "uprobestats_flags_c_lib", 57 ], 58 shared_libs: [ 59 "libbase", 60 "liblog", 61 ], 62 init_rc: [ 63 "UprobeStats.rc", 64 ], 65 required: [ 66 "BitmapAllocation.o", 67 ], 68 proto: { 69 type: "lite", 70 static: true, 71 }, 72} 73 74python_binary_host { 75 name: "hello_uprobestats", 76 main: "test/hello_uprobestats.py", 77 srcs: [ 78 "test/hello_uprobestats.py", 79 "config.proto", 80 ], 81 data: ["test/*.textproto"], 82 libs: ["libprotobuf-python"], 83 proto: { 84 canonical_path_from_root: false, 85 }, 86} 87