41ea424413
Teach free_cache() and restorecon_data() about building per-volume paths. Also clean up restorecon_data() by using std::string when building paths. Clearer names for path building utility methods, and tests to verify. Bug: 19993667 Change-Id: Iacfbcdaa5b901cc2490bc8eba366dfdeb44f1d93
39 lines
870 B
Makefile
39 lines
870 B
Makefile
LOCAL_PATH := $(call my-dir)
|
|
|
|
common_src_files := commands.cpp utils.cpp
|
|
common_cflags := -Wall -Werror
|
|
|
|
#
|
|
# Static library used in testing and executable
|
|
#
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := libinstalld
|
|
LOCAL_MODULE_TAGS := eng tests
|
|
LOCAL_SRC_FILES := $(common_src_files)
|
|
LOCAL_CFLAGS := $(common_cflags)
|
|
LOCAL_SHARED_LIBRARIES := libbase
|
|
LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk
|
|
LOCAL_CLANG := true
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
#
|
|
# Executable
|
|
#
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := installd
|
|
LOCAL_MODULE_TAGS := optional
|
|
LOCAL_CFLAGS := $(common_cflags)
|
|
LOCAL_SRC_FILES := installd.cpp $(common_src_files)
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
libbase \
|
|
libcutils \
|
|
liblog \
|
|
libselinux \
|
|
|
|
LOCAL_STATIC_LIBRARIES := libdiskusage
|
|
LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk
|
|
LOCAL_CLANG := true
|
|
include $(BUILD_EXECUTABLE)
|