311 lines
12 KiB
Makefile
311 lines
12 KiB
Makefile
LOCAL_PATH := $(call my-dir)/..
|
|
|
|
#LOCAL_ADDRESS_SANITIZER:=true
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := Irrlicht
|
|
LOCAL_SRC_FILES := deps/irrlicht/source/Irrlicht/Android/obj/local/$(APP_ABI)/libIrrlicht.a
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := LevelDB
|
|
LOCAL_SRC_FILES := deps/leveldb/out-static/libleveldb.a
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := Curl
|
|
LOCAL_SRC_FILES := deps/curl/lib/.libs/libcurl.a
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := Freetype
|
|
LOCAL_SRC_FILES := deps/freetype/objs/.libs/libfreetype.a
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := OpenAL
|
|
LOCAL_SRC_FILES := deps/openal-soft/libopenal.a
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := Vorbis
|
|
LOCAL_SRC_FILES := deps/libvorbis-android/obj/local/$(APP_ABI)/libvorbis.a
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := LuaJIT
|
|
LOCAL_SRC_FILES := deps/luajit/src/libluajit.a
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := BlockColor
|
|
|
|
LOCAL_CFLAGS += \
|
|
-DJSONCPP_NO_LOCALE_SUPPORT \
|
|
-DHAVE_TOUCHSCREENGUI \
|
|
-DUSE_CURL=1 \
|
|
-DUSE_SOUND=1 \
|
|
-DUSE_FREETYPE=1 \
|
|
-DUSE_GETTEXT=1 \
|
|
-DUSE_LEVELDB=1 \
|
|
$(GPROF_DEF) \
|
|
-pipe
|
|
|
|
ifdef GPROF
|
|
GPROF_DEF := -DGPROF
|
|
PROFILER_LIBS := android-ndk-profiler
|
|
LOCAL_CFLAGS += -pg
|
|
endif
|
|
|
|
LOCAL_C_INCLUDES := \
|
|
jni/src \
|
|
jni/src/script \
|
|
jni/lib/intl \
|
|
jni/lib/jsoncpp \
|
|
jni/src/cguittfont \
|
|
jni/lib/gmp \
|
|
deps/irrlicht/include \
|
|
deps/freetype/include \
|
|
deps/curl/include \
|
|
deps/openal-soft/include \
|
|
deps/libvorbis-android/jni/include \
|
|
deps/leveldb/include \
|
|
deps/luajit/src \
|
|
deps/libiconv/include \
|
|
deps/libiconv/libcharset/include
|
|
|
|
LOCAL_SRC_FILES := \
|
|
jni/src/ban.cpp \
|
|
jni/src/camera.cpp \
|
|
jni/src/cavegen.cpp \
|
|
jni/src/chat.cpp \
|
|
jni/src/client.cpp \
|
|
jni/src/clientenvironment.cpp \
|
|
jni/src/clientiface.cpp \
|
|
jni/src/clientmap.cpp \
|
|
jni/src/clientmedia.cpp \
|
|
jni/src/clientobject.cpp \
|
|
jni/src/clouds.cpp \
|
|
jni/src/collision.cpp \
|
|
jni/src/content_abm.cpp \
|
|
jni/src/content_cao.cpp \
|
|
jni/src/content_mapblock.cpp \
|
|
jni/src/content_mapnode.cpp \
|
|
jni/src/content_nodemeta.cpp \
|
|
jni/src/content_sao.cpp \
|
|
jni/src/convert_json.cpp \
|
|
jni/src/craftdef.cpp \
|
|
jni/src/database-dummy.cpp \
|
|
jni/src/database-files.cpp \
|
|
jni/src/database.cpp \
|
|
jni/src/debug.cpp \
|
|
jni/src/defaultsettings.cpp \
|
|
jni/src/drawscene.cpp \
|
|
jni/src/dungeongen.cpp \
|
|
jni/src/emerge.cpp \
|
|
jni/src/environment.cpp \
|
|
jni/src/face_position_cache.cpp \
|
|
jni/src/filecache.cpp \
|
|
jni/src/filesys.cpp \
|
|
jni/src/fontengine.cpp \
|
|
jni/src/game.cpp \
|
|
jni/src/genericobject.cpp \
|
|
jni/src/gettext.cpp \
|
|
jni/src/guiChatConsole.cpp \
|
|
jni/src/guiEngine.cpp \
|
|
jni/src/guiFileSelectMenu.cpp \
|
|
jni/src/guiFormSpecMenu.cpp \
|
|
jni/src/guiKeyChangeMenu.cpp \
|
|
jni/src/guiPasswordChange.cpp \
|
|
jni/src/guiTable.cpp \
|
|
jni/src/guiscalingfilter.cpp \
|
|
jni/src/guiVolumeChange.cpp \
|
|
jni/src/httpfetch.cpp \
|
|
jni/src/hud.cpp \
|
|
jni/src/imagefilters.cpp \
|
|
jni/src/intlGUIEditBox.cpp \
|
|
jni/src/inventory.cpp \
|
|
jni/src/inventorymanager.cpp \
|
|
jni/src/itemdef.cpp \
|
|
jni/src/itemstackmetadata.cpp \
|
|
jni/src/keycode.cpp \
|
|
jni/src/light.cpp \
|
|
jni/src/localplayer.cpp \
|
|
jni/src/log.cpp \
|
|
jni/src/main.cpp \
|
|
jni/src/map.cpp \
|
|
jni/src/map_settings_manager.cpp \
|
|
jni/src/mapblock.cpp \
|
|
jni/src/mapblock_mesh.cpp \
|
|
jni/src/mapgen.cpp \
|
|
jni/src/mapgen_flat.cpp \
|
|
jni/src/mapgen_fractal.cpp \
|
|
jni/src/mapgen_singlenode.cpp \
|
|
jni/src/mapgen_v5.cpp \
|
|
jni/src/mapgen_v6.cpp \
|
|
jni/src/mapgen_v7.cpp \
|
|
jni/src/mapgen_v7p.cpp \
|
|
jni/src/mapgen_valleys.cpp \
|
|
jni/src/mapnode.cpp \
|
|
jni/src/mapsector.cpp \
|
|
jni/src/mesh.cpp \
|
|
jni/src/mesh_generator_thread.cpp \
|
|
jni/src/metadata.cpp \
|
|
jni/src/mg_biome.cpp \
|
|
jni/src/mg_decoration.cpp \
|
|
jni/src/mg_ore.cpp \
|
|
jni/src/mg_schematic.cpp \
|
|
jni/src/minimap.cpp \
|
|
jni/src/mods.cpp \
|
|
jni/src/nameidmapping.cpp \
|
|
jni/src/nodedef.cpp \
|
|
jni/src/nodemetadata.cpp \
|
|
jni/src/nodetimer.cpp \
|
|
jni/src/noise.cpp \
|
|
jni/src/objdef.cpp \
|
|
jni/src/object_properties.cpp \
|
|
jni/src/particles.cpp \
|
|
jni/src/pathfinder.cpp \
|
|
jni/src/player.cpp \
|
|
jni/src/porting_android.cpp \
|
|
jni/src/porting.cpp \
|
|
jni/src/profiler.cpp \
|
|
jni/src/quicktune.cpp \
|
|
jni/src/raycast.cpp \
|
|
jni/src/reflowscan.cpp \
|
|
jni/src/remoteplayer.cpp \
|
|
jni/src/rollback_interface.cpp \
|
|
jni/src/serialization.cpp \
|
|
jni/src/server.cpp \
|
|
jni/src/serverenvironment.cpp \
|
|
jni/src/serverlist.cpp \
|
|
jni/src/serverobject.cpp \
|
|
jni/src/shader.cpp \
|
|
jni/src/sky.cpp \
|
|
jni/src/socket.cpp \
|
|
jni/src/sound.cpp \
|
|
jni/src/sound_openal.cpp \
|
|
jni/src/staticobject.cpp \
|
|
jni/src/subgame.cpp \
|
|
jni/src/tileanimation.cpp \
|
|
jni/src/tool.cpp \
|
|
jni/src/treegen.cpp \
|
|
jni/src/version.cpp \
|
|
jni/src/voxel.cpp \
|
|
jni/src/voxelalgorithms.cpp \
|
|
jni/src/util/areastore.cpp \
|
|
jni/src/util/auth.cpp \
|
|
jni/src/util/base64.cpp \
|
|
jni/src/util/directiontables.cpp \
|
|
jni/src/util/enriched_string.cpp \
|
|
jni/src/util/numeric.cpp \
|
|
jni/src/util/pointedthing.cpp \
|
|
jni/src/util/serialize.cpp \
|
|
jni/src/util/sha1.cpp \
|
|
jni/src/util/string.cpp \
|
|
jni/src/util/srp.cpp \
|
|
jni/src/util/timetaker.cpp \
|
|
jni/src/touchscreengui.cpp \
|
|
jni/src/database-leveldb.cpp \
|
|
jni/src/settings.cpp \
|
|
jni/src/wieldmesh.cpp \
|
|
jni/src/client/clientlauncher.cpp \
|
|
jni/src/client/inputhandler.cpp \
|
|
jni/src/client/tile.cpp \
|
|
jni/src/util/sha256.c \
|
|
jni/src/client/joystick_controller.cpp \
|
|
jni/src/irrlicht_changes/static_text.cpp
|
|
|
|
# Network
|
|
LOCAL_SRC_FILES += \
|
|
jni/src/network/connection.cpp \
|
|
jni/src/network/networkpacket.cpp \
|
|
jni/src/network/clientopcodes.cpp \
|
|
jni/src/network/clientpackethandler.cpp \
|
|
jni/src/network/serveropcodes.cpp \
|
|
jni/src/network/serverpackethandler.cpp
|
|
|
|
# lua api
|
|
LOCAL_SRC_FILES += \
|
|
jni/src/script/common/c_content.cpp \
|
|
jni/src/script/common/c_converter.cpp \
|
|
jni/src/script/common/c_internal.cpp \
|
|
jni/src/script/common/c_types.cpp \
|
|
jni/src/script/cpp_api/s_async.cpp \
|
|
jni/src/script/cpp_api/s_base.cpp \
|
|
jni/src/script/cpp_api/s_client.cpp \
|
|
jni/src/script/cpp_api/s_entity.cpp \
|
|
jni/src/script/cpp_api/s_env.cpp \
|
|
jni/src/script/cpp_api/s_inventory.cpp \
|
|
jni/src/script/cpp_api/s_item.cpp \
|
|
jni/src/script/cpp_api/s_mainmenu.cpp \
|
|
jni/src/script/cpp_api/s_node.cpp \
|
|
jni/src/script/cpp_api/s_nodemeta.cpp \
|
|
jni/src/script/cpp_api/s_player.cpp \
|
|
jni/src/script/cpp_api/s_security.cpp \
|
|
jni/src/script/cpp_api/s_server.cpp \
|
|
jni/src/script/lua_api/l_areastore.cpp \
|
|
jni/src/script/lua_api/l_base.cpp \
|
|
jni/src/script/lua_api/l_camera.cpp \
|
|
jni/src/script/lua_api/l_client.cpp \
|
|
jni/src/script/lua_api/l_craft.cpp \
|
|
jni/src/script/lua_api/l_env.cpp \
|
|
jni/src/script/lua_api/l_inventory.cpp \
|
|
jni/src/script/lua_api/l_item.cpp \
|
|
jni/src/script/lua_api/l_itemstackmeta.cpp\
|
|
jni/src/script/lua_api/l_localplayer.cpp \
|
|
jni/src/script/lua_api/l_mainmenu.cpp \
|
|
jni/src/script/lua_api/l_mapgen.cpp \
|
|
jni/src/script/lua_api/l_metadata.cpp \
|
|
jni/src/script/lua_api/l_minimap.cpp \
|
|
jni/src/script/lua_api/l_nodemeta.cpp \
|
|
jni/src/script/lua_api/l_nodetimer.cpp \
|
|
jni/src/script/lua_api/l_noise.cpp \
|
|
jni/src/script/lua_api/l_object.cpp \
|
|
jni/src/script/lua_api/l_particles.cpp \
|
|
jni/src/script/lua_api/l_rollback.cpp \
|
|
jni/src/script/lua_api/l_server.cpp \
|
|
jni/src/script/lua_api/l_settings.cpp \
|
|
jni/src/script/lua_api/l_sound.cpp \
|
|
jni/src/script/lua_api/l_http.cpp \
|
|
jni/src/script/lua_api/l_storage.cpp \
|
|
jni/src/script/lua_api/l_util.cpp \
|
|
jni/src/script/lua_api/l_vmanip.cpp \
|
|
jni/src/script/scripting_client.cpp \
|
|
jni/src/script/scripting_server.cpp \
|
|
jni/src/script/scripting_mainmenu.cpp
|
|
|
|
# Freetype2
|
|
LOCAL_SRC_FILES += jni/src/cguittfont/xCGUITTFont.cpp
|
|
|
|
# GMP
|
|
LOCAL_SRC_FILES += jni/lib/gmp/mini-gmp.c
|
|
|
|
# libIntl
|
|
LOCAL_SRC_FILES += jni/lib/intl/libintl.cpp
|
|
|
|
# Threading
|
|
LOCAL_SRC_FILES += \
|
|
jni/src/threading/event.cpp \
|
|
jni/src/threading/mutex.cpp \
|
|
jni/src/threading/semaphore.cpp \
|
|
jni/src/threading/thread.cpp
|
|
|
|
# JSONCPP
|
|
LOCAL_SRC_FILES += jni/lib/jsoncpp/jsoncpp.cpp
|
|
|
|
LOCAL_SRC_FILES += \
|
|
deps/libiconv/lib/iconv.c \
|
|
deps/libiconv/libcharset/lib/localcharset.c
|
|
|
|
LOCAL_STATIC_LIBRARIES := Irrlicht LevelDB Freetype Curl LuaJIT OpenAL Vorbis android_native_app_glue $(PROFILER_LIBS)
|
|
|
|
LOCAL_LDLIBS := -lEGL -lGLESv1_CM -lGLESv2 -landroid -lOpenSLES
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
ifdef GPROF
|
|
$(call import-module,android-ndk-profiler)
|
|
endif
|
|
$(call import-module,android/native_app_glue)
|