Skip to content

Commit a5677eb

Browse files
committed
core: Add some static libraries
* Add static versions of libdiskconfig and libsysutils for MiniVold Change-Id: I9ea9498dcff3f094bbcbb1e05e6d10bc9b83ac74
1 parent ba3d67a commit a5677eb

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

libdiskconfig/Android.mk

+7
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ LOCAL_MODULE_TAGS := optional
1414
LOCAL_SYSTEM_SHARED_LIBRARIES := libcutils liblog libc
1515
include $(BUILD_SHARED_LIBRARY)
1616

17+
include $(CLEAR_VARS)
18+
LOCAL_SRC_FILES := $(commonSources)
19+
LOCAL_MODULE := libdiskconfig
20+
LOCAL_MODULE_TAGS := optional
21+
#LOCAL_STATIC_LIBRARIES := libcutils liblog libc
22+
include $(BUILD_STATIC_LIBRARY)
23+
1724
ifeq ($(HOST_OS),linux)
1825
include $(CLEAR_VARS)
1926
LOCAL_SRC_FILES := $(commonSources)

libsysutils/Android.mk

+11-7
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ ifneq ($(BUILD_TINY_ANDROID),true)
22

33
LOCAL_PATH:= $(call my-dir)
44

5-
include $(CLEAR_VARS)
6-
7-
LOCAL_SRC_FILES:= \
5+
common_src_files := \
86
src/SocketListener.cpp \
97
src/FrameworkListener.cpp \
108
src/NetlinkListener.cpp \
@@ -14,14 +12,20 @@ LOCAL_SRC_FILES:= \
1412
src/ServiceManager.cpp \
1513
EventLogTags.logtags
1614

17-
LOCAL_MODULE:= libsysutils
1815

16+
include $(CLEAR_VARS)
17+
LOCAL_SRC_FILES:= $(common_src_files)
18+
LOCAL_MODULE:= libsysutils
1919
LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
20-
2120
LOCAL_CFLAGS :=
22-
2321
LOCAL_SHARED_LIBRARIES := libcutils liblog
24-
2522
include $(BUILD_SHARED_LIBRARY)
2623

24+
include $(CLEAR_VARS)
25+
LOCAL_SRC_FILES:= $(common_src_files)
26+
LOCAL_MODULE:= libsysutils
27+
LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
28+
LOCAL_CFLAGS :=
29+
include $(BUILD_STATIC_LIBRARY)
30+
2731
endif

0 commit comments

Comments
 (0)