blob: 5abfb7ad57fe5bd253aba58ec17d7d168348e16e [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 \
12 libcap \
13 libpackagelistparser \
14 libbatteryservice \
ynwang62cb3722016-06-17 14:30:48 -070015
16include $(CLEAR_VARS)
17
Jin Qian5b962c62017-01-30 14:48:38 -080018LOCAL_SRC_FILES := \
19 storaged.cpp \
20 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))