init: move property_service.cpp to libinit
service.cpp, which is part of libinit, references symbols in property_service.cpp, which causes the linker to complain when linking libinit.a in some situations. Therefore, we move property_service.cpp to libinit. Separately, this will make it easier to write tests for property_service.cpp, which we will want to do in the future. Test: build, init unit tests Change-Id: If1cffa8510b97e9436efed3c8ea0724272383eba
This commit is contained in:
parent
45a9d67cec
commit
2a978d32d2
|
@ -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",
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue