JNI makefile
Posted 莱纳·龙特
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JNI makefile相关的知识,希望对你有一定的参考价值。
[[email protected] jni]# vi android.mk
LOCAL_CFLAGS := -pthread
LOCAL_LDLIBS := -lm -llog
LOCAL_C_INCLUDES := $(LOCAL_PATH)/ClientSDK \
$(LOCAL_PATH)/base \
$(LOCAL_PATH)/Network \
$(LOCAL_PATH)/platform \
$(LOCAL_PATH)/Common \
$(LOCAL_PATH)/Common/mem \
$(LOCAL_PATH)/Common/thread
LOCAL_MODULE := ClientNDK
LOCAL_SRC_FILES := ./ClientSDK/java/ClientJava.cpp \
./ClientSDK/java/MsgHandler.cpp \
./ClientSDK/java/ClientJni.cpp \
./Common/mem/memConfig.cpp \
./Common/mem/HeapExpand.cpp \
./Network/Logger.cpp \
./Network/CircularBuffer.cpp \
./Network/ClientSession.cpp \
./stdafx.cpp \
./Common/thread/MultiThread.cpp \
./Network/ReconnectMgr.cpp \
./base/preHeader.cpp \
./Common/mem/MemHooks.cpp \
./Network/Thread.cpp \
./Common/mem/HeapFrame.cpp \
./Network/ClientHandler.cpp \
./Network/ClientSocket.cpp \
./base/NetPacket.cpp \
./Network/GlobalSession.cpp \
./base/Mutex.cpp \
./Network/System.cpp \
./base/OpCode.cpp \
./main.cpp \
./Network/SocketOps.cpp \
./base/GException.cpp \
./Network/GameSession.cpp \
./Common/mem/MemMgr.cpp
include $(BUILD_SHARED_LIBRARY)
#########################################
[[email protected] jni]# vi Application.mk
APP_PLATFORM := android-14
APP_CPPFLAGS += -fexceptions
APP_STL := gnustl_static
LOCAL_CPPFLAGS += -frtti
APP_CFLAGS += -Wno-error=format-security
以上是关于JNI makefile的主要内容,如果未能解决你的问题,请参考以下文章
MakefileMakefile 中 LINUXINCLUDE 的作用
MakefileMakefile 中 LINUXINCLUDE 的作用