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 | 5b962c6 | 2017-01-30 14:48:38 -0800 | [diff] [blame] | 5 | LIBSTORAGED_SHARED_LIBRARIES := \ |
| 6 | libbinder \ |
| 7 | libbase \ |
| 8 | libutils \ |
| 9 | libcutils \ |
| 10 | liblog \ |
| 11 | libsysutils \ |
Jin Qian | 5b962c6 | 2017-01-30 14:48:38 -0800 | [diff] [blame] | 12 | libpackagelistparser \ |
| 13 | libbatteryservice \ |
ynwang | 62cb372 | 2016-06-17 14:30:48 -0700 | [diff] [blame] | 14 | |
| 15 | include $(CLEAR_VARS) |
| 16 | |
Jin Qian | 5b962c6 | 2017-01-30 14:48:38 -0800 | [diff] [blame] | 17 | LOCAL_SRC_FILES := \ |
| 18 | storaged.cpp \ |
Jin Qian | 4fc338e | 2017-03-15 19:03:06 -0700 | [diff] [blame] | 19 | storaged_info.cpp \ |
Jin Qian | 5b962c6 | 2017-01-30 14:48:38 -0800 | [diff] [blame] | 20 | storaged_service.cpp \ |
| 21 | storaged_utils.cpp \ |
| 22 | storaged_uid_monitor.cpp \ |
| 23 | EventLogTags.logtags |
Jin Qian | bcd6e3b | 2016-12-28 15:43:51 -0800 | [diff] [blame] | 24 | |
ynwang | 62cb372 | 2016-06-17 14:30:48 -0700 | [diff] [blame] | 25 | LOCAL_MODULE := libstoraged |
| 26 | LOCAL_CFLAGS := -Werror |
| 27 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include external/googletest/googletest/include |
| 28 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
| 29 | LOCAL_SHARED_LIBRARIES := $(LIBSTORAGED_SHARED_LIBRARIES) |
ynwang | 62cb372 | 2016-06-17 14:30:48 -0700 | [diff] [blame] | 30 | include $(BUILD_STATIC_LIBRARY) |
| 31 | |
| 32 | include $(CLEAR_VARS) |
| 33 | |
| 34 | LOCAL_MODULE := storaged |
| 35 | LOCAL_INIT_RC := storaged.rc |
| 36 | LOCAL_SRC_FILES := main.cpp |
| 37 | # libstoraged is an internal static library, only main.cpp and storaged_test.cpp should be using it |
| 38 | LOCAL_STATIC_LIBRARIES := libstoraged |
| 39 | LOCAL_SHARED_LIBRARIES := $(LIBSTORAGED_SHARED_LIBRARIES) |
| 40 | LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter |
| 41 | LOCAL_C_INCLUDES := external/googletest/googletest/include |
| 42 | |
| 43 | include $(BUILD_EXECUTABLE) |
| 44 | |
| 45 | include $(call first-makefiles-under,$(LOCAL_PATH)) |