summaryrefslogtreecommitdiffstats
path: root/libsysutils/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'libsysutils/Android.mk')
-rw-r--r--libsysutils/Android.mk21
1 files changed, 13 insertions, 8 deletions
diff --git a/libsysutils/Android.mk b/libsysutils/Android.mk
index 7bf53e3..7e44c7a 100644
--- a/libsysutils/Android.mk
+++ b/libsysutils/Android.mk
@@ -1,8 +1,6 @@
LOCAL_PATH:= $(call my-dir)
-include $(CLEAR_VARS)
-
-LOCAL_SRC_FILES:= \
+common_src_files := \
src/SocketListener.cpp \
src/FrameworkListener.cpp \
src/NetlinkListener.cpp \
@@ -12,14 +10,21 @@ LOCAL_SRC_FILES:= \
src/ServiceManager.cpp \
EventLogTags.logtags
-LOCAL_MODULE:= libsysutils
-
-LOCAL_CFLAGS := -Werror
-
-LOCAL_SHARED_LIBRARIES := \
+common_shared_libraries := \
libcutils \
liblog \
libnl
+include $(CLEAR_VARS)
+LOCAL_SRC_FILES:= $(common_src_files)
+LOCAL_MODULE:= libsysutils
+LOCAL_CFLAGS := -Werror
+LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
include $(BUILD_SHARED_LIBRARY)
+include $(CLEAR_VARS)
+LOCAL_SRC_FILES:= $(common_src_files)
+LOCAL_MODULE:= libsysutils
+LOCAL_CFLAGS := -Werror
+LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
+include $(BUILD_STATIC_LIBRARY)