1# Copyright 2016 The Android Open Source Project 2 3LOCAL_PATH := $(call my-dir) 4 5LIBSTORAGED_SHARED_LIBRARIES := \ 6 libbinder \ 7 libbase \ 8 libutils \ 9 libcutils \ 10 liblog \ 11 libsysutils \ 12 libpackagelistparser \ 13 libbatteryservice \ 14 15include $(CLEAR_VARS) 16 17LOCAL_SRC_FILES := \ 18 storaged.cpp \ 19 storaged_info.cpp \ 20 storaged_service.cpp \ 21 storaged_utils.cpp \ 22 storaged_uid_monitor.cpp \ 23 EventLogTags.logtags 24 25LOCAL_MODULE := libstoraged 26LOCAL_CFLAGS := -Werror 27LOCAL_C_INCLUDES := $(LOCAL_PATH)/include external/googletest/googletest/include 28LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 29LOCAL_SHARED_LIBRARIES := $(LIBSTORAGED_SHARED_LIBRARIES) 30include $(BUILD_STATIC_LIBRARY) 31 32include $(CLEAR_VARS) 33 34LOCAL_MODULE := storaged 35LOCAL_INIT_RC := storaged.rc 36LOCAL_SRC_FILES := main.cpp 37# libstoraged is an internal static library, only main.cpp and storaged_test.cpp should be using it 38LOCAL_STATIC_LIBRARIES := libstoraged 39LOCAL_SHARED_LIBRARIES := $(LIBSTORAGED_SHARED_LIBRARIES) 40LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter 41LOCAL_C_INCLUDES := external/googletest/googletest/include 42 43include $(BUILD_EXECUTABLE) 44 45include $(call first-makefiles-under,$(LOCAL_PATH)) 46