1package { 2 default_applicable_licenses: ["frameworks_native_cmds_dumpsys_license"], 3} 4 5// Added automatically by a large-scale-change 6// See: http://go/android-license-faq 7license { 8 name: "frameworks_native_cmds_dumpsys_license", 9 visibility: [":__subpackages__"], 10 license_kinds: [ 11 "SPDX-license-identifier-Apache-2.0", 12 ], 13 license_text: [ 14 "NOTICE", 15 ], 16} 17 18cc_defaults { 19 name: "dumpsys_defaults", 20 21 cflags: [ 22 "-Wall", 23 "-Werror", 24 ], 25 26 srcs: [ 27 "dumpsys.cpp", 28 ], 29 30 shared_libs: [ 31 "libbase", 32 "libutils", 33 "liblog", 34 "libbinder", 35 "libbinderdebug", 36 ], 37 38 static_libs: [ 39 "libserviceutils", 40 ], 41} 42 43// 44// Static library used in testing and executable 45// 46 47cc_library_static { 48 name: "libdumpsys", 49 50 defaults: ["dumpsys_defaults"], 51 52 export_include_dirs: ["."], 53} 54 55// 56// Executable 57// 58 59cc_binary { 60 name: "dumpsys", 61 62 defaults: ["dumpsys_defaults"], 63 64 srcs: [ 65 "main.cpp", 66 ], 67 68 shared_libs: [ 69 "packagemanager_aidl-cpp", 70 ], 71} 72 73cc_binary { 74 name: "dumpsys_vendor", 75 stem: "dumpsys", 76 77 vendor: true, 78 79 defaults: ["dumpsys_defaults"], 80 81 srcs: [ 82 "main.cpp", 83 ], 84} 85