2013-07-29 07:13:03 -04:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := mcserver
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-12-23 10:56:21 -05:00
|
|
|
LOCAL_SRC_FILES := $(shell find ../CryptoPP ../lua ../jsoncpp ../zlib ../src ../tolua++ ../iniFile ../expat ../md5 ../sqlite ../luaexpat '(' -name '*.cpp' -o -name '*.c' ')')
|
2013-07-29 07:13:03 -04:00
|
|
|
LOCAL_SRC_FILES := $(filter-out %SquirrelFunctions.cpp %SquirrelBindings.cpp %cPlugin_Squirrel.cpp %cSquirrelCommandBinder.cpp %minigzip.c %lua.c %tolua.c %toluabind.c %LeakFinder.cpp %StackWalker.cpp %example.c,$(LOCAL_SRC_FILES))
|
|
|
|
LOCAL_SRC_FILES := $(patsubst %.cpp,../%.cpp,$(LOCAL_SRC_FILES))
|
|
|
|
LOCAL_SRC_FILES := $(patsubst %.c,../%.c,$(LOCAL_SRC_FILES))
|
|
|
|
LOCAL_SRC_FILES += app-android.cpp ToJava.cpp
|
|
|
|
|
|
|
|
LOCAL_CFLAGS := -DANDROID_NDK \
|
|
|
|
-O3 \
|
|
|
|
-funroll-loops \
|
|
|
|
-mfloat-abi=softfp -mfpu=neon \
|
|
|
|
-fexceptions \
|
|
|
|
|
|
|
|
|
|
|
|
LOCAL_STATIC_LIBRARIES := cpufeatures
|
|
|
|
|
2013-12-23 10:56:21 -05:00
|
|
|
LOCAL_C_INCLUDES := ../src \
|
|
|
|
../src/packets \
|
|
|
|
../src/items \
|
|
|
|
../src/blocks \
|
|
|
|
../tolua++/src/lib \
|
|
|
|
../lua/src \
|
2013-07-29 07:13:03 -04:00
|
|
|
../zlib-1.2.7 \
|
|
|
|
../iniFile \
|
2013-12-23 10:56:21 -05:00
|
|
|
../tolua++/include \
|
|
|
|
../jsoncpp/include \
|
|
|
|
../jsoncpp/src/lib_json \
|
2013-07-29 07:13:03 -04:00
|
|
|
../expat/ \
|
2013-12-23 10:56:21 -05:00
|
|
|
../md5/ \
|
|
|
|
../sqlite/ \
|
|
|
|
../luaexpat/ \
|
2013-07-29 07:13:03 -04:00
|
|
|
.. \
|
|
|
|
|
|
|
|
|
|
|
|
LOCAL_LDLIBS := -ldl -llog
|
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
$(call import-module,cpufeatures)
|