1cc_defaults { 2 name: "servicemanager_defaults", 3 4 cflags: [ 5 "-Wall", 6 "-Wextra", 7 "-Werror", 8 ], 9 10 srcs: [ 11 "Access.cpp", 12 "ServiceManager.cpp", 13 ], 14 15 shared_libs: [ 16 "libbase", 17 "libbinder", // also contains servicemanager_interface 18 "libvintf", 19 "libcutils", 20 "liblog", 21 "libutils", 22 "libselinux", 23 ], 24 25 target: { 26 vendor: { 27 exclude_shared_libs: ["libvintf"], 28 }, 29 }, 30} 31 32cc_binary { 33 name: "servicemanager", 34 defaults: ["servicemanager_defaults"], 35 init_rc: ["servicemanager.rc"], 36 srcs: ["main.cpp"], 37} 38 39cc_binary { 40 name: "vndservicemanager", 41 defaults: ["servicemanager_defaults"], 42 init_rc: ["vndservicemanager.rc"], 43 vendor: true, 44 cflags: [ 45 "-DVENDORSERVICEMANAGER=1", 46 ], 47 srcs: ["main.cpp"], 48} 49 50cc_test { 51 name: "servicemanager_test", 52 test_suites: ["device-tests"], 53 defaults: ["servicemanager_defaults"], 54 srcs: [ 55 "test_sm.cpp", 56 ], 57 static_libs: ["libgmock"], 58} 59