1cc_defaults { 2 name: "dumpsys_defaults", 3 4 cflags: [ 5 "-Wall", 6 "-Werror", 7 ], 8 9 srcs: [ 10 "dumpsys.cpp", 11 ], 12 13 shared_libs: [ 14 "libbase", 15 "libutils", 16 "liblog", 17 "libbinder", 18 ], 19 20 static_libs: [ 21 "libserviceutils", 22 ], 23} 24 25// 26// Static library used in testing and executable 27// 28 29cc_library_static { 30 name: "libdumpsys", 31 32 defaults: ["dumpsys_defaults"], 33 34 export_include_dirs: ["."], 35} 36 37// 38// Executable 39// 40 41cc_binary { 42 name: "dumpsys", 43 44 defaults: ["dumpsys_defaults"], 45 46 srcs: [ 47 "main.cpp", 48 ], 49} 50 51cc_binary { 52 name: "dumpsys_vendor", 53 stem: "dumpsys", 54 55 vendor: true, 56 57 defaults: ["dumpsys_defaults"], 58 59 srcs: [ 60 "main.cpp", 61 ], 62} 63