2016-06-18 05:30:48 +08:00
|
|
|
# Copyright 2016 The Android Open Source Project
|
|
|
|
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
2017-01-31 06:48:38 +08:00
|
|
|
LIBSTORAGED_SHARED_LIBRARIES := \
|
|
|
|
libbinder \
|
|
|
|
libbase \
|
|
|
|
libutils \
|
|
|
|
libcutils \
|
|
|
|
liblog \
|
|
|
|
libsysutils \
|
|
|
|
libpackagelistparser \
|
|
|
|
libbatteryservice \
|
2016-06-18 05:30:48 +08:00
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2017-01-31 06:48:38 +08:00
|
|
|
LOCAL_SRC_FILES := \
|
|
|
|
storaged.cpp \
|
|
|
|
storaged_service.cpp \
|
|
|
|
storaged_utils.cpp \
|
|
|
|
storaged_uid_monitor.cpp \
|
|
|
|
EventLogTags.logtags
|
2016-12-29 07:43:51 +08:00
|
|
|
|
2016-06-18 05:30:48 +08:00
|
|
|
LOCAL_MODULE := libstoraged
|
|
|
|
LOCAL_CFLAGS := -Werror
|
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include external/googletest/googletest/include
|
|
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
|
|
|
|
LOCAL_SHARED_LIBRARIES := $(LIBSTORAGED_SHARED_LIBRARIES)
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE := storaged
|
|
|
|
LOCAL_INIT_RC := storaged.rc
|
|
|
|
LOCAL_SRC_FILES := main.cpp
|
|
|
|
# libstoraged is an internal static library, only main.cpp and storaged_test.cpp should be using it
|
|
|
|
LOCAL_STATIC_LIBRARIES := libstoraged
|
|
|
|
LOCAL_SHARED_LIBRARIES := $(LIBSTORAGED_SHARED_LIBRARIES)
|
|
|
|
LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter
|
|
|
|
LOCAL_C_INCLUDES := external/googletest/googletest/include
|
|
|
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
|
|
|
include $(call first-makefiles-under,$(LOCAL_PATH))
|