ynwang | 62cb372 | 2016-06-17 14:30:48 -0700 | [diff] [blame] | 1 | # Copyright 2016 The Android Open Source Project |
| 2 | |
| 3 | LOCAL_PATH := $(call my-dir) |
| 4 | |
Jin Qian | bcd6e3b | 2016-12-28 15:43:51 -0800 | [diff] [blame^] | 5 | LIBSTORAGED_SHARED_LIBRARIES := libbinder libbase libutils libcutils liblog libsysutils libcap libpackagelistparser |
ynwang | 62cb372 | 2016-06-17 14:30:48 -0700 | [diff] [blame] | 6 | |
| 7 | include $(CLEAR_VARS) |
| 8 | |
| 9 | LOCAL_SRC_FILES := storaged.cpp \ |
| 10 | storaged_service.cpp \ |
| 11 | storaged_utils.cpp \ |
Jin Qian | bcd6e3b | 2016-12-28 15:43:51 -0800 | [diff] [blame^] | 12 | storaged_uid_monitor.cpp \ |
ynwang | 62cb372 | 2016-06-17 14:30:48 -0700 | [diff] [blame] | 13 | EventLogTags.logtags |
Jin Qian | bcd6e3b | 2016-12-28 15:43:51 -0800 | [diff] [blame^] | 14 | |
ynwang | 62cb372 | 2016-06-17 14:30:48 -0700 | [diff] [blame] | 15 | LOCAL_MODULE := libstoraged |
| 16 | LOCAL_CFLAGS := -Werror |
| 17 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include external/googletest/googletest/include |
| 18 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
| 19 | LOCAL_SHARED_LIBRARIES := $(LIBSTORAGED_SHARED_LIBRARIES) |
| 20 | |
| 21 | include $(BUILD_STATIC_LIBRARY) |
| 22 | |
| 23 | include $(CLEAR_VARS) |
| 24 | |
| 25 | LOCAL_MODULE := storaged |
| 26 | LOCAL_INIT_RC := storaged.rc |
| 27 | LOCAL_SRC_FILES := main.cpp |
| 28 | # libstoraged is an internal static library, only main.cpp and storaged_test.cpp should be using it |
| 29 | LOCAL_STATIC_LIBRARIES := libstoraged |
| 30 | LOCAL_SHARED_LIBRARIES := $(LIBSTORAGED_SHARED_LIBRARIES) |
| 31 | LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter |
| 32 | LOCAL_C_INCLUDES := external/googletest/googletest/include |
| 33 | |
| 34 | include $(BUILD_EXECUTABLE) |
| 35 | |
| 36 | include $(call first-makefiles-under,$(LOCAL_PATH)) |