Android. mk is as follows:
LOCAL_PATH: = $ (call my-dir)
Include $ (CLEAR_VARS)
# Dependent dynamic library list
XLOCAL_SHARED_LIBRARIES: = \
Liblog
# Header file list
XLOCAL_C_INCLUDES: = \
/Home/dell/yangping/json_linux/jsoncpp-src-0.5.0/include \
$ (LOCAL_PATH)/Comm \
$ (LOCAL_PATH)/XJniInterface
# Source file list
XLOCAL_CPPS: = \
$ (Wildcard $ (LOCAL_PATH)/Comm/*. cpp )\
$ (Wildcard $ (LOCAL_PATH)/XJniInterface/*. cpp)
XLOCAL_SRC_FILES :=$ (XLOCAL_CPPS: $ (LOCAL_PATH)/% = %)
# LOCAL_CFLAGS: =-Werror
XLOCAL_CFLAGS: =-Wl,-Map = test. map \
-G (these two parameters are used for debugging. if the version is released, it is better to remove them. You can add other parameters by yourself)
LOCAL_SHARED_LIBRARIES + = $ (XLOCAL_SHARED_LIBRARIES)
LOCAL_C_INCLUDES + = $ (XLOCAL_C_INCLUDES)
LOCAL_SRC_FILES: = $ (XLOCAL_SRC_FILES)
LOCAL_CFLAGS: = $ (XLOCAL_CFLAGS)
LOCAL_MODULE: = libsigParse
LOCAL_LDLIBS: =-llog
Include $ (BUILD_SHARED_LIBRARY)
Application. mk is as follows:
APP_ABI: = armeabi
APP_OPTIM: = debug (for debugging)
APP_STL: = stlport_static