blob: 5e6a3c0a162b59af68d73e0c51ac8986b505ea5d [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 libpackagelistparser \
13 libbatteryservice \
ynwang62cb3722016-06-17 14:30:48 -070014
15include $(CLEAR_VARS)
16
Jin Qian5b962c62017-01-30 14:48:38 -080017LOCAL_SRC_FILES := \
18 storaged.cpp \
Jin Qian4fc338e2017-03-15 19:03:06 -070019 storaged_info.cpp \
Jin Qian5b962c62017-01-30 14:48:38 -080020 storaged_service.cpp \
21 storaged_utils.cpp \
22 storaged_uid_monitor.cpp \
23 EventLogTags.logtags
Jin Qianbcd6e3b2016-12-28 15:43:51 -080024
ynwang62cb3722016-06-17 14:30:48 -070025LOCAL_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)
ynwang62cb3722016-06-17 14:30:48 -070030include $(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))