对于有源码编译32 , 64 bit
LOCAL_PATH := $(call my-dir)
sources := \
tvini.c \
mmap.c \
spi.c
cincludes := \
$(TARGET_OUT_HEADERS) \
$(TARGET_UTOPIA_LIBS_DIR)/include \
external/iniparser
# libmutils.so
#==============================================================================
include $(CLEAR_VARS)
LOCAL_MODULE := libmutils
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(sources)
LOCAL_C_INCLUDES := $(cincludes)
LOCAL_CFLAGS := -DMSOS_TYPE_LINUX-DENABLE_LOGGER
LOCAL_SHARED_LIBRARIES := liblog libutopialibiniparser libcutils
include $(BUILD_SHARED_LIBRARY)
对于有源码,只编译32 lib的so
LOCAL_PATH := $(call my-dir)
sources := \
tvini.c \
mmap.c \
spi.c
cincludes := \
$(TARGET_OUT_HEADERS) \
$(TARGET_UTOPIA_LIBS_DIR)/include \
external/iniparser
# libmutils.so
#==============================================================================
include $(CLEAR_VARS)
LOCAL_MODULE := libmutils
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(sources)
LOCAL_C_INCLUDES := $(cincludes)
LOCAL_CFLAGS := -DMSOS_TYPE_LINUX-DENABLE_LOGGER
LOCAL_SH