1 LOCAL_PATH := $(call my-dir) 2 3 common_src_files := commands.c utils.c 4 common_cflags := -Wall -Werror 5 6 # 7 # Static library used in testing and executable 8 # 9 10 include $(CLEAR_VARS) 11 LOCAL_MODULE := libinstalld 12 LOCAL_MODULE_TAGS := eng tests 13 LOCAL_SRC_FILES := $(common_src_files) 14 LOCAL_CFLAGS := $(common_cflags) 15 LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk 16 include $(BUILD_STATIC_LIBRARY) 17 18 # 19 # Executable 20 # 21 22 include $(CLEAR_VARS) 23 LOCAL_MODULE := installd 24 LOCAL_MODULE_TAGS := optional 25 LOCAL_CFLAGS := $(common_cflags) 26 LOCAL_SRC_FILES := installd.c $(common_src_files) 27 LOCAL_SHARED_LIBRARIES := libcutils liblog libselinux 28 LOCAL_STATIC_LIBRARIES := libdiskusage 29 LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk 30 include $(BUILD_EXECUTABLE) 31