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 | |
| 5 | LIBSTORAGED_SHARED_LIBRARIES := libbinder libbase libutils libcutils liblog libsysutils libcap |
| 6 | |
| 7 | include $(CLEAR_VARS) |
| 8 | |
| 9 | LOCAL_SRC_FILES := storaged.cpp \ |
| 10 | storaged_service.cpp \ |
| 11 | storaged_utils.cpp \ |
| 12 | EventLogTags.logtags |
| 13 | LOCAL_MODULE := libstoraged |
| 14 | LOCAL_CFLAGS := -Werror |
| 15 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/include external/googletest/googletest/include |
| 16 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
| 17 | LOCAL_SHARED_LIBRARIES := $(LIBSTORAGED_SHARED_LIBRARIES) |
| 18 | |
| 19 | include $(BUILD_STATIC_LIBRARY) |
| 20 | |
| 21 | include $(CLEAR_VARS) |
| 22 | |
| 23 | LOCAL_MODULE := storaged |
| 24 | LOCAL_INIT_RC := storaged.rc |
| 25 | LOCAL_SRC_FILES := main.cpp |
| 26 | # libstoraged is an internal static library, only main.cpp and storaged_test.cpp should be using it |
| 27 | LOCAL_STATIC_LIBRARIES := libstoraged |
| 28 | LOCAL_SHARED_LIBRARIES := $(LIBSTORAGED_SHARED_LIBRARIES) |
| 29 | LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter |
| 30 | LOCAL_C_INCLUDES := external/googletest/googletest/include |
| 31 | |
| 32 | include $(BUILD_EXECUTABLE) |
| 33 | |
| 34 | include $(call first-makefiles-under,$(LOCAL_PATH)) |