blob: a1abe0fd138c5c969233257eb29368dd268d9fc1 [file] [log] [blame]
ynwang62cb3722016-06-17 14:30:48 -07001# Copyright 2016 The Android Open Source Project
2
3LOCAL_PATH := $(call my-dir)
4
Jin Qian5b962c62017-01-30 14:48:38 -08005LIBSTORAGED_SHARED_LIBRARIES := \
6 libbinder \
7 libbase \
8 libutils \
9 libcutils \
10 liblog \
11 libsysutils \
Jin Qian5b962c62017-01-30 14:48:38 -080012 libbatteryservice \
ynwang62cb3722016-06-17 14:30:48 -070013
14include $(CLEAR_VARS)
15
Jin Qian5b962c62017-01-30 14:48:38 -080016LOCAL_SRC_FILES := \
17 storaged.cpp \
Jin Qian4fc338e2017-03-15 19:03:06 -070018 storaged_info.cpp \
Jin Qian5b962c62017-01-30 14:48:38 -080019 storaged_service.cpp \
20 storaged_utils.cpp \
21 storaged_uid_monitor.cpp \
22 EventLogTags.logtags
Jin Qianbcd6e3b2016-12-28 15:43:51 -080023
ynwang62cb3722016-06-17 14:30:48 -070024LOCAL_MODULE := libstoraged
25LOCAL_CFLAGS := -Werror
26LOCAL_C_INCLUDES := $(LOCAL_PATH)/include external/googletest/googletest/include
27LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
28LOCAL_SHARED_LIBRARIES := $(LIBSTORAGED_SHARED_LIBRARIES)
ynwang62cb3722016-06-17 14:30:48 -070029include $(BUILD_STATIC_LIBRARY)
30
31include $(CLEAR_VARS)
32
33LOCAL_MODULE := storaged
34LOCAL_INIT_RC := storaged.rc
35LOCAL_SRC_FILES := main.cpp
36# libstoraged is an internal static library, only main.cpp and storaged_test.cpp should be using it
37LOCAL_STATIC_LIBRARIES := libstoraged
38LOCAL_SHARED_LIBRARIES := $(LIBSTORAGED_SHARED_LIBRARIES)
39LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter
40LOCAL_C_INCLUDES := external/googletest/googletest/include
41
42include $(BUILD_EXECUTABLE)
43
44include $(call first-makefiles-under,$(LOCAL_PATH))