1LOCAL_PATH := $(call my-dir) 2 3common_src_files := \ 4 commands.c utils.c 5 6# 7# Static library used in testing and executable 8# 9 10include $(CLEAR_VARS) 11 12LOCAL_SRC_FILES := \ 13 $(common_src_files) 14 15LOCAL_MODULE := libinstalld 16 17LOCAL_MODULE_TAGS := eng tests 18 19include $(BUILD_STATIC_LIBRARY) 20 21# 22# Executable 23# 24 25include $(CLEAR_VARS) 26 27LOCAL_SRC_FILES := \ 28 installd.c \ 29 $(common_src_files) 30 31LOCAL_SHARED_LIBRARIES := \ 32 libcutils 33 34LOCAL_STATIC_LIBRARIES := \ 35 libdiskusage 36 37ifeq ($(HAVE_SELINUX),true) 38LOCAL_C_INCLUDES += external/libselinux/include 39LOCAL_SHARED_LIBRARIES += libselinux 40LOCAL_CFLAGS := -DHAVE_SELINUX 41endif # HAVE_SELINUX 42 43LOCAL_MODULE := installd 44 45LOCAL_MODULE_TAGS := optional 46 47include $(BUILD_EXECUTABLE) 48