Merge changes If1cffa85,I9011a959

* changes:
  init: move property_service.cpp to libinit
  init: statically link libselinux to init_tests
This commit is contained in:
Tom Cherry 2017-08-10 04:31:54 +00:00 committed by Gerrit Code Review
commit 30bd51c61f
2 changed files with 11 additions and 9 deletions

View file

@ -69,6 +69,7 @@ cc_library_static {
"import_parser.cpp",
"log.cpp",
"parser.cpp",
"property_service.cpp",
"service.cpp",
"tokenizer.cpp",
"uevent_listener.cpp",
@ -81,7 +82,12 @@ cc_library_static {
"libselinux",
"liblog",
"libprocessgroup",
"libfs_mgr",
],
include_dirs: [
"system/core/mkbootimg",
],
}
/*
@ -105,15 +111,11 @@ cc_binary {
"init.cpp",
"init_first_stage.cpp",
"keychords.cpp",
"property_service.cpp",
"reboot.cpp",
"signal_handler.cpp",
"ueventd.cpp",
"watchdogd.cpp",
],
include_dirs: [
"system/core/mkbootimg"
],
static_libs: [
"libinit",
"libbootloader_message",
@ -162,9 +164,12 @@ cc_test {
shared_libs: [
"libbase",
"libcutils",
"libselinux",
],
static_libs: ["libinit"],
static_libs: [
"libinit",
"libselinux",
"libcrypto",
],
}
subdirs = ["*"]

View file

@ -51,15 +51,12 @@ LOCAL_SRC_FILES:= \
init.cpp \
init_first_stage.cpp \
keychords.cpp \
property_service.cpp \
reboot.cpp \
signal_handler.cpp \
ueventd.cpp \
watchdogd.cpp \
LOCAL_MODULE:= init
LOCAL_C_INCLUDES += \
system/core/mkbootimg
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)