1 BUILD_LIBSYSUTILS := false 2 ifneq ($(TARGET_SIMULATOR),true) 3 BUILD_LIBSYSUTILS := true 4 endif 5 6 ifeq ($(BUILD_LIBSYSUTILS),true) 7 8 LOCAL_PATH:= $(call my-dir) 9 10 include $(CLEAR_VARS) 11 12 LOCAL_SRC_FILES:= \ 13 src/SocketListener.cpp \ 14 src/FrameworkListener.cpp \ 15 src/NetlinkListener.cpp \ 16 src/NetlinkEvent.cpp \ 17 src/FrameworkCommand.cpp \ 18 src/SocketClient.cpp \ 19 src/ServiceManager.cpp \ 20 21 LOCAL_MODULE:= libsysutils 22 23 LOCAL_C_INCLUDES := $(KERNEL_HEADERS) 24 25 LOCAL_CFLAGS := 26 27 LOCAL_SHARED_LIBRARIES := libcutils 28 29 ifeq ($(TARGET_SIMULATOR),true) 30 LOCAL_LDLIBS += -lpthread 31 endif 32 33 include $(BUILD_SHARED_LIBRARY) 34 35 endif 36