2014-04-21 14:10:59 +02:00
|
|
|
LOCAL_PATH := $(call my-dir)/..
|
|
|
|
|
|
|
|
#LOCAL_ADDRESS_SANITIZER:=true
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := Irrlicht
|
|
|
|
LOCAL_SRC_FILES := deps/irrlicht/lib/Android/libIrrlicht.a
|
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
|
2014-07-07 23:10:26 +02:00
|
|
|
ifeq ($(HAVE_LEVELDB), 1)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := LevelDB
|
|
|
|
LOCAL_SRC_FILES := deps/leveldb/libleveldb.a
|
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
endif
|
2014-04-21 14:10:59 +02:00
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := curl
|
2015-01-15 21:51:54 +01:00
|
|
|
LOCAL_SRC_FILES := deps/curl/lib/.libs/libcurl.a
|
2014-04-21 14:10:59 +02:00
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := freetype
|
|
|
|
LOCAL_SRC_FILES := deps/freetype2-android/Android/obj/local/$(TARGET_ARCH_ABI)/libfreetype2-static.a
|
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
|
|
|
|
2015-06-10 00:35:21 +02:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := iconv
|
Android: fix horrible libiconv build
Before, our libiconv build was a joke. We first called configure for our own build host system,
then called make, before we executed a Android.mk script we provided as patch. The first "native make"
always failed, and the LIBICONV_LIB file setting in our Makefile didn't match the built one,
resulting in an always-rebuild of iconv.
This commit cleans up this total mess, removes the double-build, and the Android.mk, and properly calls
./configure with the according target platform, and uses a built toolchain.
As we have to deal with the android bug "NDK: Support for prebuild libs with full sonames"
https://code.google.com/p/android/issues/detail?id=55868
as the 2013 patch
https://lists.gnu.org/archive/html/libtool-patches/2013-06/msg00002.html
by Google's David Turner wasn't inside the 2011 libtool, we pass -avoid-version to
libtool.
Thanks to the proper build, wide_to_utf8 works for android now, removing us of the need to disable it.
2015-07-29 11:54:27 +02:00
|
|
|
LOCAL_SRC_FILES := deps/libiconv/lib/.libs/libiconv.so
|
|
|
|
include $(PREBUILT_SHARED_LIBRARY)
|
2015-06-10 00:35:21 +02:00
|
|
|
|
2014-04-21 14:10:59 +02:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := openal
|
|
|
|
LOCAL_SRC_FILES := deps/openal-soft/libs/$(TARGET_LIBDIR)/libopenal.so
|
|
|
|
include $(PREBUILT_SHARED_LIBRARY)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := ogg
|
|
|
|
LOCAL_SRC_FILES := deps/libvorbis-libogg-android/libs/$(TARGET_LIBDIR)/libogg.so
|
|
|
|
include $(PREBUILT_SHARED_LIBRARY)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := vorbis
|
|
|
|
LOCAL_SRC_FILES := deps/libvorbis-libogg-android/libs/$(TARGET_LIBDIR)/libvorbis.so
|
|
|
|
include $(PREBUILT_SHARED_LIBRARY)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := ssl
|
2015-01-05 00:48:33 +01:00
|
|
|
LOCAL_SRC_FILES := deps/openssl/libssl.a
|
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
2014-04-21 14:10:59 +02:00
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := crypto
|
2015-01-05 00:48:33 +01:00
|
|
|
LOCAL_SRC_FILES := deps/openssl/libcrypto.a
|
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
2014-04-21 14:10:59 +02:00
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := minetest
|
|
|
|
|
|
|
|
LOCAL_CPP_FEATURES += exceptions
|
|
|
|
|
|
|
|
ifdef GPROF
|
|
|
|
GPROF_DEF=-DGPROF
|
|
|
|
endif
|
|
|
|
|
2014-07-07 23:10:26 +02:00
|
|
|
LOCAL_CFLAGS := -D_IRR_ANDROID_PLATFORM_ \
|
2016-04-13 20:14:04 +02:00
|
|
|
-DHAVE_TOUCHSCREENGUI \
|
2019-07-25 00:01:25 +02:00
|
|
|
-DENABLE_GLES=1 \
|
2016-04-13 20:14:04 +02:00
|
|
|
-DUSE_CURL=1 \
|
|
|
|
-DUSE_SOUND=1 \
|
|
|
|
-DUSE_FREETYPE=1 \
|
|
|
|
-DUSE_LEVELDB=$(HAVE_LEVELDB) \
|
|
|
|
$(GPROF_DEF) \
|
|
|
|
-pipe -fstrict-aliasing
|
2014-04-21 14:10:59 +02:00
|
|
|
|
|
|
|
ifndef NDEBUG
|
|
|
|
LOCAL_CFLAGS += -g -D_DEBUG -O0 -fno-omit-frame-pointer
|
|
|
|
else
|
2017-12-06 21:36:29 +01:00
|
|
|
LOCAL_CFLAGS += $(TARGET_CFLAGS_ADDON)
|
2014-04-21 14:10:59 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef GPROF
|
|
|
|
PROFILER_LIBS := android-ndk-profiler
|
|
|
|
LOCAL_CFLAGS += -pg
|
|
|
|
endif
|
|
|
|
|
|
|
|
# LOCAL_CFLAGS += -fsanitize=address
|
|
|
|
# LOCAL_LDFLAGS += -fsanitize=address
|
|
|
|
|
2017-12-06 21:36:29 +01:00
|
|
|
ifeq ($(TARGET_ABI),x86)
|
2014-04-21 14:10:59 +02:00
|
|
|
LOCAL_CFLAGS += -fno-stack-protector
|
|
|
|
endif
|
|
|
|
|
2016-04-13 20:14:04 +02:00
|
|
|
LOCAL_C_INCLUDES := \
|
|
|
|
jni/src \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/script \
|
2019-01-04 16:41:42 +01:00
|
|
|
jni/lib/gmp \
|
2017-04-02 10:51:50 +02:00
|
|
|
jni/lib/lua/src \
|
|
|
|
jni/lib/jsoncpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/cguittfont \
|
|
|
|
deps/irrlicht/include \
|
2015-06-10 00:35:21 +02:00
|
|
|
deps/libiconv/include \
|
2014-04-21 14:10:59 +02:00
|
|
|
deps/freetype2-android/include \
|
2015-01-15 21:51:54 +01:00
|
|
|
deps/curl/include \
|
2014-04-21 14:10:59 +02:00
|
|
|
deps/openal-soft/jni/OpenAL/include \
|
2014-07-06 21:24:31 +02:00
|
|
|
deps/libvorbis-libogg-android/jni/include \
|
|
|
|
deps/leveldb/include \
|
2015-01-07 01:01:03 +01:00
|
|
|
deps/sqlite/
|
2014-04-21 14:10:59 +02:00
|
|
|
|
2016-04-13 20:14:04 +02:00
|
|
|
LOCAL_SRC_FILES := \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/ban.cpp \
|
|
|
|
jni/src/chat.cpp \
|
2018-12-14 20:35:43 +01:00
|
|
|
jni/src/client/activeobjectmgr.cpp \
|
|
|
|
jni/src/client/camera.cpp \
|
2018-11-28 20:01:49 +01:00
|
|
|
jni/src/client/client.cpp \
|
|
|
|
jni/src/client/clientenvironment.cpp \
|
2018-12-14 20:35:43 +01:00
|
|
|
jni/src/client/clientlauncher.cpp \
|
2018-11-28 20:01:49 +01:00
|
|
|
jni/src/client/clientmap.cpp \
|
|
|
|
jni/src/client/clientmedia.cpp \
|
|
|
|
jni/src/client/clientobject.cpp \
|
|
|
|
jni/src/client/clouds.cpp \
|
|
|
|
jni/src/client/content_cao.cpp \
|
|
|
|
jni/src/client/content_cso.cpp \
|
|
|
|
jni/src/client/content_mapblock.cpp \
|
2018-12-14 20:35:43 +01:00
|
|
|
jni/src/client/filecache.cpp \
|
|
|
|
jni/src/client/fontengine.cpp \
|
|
|
|
jni/src/client/game.cpp \
|
|
|
|
jni/src/client/gameui.cpp \
|
|
|
|
jni/src/client/guiscalingfilter.cpp \
|
|
|
|
jni/src/client/hud.cpp \
|
|
|
|
jni/src/clientiface.cpp \
|
|
|
|
jni/src/client/imagefilters.cpp \
|
|
|
|
jni/src/client/inputhandler.cpp \
|
|
|
|
jni/src/client/joystick_controller.cpp \
|
|
|
|
jni/src/client/keycode.cpp \
|
|
|
|
jni/src/client/localplayer.cpp \
|
|
|
|
jni/src/client/mapblock_mesh.cpp \
|
|
|
|
jni/src/client/mesh.cpp \
|
|
|
|
jni/src/client/meshgen/collector.cpp \
|
|
|
|
jni/src/client/mesh_generator_thread.cpp \
|
|
|
|
jni/src/client/minimap.cpp \
|
|
|
|
jni/src/client/particles.cpp \
|
|
|
|
jni/src/client/render/anaglyph.cpp \
|
|
|
|
jni/src/client/render/core.cpp \
|
|
|
|
jni/src/client/render/factory.cpp \
|
|
|
|
jni/src/client/renderingengine.cpp \
|
|
|
|
jni/src/client/render/interlaced.cpp \
|
|
|
|
jni/src/client/render/pageflip.cpp \
|
|
|
|
jni/src/client/render/plain.cpp \
|
|
|
|
jni/src/client/render/sidebyside.cpp \
|
|
|
|
jni/src/client/render/stereo.cpp \
|
|
|
|
jni/src/client/shader.cpp \
|
|
|
|
jni/src/client/sky.cpp \
|
|
|
|
jni/src/client/sound.cpp \
|
|
|
|
jni/src/client/sound_openal.cpp \
|
|
|
|
jni/src/client/tile.cpp \
|
|
|
|
jni/src/client/wieldmesh.cpp \
|
|
|
|
jni/src/collision.cpp \
|
2018-04-21 10:17:16 +02:00
|
|
|
jni/src/content/content.cpp \
|
2018-12-14 20:35:43 +01:00
|
|
|
jni/src/content_mapnode.cpp \
|
2018-04-17 15:54:50 +02:00
|
|
|
jni/src/content/mods.cpp \
|
2018-12-14 20:35:43 +01:00
|
|
|
jni/src/content_nodemeta.cpp \
|
2018-04-21 10:17:16 +02:00
|
|
|
jni/src/content/packages.cpp \
|
2018-12-14 20:35:43 +01:00
|
|
|
jni/src/content_sao.cpp \
|
2018-04-17 15:54:50 +02:00
|
|
|
jni/src/content/subgames.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/convert_json.cpp \
|
|
|
|
jni/src/craftdef.cpp \
|
2018-12-14 20:35:43 +01:00
|
|
|
jni/src/database/database.cpp \
|
2017-11-08 23:56:20 +01:00
|
|
|
jni/src/database/database-dummy.cpp \
|
|
|
|
jni/src/database/database-files.cpp \
|
2017-12-06 21:36:29 +01:00
|
|
|
jni/src/database/database-leveldb.cpp \
|
2017-11-08 23:56:20 +01:00
|
|
|
jni/src/database/database-sqlite3.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/debug.cpp \
|
|
|
|
jni/src/defaultsettings.cpp \
|
|
|
|
jni/src/emerge.cpp \
|
|
|
|
jni/src/environment.cpp \
|
2015-07-06 18:53:30 +02:00
|
|
|
jni/src/face_position_cache.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/filesys.cpp \
|
|
|
|
jni/src/genericobject.cpp \
|
|
|
|
jni/src/gettext.cpp \
|
2019-03-16 22:38:36 +01:00
|
|
|
jni/src/gui/guiButton.cpp \
|
2017-11-08 23:56:20 +01:00
|
|
|
jni/src/gui/guiChatConsole.cpp \
|
2017-12-06 21:36:29 +01:00
|
|
|
jni/src/gui/guiConfirmRegistration.cpp \
|
2017-11-08 23:56:20 +01:00
|
|
|
jni/src/gui/guiEditBoxWithScrollbar.cpp \
|
|
|
|
jni/src/gui/guiEngine.cpp \
|
|
|
|
jni/src/gui/guiFormSpecMenu.cpp \
|
|
|
|
jni/src/gui/guiKeyChangeMenu.cpp \
|
|
|
|
jni/src/gui/guiPasswordChange.cpp \
|
2018-12-14 20:35:43 +01:00
|
|
|
jni/src/gui/guiPathSelectMenu.cpp \
|
2019-05-24 17:42:05 +02:00
|
|
|
jni/src/gui/guiScrollBar.cpp \
|
2019-03-15 19:39:23 +01:00
|
|
|
jni/src/gui/guiSkin.cpp \
|
2017-11-08 23:56:20 +01:00
|
|
|
jni/src/gui/guiTable.cpp \
|
|
|
|
jni/src/gui/guiVolumeChange.cpp \
|
2018-03-11 17:45:58 +01:00
|
|
|
jni/src/gui/intlGUIEditBox.cpp \
|
2018-06-24 21:50:57 +02:00
|
|
|
jni/src/gui/modalMenu.cpp \
|
2018-01-13 10:54:18 +01:00
|
|
|
jni/src/gui/profilergraph.cpp \
|
2017-12-06 21:36:29 +01:00
|
|
|
jni/src/gui/touchscreengui.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/httpfetch.cpp \
|
|
|
|
jni/src/hud.cpp \
|
|
|
|
jni/src/inventory.cpp \
|
|
|
|
jni/src/inventorymanager.cpp \
|
2018-12-14 20:35:43 +01:00
|
|
|
jni/src/irrlicht_changes/CGUITTFont.cpp \
|
|
|
|
jni/src/irrlicht_changes/static_text.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/itemdef.cpp \
|
2017-01-31 20:49:01 +01:00
|
|
|
jni/src/itemstackmetadata.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/light.cpp \
|
|
|
|
jni/src/log.cpp \
|
|
|
|
jni/src/main.cpp \
|
|
|
|
jni/src/mapblock.cpp \
|
2018-12-14 20:35:43 +01:00
|
|
|
jni/src/map.cpp \
|
|
|
|
jni/src/mapgen/cavegen.cpp \
|
|
|
|
jni/src/mapgen/dungeongen.cpp \
|
2017-11-08 23:56:20 +01:00
|
|
|
jni/src/mapgen/mapgen_carpathian.cpp \
|
2018-12-14 20:35:43 +01:00
|
|
|
jni/src/mapgen/mapgen.cpp \
|
2017-11-08 23:56:20 +01:00
|
|
|
jni/src/mapgen/mapgen_flat.cpp \
|
|
|
|
jni/src/mapgen/mapgen_fractal.cpp \
|
|
|
|
jni/src/mapgen/mapgen_singlenode.cpp \
|
|
|
|
jni/src/mapgen/mapgen_v5.cpp \
|
|
|
|
jni/src/mapgen/mapgen_v6.cpp \
|
|
|
|
jni/src/mapgen/mapgen_v7.cpp \
|
|
|
|
jni/src/mapgen/mapgen_valleys.cpp \
|
|
|
|
jni/src/mapgen/mg_biome.cpp \
|
|
|
|
jni/src/mapgen/mg_decoration.cpp \
|
|
|
|
jni/src/mapgen/mg_ore.cpp \
|
|
|
|
jni/src/mapgen/mg_schematic.cpp \
|
2018-12-14 20:35:43 +01:00
|
|
|
jni/src/mapgen/treegen.cpp \
|
|
|
|
jni/src/mapnode.cpp \
|
|
|
|
jni/src/mapsector.cpp \
|
|
|
|
jni/src/map_settings_manager.cpp \
|
|
|
|
jni/src/metadata.cpp \
|
2017-12-06 21:36:29 +01:00
|
|
|
jni/src/modchannels.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/nameidmapping.cpp \
|
|
|
|
jni/src/nodedef.cpp \
|
|
|
|
jni/src/nodemetadata.cpp \
|
|
|
|
jni/src/nodetimer.cpp \
|
|
|
|
jni/src/noise.cpp \
|
2015-05-19 04:30:25 +02:00
|
|
|
jni/src/objdef.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/object_properties.cpp \
|
|
|
|
jni/src/pathfinder.cpp \
|
|
|
|
jni/src/player.cpp \
|
|
|
|
jni/src/porting_android.cpp \
|
|
|
|
jni/src/porting.cpp \
|
2015-04-01 15:01:28 +02:00
|
|
|
jni/src/profiler.cpp \
|
2017-01-05 01:44:11 +01:00
|
|
|
jni/src/raycast.cpp \
|
2016-12-07 21:27:07 +01:00
|
|
|
jni/src/reflowscan.cpp \
|
2016-10-28 15:37:19 +02:00
|
|
|
jni/src/remoteplayer.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/rollback.cpp \
|
|
|
|
jni/src/rollback_interface.cpp \
|
|
|
|
jni/src/serialization.cpp \
|
2018-12-14 20:35:43 +01:00
|
|
|
jni/src/server/activeobjectmgr.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/server.cpp \
|
2017-01-09 20:39:22 +01:00
|
|
|
jni/src/serverenvironment.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/serverlist.cpp \
|
2018-12-14 20:35:43 +01:00
|
|
|
jni/src/server/mods.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/serverobject.cpp \
|
2018-12-14 20:35:43 +01:00
|
|
|
jni/src/settings.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/staticobject.cpp \
|
2017-01-05 01:44:11 +01:00
|
|
|
jni/src/tileanimation.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/tool.cpp \
|
2018-12-14 20:35:43 +01:00
|
|
|
jni/src/translation.cpp \
|
2018-08-05 13:13:38 +02:00
|
|
|
jni/src/unittest/test_authdatabase.cpp \
|
2015-04-26 07:24:19 +02:00
|
|
|
jni/src/unittest/test_collision.cpp \
|
|
|
|
jni/src/unittest/test_compression.cpp \
|
|
|
|
jni/src/unittest/test_connection.cpp \
|
2018-12-14 20:35:43 +01:00
|
|
|
jni/src/unittest/test.cpp \
|
2015-04-26 07:24:19 +02:00
|
|
|
jni/src/unittest/test_filepath.cpp \
|
2017-12-06 21:36:29 +01:00
|
|
|
jni/src/unittest/test_gameui.cpp \
|
2015-04-26 07:24:19 +02:00
|
|
|
jni/src/unittest/test_inventory.cpp \
|
|
|
|
jni/src/unittest/test_mapnode.cpp \
|
2018-12-14 20:35:43 +01:00
|
|
|
jni/src/unittest/test_map_settings_manager.cpp \
|
2015-04-26 07:24:19 +02:00
|
|
|
jni/src/unittest/test_nodedef.cpp \
|
2015-05-05 17:36:40 +02:00
|
|
|
jni/src/unittest/test_noderesolver.cpp \
|
2015-04-26 07:24:19 +02:00
|
|
|
jni/src/unittest/test_noise.cpp \
|
2015-05-04 04:19:15 +02:00
|
|
|
jni/src/unittest/test_objdef.cpp \
|
2015-04-26 07:24:19 +02:00
|
|
|
jni/src/unittest/test_profiler.cpp \
|
2015-04-29 19:20:01 +02:00
|
|
|
jni/src/unittest/test_random.cpp \
|
2015-05-08 06:05:08 +02:00
|
|
|
jni/src/unittest/test_schematic.cpp \
|
2015-04-26 07:24:19 +02:00
|
|
|
jni/src/unittest/test_serialization.cpp \
|
|
|
|
jni/src/unittest/test_settings.cpp \
|
|
|
|
jni/src/unittest/test_socket.cpp \
|
|
|
|
jni/src/unittest/test_utilities.cpp \
|
|
|
|
jni/src/unittest/test_voxelalgorithms.cpp \
|
|
|
|
jni/src/unittest/test_voxelmanipulator.cpp \
|
2018-12-14 20:35:43 +01:00
|
|
|
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/ieee_float.cpp \
|
|
|
|
jni/src/util/numeric.cpp \
|
|
|
|
jni/src/util/pointedthing.cpp \
|
2019-09-29 13:41:13 +02:00
|
|
|
jni/src/util/quicktune.cpp \
|
2018-12-14 20:35:43 +01:00
|
|
|
jni/src/util/serialize.cpp \
|
|
|
|
jni/src/util/sha1.cpp \
|
|
|
|
jni/src/util/srp.cpp \
|
|
|
|
jni/src/util/string.cpp \
|
|
|
|
jni/src/util/timetaker.cpp \
|
|
|
|
jni/src/version.cpp \
|
|
|
|
jni/src/voxelalgorithms.cpp \
|
|
|
|
jni/src/voxel.cpp
|
|
|
|
|
2014-04-21 14:10:59 +02:00
|
|
|
|
2015-04-12 04:49:13 +02:00
|
|
|
# intentionally kept out (we already build openssl itself): jni/src/util/sha256.c
|
|
|
|
|
2015-02-11 09:05:24 +01:00
|
|
|
# Network
|
2016-04-13 20:14:04 +02:00
|
|
|
LOCAL_SRC_FILES += \
|
2017-12-06 21:36:29 +01:00
|
|
|
jni/src/network/address.cpp \
|
2015-02-18 09:23:24 +01:00
|
|
|
jni/src/network/connection.cpp \
|
2015-02-11 09:05:24 +01:00
|
|
|
jni/src/network/networkpacket.cpp \
|
|
|
|
jni/src/network/clientopcodes.cpp \
|
2015-03-16 10:19:13 +01:00
|
|
|
jni/src/network/clientpackethandler.cpp \
|
2017-12-06 21:36:29 +01:00
|
|
|
jni/src/network/connectionthreads.cpp \
|
2015-02-11 09:05:24 +01:00
|
|
|
jni/src/network/serveropcodes.cpp \
|
2015-03-16 10:19:13 +01:00
|
|
|
jni/src/network/serverpackethandler.cpp \
|
2017-12-06 21:36:29 +01:00
|
|
|
jni/src/network/socket.cpp \
|
2015-02-11 09:05:24 +01:00
|
|
|
|
2014-04-21 14:10:59 +02:00
|
|
|
# lua api
|
2016-04-13 20:14:04 +02:00
|
|
|
LOCAL_SRC_FILES += \
|
2014-04-21 14:10:59 +02:00
|
|
|
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 \
|
2018-06-30 17:11:38 +02:00
|
|
|
jni/src/script/common/helper.cpp \
|
2014-09-06 02:08:51 +02:00
|
|
|
jni/src/script/cpp_api/s_async.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/script/cpp_api/s_base.cpp \
|
2017-03-15 15:42:47 +01:00
|
|
|
jni/src/script/cpp_api/s_client.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
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 \
|
2017-12-06 21:36:29 +01:00
|
|
|
jni/src/script/cpp_api/s_modchannels.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/script/cpp_api/s_node.cpp \
|
|
|
|
jni/src/script/cpp_api/s_nodemeta.cpp \
|
|
|
|
jni/src/script/cpp_api/s_player.cpp \
|
2014-09-06 02:08:51 +02:00
|
|
|
jni/src/script/cpp_api/s_security.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/script/cpp_api/s_server.cpp \
|
2015-07-11 02:24:00 +02:00
|
|
|
jni/src/script/lua_api/l_areastore.cpp \
|
2018-08-05 13:13:38 +02:00
|
|
|
jni/src/script/lua_api/l_auth.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/script/lua_api/l_base.cpp \
|
2017-05-05 22:07:36 +02:00
|
|
|
jni/src/script/lua_api/l_camera.cpp \
|
2017-03-15 15:42:47 +01:00
|
|
|
jni/src/script/lua_api/l_client.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
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 \
|
2017-01-31 20:49:01 +01:00
|
|
|
jni/src/script/lua_api/l_itemstackmeta.cpp\
|
2017-04-14 09:26:11 +02:00
|
|
|
jni/src/script/lua_api/l_localplayer.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/script/lua_api/l_mainmenu.cpp \
|
|
|
|
jni/src/script/lua_api/l_mapgen.cpp \
|
2017-01-31 17:43:45 +01:00
|
|
|
jni/src/script/lua_api/l_metadata.cpp \
|
2017-04-01 16:47:58 +02:00
|
|
|
jni/src/script/lua_api/l_minimap.cpp \
|
2017-12-06 21:36:29 +01:00
|
|
|
jni/src/script/lua_api/l_modchannels.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
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 \
|
2018-04-06 10:52:29 +02:00
|
|
|
jni/src/script/lua_api/l_playermeta.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/script/lua_api/l_particles.cpp \
|
2019-02-26 08:53:53 +01:00
|
|
|
jni/src/script/lua_api/l_particles_local.cpp\
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/script/lua_api/l_rollback.cpp \
|
|
|
|
jni/src/script/lua_api/l_server.cpp \
|
|
|
|
jni/src/script/lua_api/l_settings.cpp \
|
2017-03-15 15:42:47 +01:00
|
|
|
jni/src/script/lua_api/l_sound.cpp \
|
2016-02-23 01:14:00 +01:00
|
|
|
jni/src/script/lua_api/l_http.cpp \
|
2017-02-08 07:47:56 +01:00
|
|
|
jni/src/script/lua_api/l_storage.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/script/lua_api/l_util.cpp \
|
|
|
|
jni/src/script/lua_api/l_vmanip.cpp \
|
2017-04-26 21:11:46 +02:00
|
|
|
jni/src/script/scripting_client.cpp \
|
|
|
|
jni/src/script/scripting_server.cpp \
|
2014-04-21 14:10:59 +02:00
|
|
|
jni/src/script/scripting_mainmenu.cpp
|
2015-04-12 06:18:48 +02:00
|
|
|
|
2014-04-21 14:10:59 +02:00
|
|
|
#freetype2 support
|
2017-12-06 21:36:29 +01:00
|
|
|
#LOCAL_SRC_FILES += jni/src/cguittfont/xCGUITTFont.cpp
|
2014-04-21 14:10:59 +02:00
|
|
|
|
2019-01-04 16:41:42 +01:00
|
|
|
# GMP
|
|
|
|
LOCAL_SRC_FILES += jni/lib/gmp/mini-gmp.c
|
|
|
|
|
2016-04-13 20:14:04 +02:00
|
|
|
# Lua
|
|
|
|
LOCAL_SRC_FILES += \
|
2017-04-02 10:51:50 +02:00
|
|
|
jni/lib/lua/src/lapi.c \
|
|
|
|
jni/lib/lua/src/lauxlib.c \
|
|
|
|
jni/lib/lua/src/lbaselib.c \
|
|
|
|
jni/lib/lua/src/lcode.c \
|
|
|
|
jni/lib/lua/src/ldblib.c \
|
|
|
|
jni/lib/lua/src/ldebug.c \
|
|
|
|
jni/lib/lua/src/ldo.c \
|
|
|
|
jni/lib/lua/src/ldump.c \
|
|
|
|
jni/lib/lua/src/lfunc.c \
|
|
|
|
jni/lib/lua/src/lgc.c \
|
|
|
|
jni/lib/lua/src/linit.c \
|
|
|
|
jni/lib/lua/src/liolib.c \
|
|
|
|
jni/lib/lua/src/llex.c \
|
|
|
|
jni/lib/lua/src/lmathlib.c \
|
|
|
|
jni/lib/lua/src/lmem.c \
|
|
|
|
jni/lib/lua/src/loadlib.c \
|
|
|
|
jni/lib/lua/src/lobject.c \
|
|
|
|
jni/lib/lua/src/lopcodes.c \
|
|
|
|
jni/lib/lua/src/loslib.c \
|
|
|
|
jni/lib/lua/src/lparser.c \
|
|
|
|
jni/lib/lua/src/lstate.c \
|
|
|
|
jni/lib/lua/src/lstring.c \
|
|
|
|
jni/lib/lua/src/lstrlib.c \
|
|
|
|
jni/lib/lua/src/ltable.c \
|
|
|
|
jni/lib/lua/src/ltablib.c \
|
|
|
|
jni/lib/lua/src/ltm.c \
|
|
|
|
jni/lib/lua/src/lundump.c \
|
|
|
|
jni/lib/lua/src/lvm.c \
|
|
|
|
jni/lib/lua/src/lzio.c \
|
|
|
|
jni/lib/lua/src/print.c
|
2014-04-21 14:10:59 +02:00
|
|
|
|
2015-04-07 12:13:12 +02:00
|
|
|
# SQLite3
|
2015-01-07 01:01:03 +01:00
|
|
|
LOCAL_SRC_FILES += deps/sqlite/sqlite3.c
|
2014-04-21 14:10:59 +02:00
|
|
|
|
2015-04-07 12:13:12 +02:00
|
|
|
# Threading
|
|
|
|
LOCAL_SRC_FILES += \
|
2015-12-11 11:22:05 +01:00
|
|
|
jni/src/threading/event.cpp \
|
2015-08-24 17:20:53 +02:00
|
|
|
jni/src/threading/semaphore.cpp \
|
|
|
|
jni/src/threading/thread.cpp
|
2014-04-21 14:10:59 +02:00
|
|
|
|
2015-04-07 12:13:12 +02:00
|
|
|
# JSONCPP
|
2017-04-02 10:51:50 +02:00
|
|
|
LOCAL_SRC_FILES += jni/lib/jsoncpp/jsoncpp.cpp
|
2014-04-21 14:10:59 +02:00
|
|
|
|
2019-01-04 16:41:42 +01:00
|
|
|
LOCAL_SHARED_LIBRARIES := iconv openal ogg vorbis
|
Android: fix horrible libiconv build
Before, our libiconv build was a joke. We first called configure for our own build host system,
then called make, before we executed a Android.mk script we provided as patch. The first "native make"
always failed, and the LIBICONV_LIB file setting in our Makefile didn't match the built one,
resulting in an always-rebuild of iconv.
This commit cleans up this total mess, removes the double-build, and the Android.mk, and properly calls
./configure with the according target platform, and uses a built toolchain.
As we have to deal with the android bug "NDK: Support for prebuild libs with full sonames"
https://code.google.com/p/android/issues/detail?id=55868
as the 2013 patch
https://lists.gnu.org/archive/html/libtool-patches/2013-06/msg00002.html
by Google's David Turner wasn't inside the 2011 libtool, we pass -avoid-version to
libtool.
Thanks to the proper build, wide_to_utf8 works for android now, removing us of the need to disable it.
2015-07-29 11:54:27 +02:00
|
|
|
LOCAL_STATIC_LIBRARIES := Irrlicht freetype curl ssl crypto android_native_app_glue $(PROFILER_LIBS)
|
2014-07-07 23:10:26 +02:00
|
|
|
|
|
|
|
ifeq ($(HAVE_LEVELDB), 1)
|
|
|
|
LOCAL_STATIC_LIBRARIES += LevelDB
|
|
|
|
endif
|
2014-04-21 14:10:59 +02:00
|
|
|
LOCAL_LDLIBS := -lEGL -llog -lGLESv1_CM -lGLESv2 -lz -landroid
|
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
|
|
|
# at the end of Android.mk
|
|
|
|
ifdef GPROF
|
|
|
|
$(call import-module,android-ndk-profiler)
|
|
|
|
endif
|
|
|
|
$(call import-module,android/native_app_glue)
|