2012-10-24 17:45:23 +00:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
2015-04-07 19:44:51 +00:00
|
|
|
common_src_files := commands.cpp utils.cpp
|
2014-06-27 23:03:06 +00:00
|
|
|
common_cflags := -Wall -Werror
|
2012-10-24 17:45:23 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Static library used in testing and executable
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := libinstalld
|
|
|
|
LOCAL_MODULE_TAGS := eng tests
|
2014-06-27 23:03:06 +00:00
|
|
|
LOCAL_SRC_FILES := $(common_src_files)
|
|
|
|
LOCAL_CFLAGS := $(common_cflags)
|
2015-04-09 03:56:42 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
libbase \
|
|
|
|
liblogwrap \
|
|
|
|
|
2014-06-27 23:03:06 +00:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk
|
2015-04-09 18:34:03 +00:00
|
|
|
LOCAL_CLANG := true
|
2012-10-24 17:45:23 +00:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Executable
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := installd
|
|
|
|
LOCAL_MODULE_TAGS := optional
|
2014-06-27 23:03:06 +00:00
|
|
|
LOCAL_CFLAGS := $(common_cflags)
|
2015-04-07 19:44:51 +00:00
|
|
|
LOCAL_SRC_FILES := installd.cpp $(common_src_files)
|
2015-04-08 01:14:05 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
libbase \
|
|
|
|
libcutils \
|
|
|
|
liblog \
|
2015-04-09 03:56:42 +00:00
|
|
|
liblogwrap \
|
2015-04-08 01:14:05 +00:00
|
|
|
libselinux \
|
|
|
|
|
2014-06-27 23:03:06 +00:00
|
|
|
LOCAL_STATIC_LIBRARIES := libdiskusage
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk
|
2015-04-09 18:34:03 +00:00
|
|
|
LOCAL_CLANG := true
|
2012-10-24 17:45:23 +00:00
|
|
|
include $(BUILD_EXECUTABLE)
|