You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.5 KiB

package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "frameworks_native_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_native_license"],
}
cc_defaults {
name: "servicemanager_defaults",
cflags: [
"-Wall",
"-Wextra",
"-Werror",
"-DANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION",
],
srcs: [
"Access.cpp",
"ServiceManager.cpp",
],
shared_libs: [
"libbase",
"libbinder", // also contains servicemanager_interface
"libvintf",
"libcutils",
"liblog",
"libutils",
"libselinux",
],
target: {
vendor: {
exclude_shared_libs: ["libvintf"],
},
},
}
cc_binary {
name: "servicemanager",
defaults: ["servicemanager_defaults"],
init_rc: ["servicemanager.rc"],
srcs: ["main.cpp"],
}
cc_binary {
name: "vndservicemanager",
defaults: ["servicemanager_defaults"],
init_rc: ["vndservicemanager.rc"],
vendor: true,
cflags: [
"-DVENDORSERVICEMANAGER=1",
],
required: [
"vndservice",
],
srcs: ["main.cpp"],
}
cc_test {
name: "servicemanager_test",
test_suites: ["device-tests"],
defaults: ["servicemanager_defaults"],
srcs: [
"test_sm.cpp",
],
static_libs: ["libgmock"],
}