码迷,mamicode.com
首页 > 其他好文 > 详细

JNI makefile

时间:2016-04-05 16:03:42      阅读:202      评论:0      收藏:0      [点我收藏+]

标签:

[root@localhost 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)

 

#########################################

[root@localhost 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

标签:

原文地址:http://www.cnblogs.com/fyqds/p/5355042.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!