2014-04-21 08:10:59 -04: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 17:10:26 -04: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 08:10:59 -04:00
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := curl
|
2015-01-15 15:51:54 -05:00
|
|
|
LOCAL_SRC_FILES := deps/curl/lib/.libs/libcurl.a
|
2014-04-21 08:10:59 -04: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-09 18:35:21 -04: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 05:54:27 -04:00
|
|
|
LOCAL_SRC_FILES := deps/libiconv/lib/.libs/libiconv.so
|
|
|
|
include $(PREBUILT_SHARED_LIBRARY)
|
2015-06-09 18:35:21 -04:00
|
|
|
|
2014-04-21 08:10:59 -04: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)
|
|
|
|
|
2015-04-12 00:18:48 -04:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := gmp
|
|
|
|
LOCAL_SRC_FILES := deps/gmp/usr/lib/libgmp.so
|
|
|
|
include $(PREBUILT_SHARED_LIBRARY)
|
|
|
|
|
2014-04-21 08:10:59 -04:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := ssl
|
2015-01-04 18:48:33 -05:00
|
|
|
LOCAL_SRC_FILES := deps/openssl/libssl.a
|
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
2014-04-21 08:10:59 -04:00
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := crypto
|
2015-01-04 18:48:33 -05:00
|
|
|
LOCAL_SRC_FILES := deps/openssl/libcrypto.a
|
|
|
|
include $(PREBUILT_STATIC_LIBRARY)
|
2014-04-21 08:10:59 -04:00
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := minetest
|
|
|
|
|
|
|
|
LOCAL_CPP_FEATURES += exceptions
|
|
|
|
|
|
|
|
ifdef GPROF
|
|
|
|
GPROF_DEF=-DGPROF
|
|
|
|
endif
|
|
|
|
|
2014-07-07 17:10:26 -04:00
|
|
|
LOCAL_CFLAGS := -D_IRR_ANDROID_PLATFORM_ \
|
2016-04-13 14:14:04 -04:00
|
|
|
-DHAVE_TOUCHSCREENGUI \
|
|
|
|
-DUSE_CURL=1 \
|
|
|
|
-DUSE_SOUND=1 \
|
|
|
|
-DUSE_FREETYPE=1 \
|
|
|
|
-DUSE_LEVELDB=$(HAVE_LEVELDB) \
|
|
|
|
$(GPROF_DEF) \
|
|
|
|
-pipe -fstrict-aliasing
|
2014-04-21 08:10:59 -04:00
|
|
|
|
|
|
|
ifndef NDEBUG
|
|
|
|
LOCAL_CFLAGS += -g -D_DEBUG -O0 -fno-omit-frame-pointer
|
|
|
|
else
|
2016-02-05 13:56:56 -05:00
|
|
|
LOCAL_CFLAGS += -O3
|
2014-04-21 08:10:59 -04:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef GPROF
|
|
|
|
PROFILER_LIBS := android-ndk-profiler
|
|
|
|
LOCAL_CFLAGS += -pg
|
|
|
|
endif
|
|
|
|
|
|
|
|
# LOCAL_CFLAGS += -fsanitize=address
|
|
|
|
# LOCAL_LDFLAGS += -fsanitize=address
|
|
|
|
|
|
|
|
ifeq ($(TARGET_ARCH_ABI),x86)
|
|
|
|
LOCAL_CFLAGS += -fno-stack-protector
|
|
|
|
endif
|
|
|
|
|
2016-04-13 14:14:04 -04:00
|
|
|
LOCAL_C_INCLUDES := \
|
|
|
|
jni/src \
|
2014-04-21 08:10:59 -04:00
|
|
|
jni/src/script \
|
|
|
|
jni/src/lua/src \
|
2016-08-19 14:23:30 -04:00
|
|
|
jni/src/jsoncpp \
|
2014-04-21 08:10:59 -04:00
|
|
|
jni/src/cguittfont \
|
|
|
|
deps/irrlicht/include \
|
2015-06-09 18:35:21 -04:00
|
|
|
deps/libiconv/include \
|
2014-04-21 08:10:59 -04:00
|
|
|
deps/freetype2-android/include \
|
2015-01-15 15:51:54 -05:00
|
|
|
deps/curl/include \
|
2014-04-21 08:10:59 -04:00
|
|
|
deps/openal-soft/jni/OpenAL/include \
|
2014-07-06 15:24:31 -04:00
|
|
|
deps/libvorbis-libogg-android/jni/include \
|
2015-04-12 00:18:48 -04:00
|
|
|
deps/gmp/usr/include \
|
2014-07-06 15:24:31 -04:00
|
|
|
deps/leveldb/include \
|
2015-01-06 19:01:03 -05:00
|
|
|
deps/sqlite/
|
2014-04-21 08:10:59 -04:00
|
|
|
|
2016-04-13 14:14:04 -04:00
|
|
|
LOCAL_SRC_FILES := \
|
2014-04-21 08:10:59 -04:00
|
|
|
jni/src/ban.cpp \
|
|
|
|
jni/src/camera.cpp \
|
|
|
|
jni/src/cavegen.cpp \
|
|
|
|
jni/src/chat.cpp \
|
|
|
|
jni/src/client.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_cso.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-sqlite3.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/filecache.cpp \
|
|
|
|
jni/src/filesys.cpp \
|
2014-12-01 15:22:23 -05:00
|
|
|
jni/src/fontengine.cpp \
|
2014-04-21 08:10:59 -04:00
|
|
|
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 \
|
2015-03-09 09:32:11 -04:00
|
|
|
jni/src/guiscalingfilter.cpp \
|
2014-04-21 08:10:59 -04:00
|
|
|
jni/src/guiVolumeChange.cpp \
|
|
|
|
jni/src/httpfetch.cpp \
|
|
|
|
jni/src/hud.cpp \
|
2015-03-09 09:32:11 -04:00
|
|
|
jni/src/imagefilters.cpp \
|
2015-06-09 18:35:21 -04:00
|
|
|
jni/src/intlGUIEditBox.cpp \
|
2014-04-21 08:10:59 -04:00
|
|
|
jni/src/inventory.cpp \
|
|
|
|
jni/src/inventorymanager.cpp \
|
|
|
|
jni/src/itemdef.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 \
|
2016-06-24 18:15:56 -04:00
|
|
|
jni/src/map_settings_manager.cpp \
|
2014-04-21 08:10:59 -04:00
|
|
|
jni/src/mapblock.cpp \
|
|
|
|
jni/src/mapblock_mesh.cpp \
|
|
|
|
jni/src/mapgen.cpp \
|
2015-10-29 22:45:38 -04:00
|
|
|
jni/src/mapgen_flat.cpp \
|
2015-10-06 17:14:44 -04:00
|
|
|
jni/src/mapgen_fractal.cpp \
|
2014-04-21 08:10:59 -04:00
|
|
|
jni/src/mapgen_singlenode.cpp \
|
2014-11-03 16:25:37 -05:00
|
|
|
jni/src/mapgen_v5.cpp \
|
2014-04-21 08:10:59 -04:00
|
|
|
jni/src/mapgen_v6.cpp \
|
|
|
|
jni/src/mapgen_v7.cpp \
|
2016-01-13 22:57:02 -05:00
|
|
|
jni/src/mapgen_valleys.cpp \
|
2014-04-21 08:10:59 -04:00
|
|
|
jni/src/mapnode.cpp \
|
|
|
|
jni/src/mapsector.cpp \
|
|
|
|
jni/src/mesh.cpp \
|
2014-11-01 13:16:23 -04:00
|
|
|
jni/src/mg_biome.cpp \
|
|
|
|
jni/src/mg_decoration.cpp \
|
|
|
|
jni/src/mg_ore.cpp \
|
|
|
|
jni/src/mg_schematic.cpp \
|
2015-06-21 22:34:56 -04:00
|
|
|
jni/src/minimap.cpp \
|
2014-04-21 08:10:59 -04:00
|
|
|
jni/src/mods.cpp \
|
|
|
|
jni/src/nameidmapping.cpp \
|
|
|
|
jni/src/nodedef.cpp \
|
|
|
|
jni/src/nodemetadata.cpp \
|
|
|
|
jni/src/nodetimer.cpp \
|
|
|
|
jni/src/noise.cpp \
|
2015-05-18 22:30:25 -04:00
|
|
|
jni/src/objdef.cpp \
|
2014-04-21 08:10:59 -04:00
|
|
|
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 \
|
2015-04-01 09:01:28 -04:00
|
|
|
jni/src/profiler.cpp \
|
2014-04-21 08:10:59 -04:00
|
|
|
jni/src/quicktune.cpp \
|
2017-01-04 19:44:11 -05:00
|
|
|
jni/src/raycast.cpp \
|
2016-12-07 15:27:07 -05:00
|
|
|
jni/src/reflowscan.cpp \
|
2016-10-28 09:37:19 -04:00
|
|
|
jni/src/remoteplayer.cpp \
|
2014-04-21 08:10:59 -04:00
|
|
|
jni/src/rollback.cpp \
|
|
|
|
jni/src/rollback_interface.cpp \
|
|
|
|
jni/src/serialization.cpp \
|
|
|
|
jni/src/server.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 \
|
2017-01-04 19:44:11 -05:00
|
|
|
jni/src/tileanimation.cpp \
|
2014-04-21 08:10:59 -04:00
|
|
|
jni/src/tool.cpp \
|
|
|
|
jni/src/treegen.cpp \
|
|
|
|
jni/src/version.cpp \
|
|
|
|
jni/src/voxel.cpp \
|
|
|
|
jni/src/voxelalgorithms.cpp \
|
2015-10-29 23:26:03 -04:00
|
|
|
jni/src/util/areastore.cpp \
|
2015-04-11 22:49:13 -04:00
|
|
|
jni/src/util/auth.cpp \
|
2015-02-21 11:37:48 -05:00
|
|
|
jni/src/util/base64.cpp \
|
2014-04-21 08:10:59 -04:00
|
|
|
jni/src/util/directiontables.cpp \
|
2016-06-10 23:41:12 -04:00
|
|
|
jni/src/util/enriched_string.cpp \
|
2014-04-21 08:10:59 -04:00
|
|
|
jni/src/util/numeric.cpp \
|
|
|
|
jni/src/util/pointedthing.cpp \
|
|
|
|
jni/src/util/serialize.cpp \
|
2015-02-21 11:37:48 -05:00
|
|
|
jni/src/util/sha1.cpp \
|
2014-04-21 08:10:59 -04:00
|
|
|
jni/src/util/string.cpp \
|
2015-04-11 22:49:13 -04:00
|
|
|
jni/src/util/srp.cpp \
|
2014-04-21 08:10:59 -04:00
|
|
|
jni/src/util/timetaker.cpp \
|
2015-04-26 01:24:19 -04:00
|
|
|
jni/src/unittest/test.cpp \
|
|
|
|
jni/src/unittest/test_collision.cpp \
|
|
|
|
jni/src/unittest/test_compression.cpp \
|
|
|
|
jni/src/unittest/test_connection.cpp \
|
|
|
|
jni/src/unittest/test_filepath.cpp \
|
|
|
|
jni/src/unittest/test_inventory.cpp \
|
2016-06-24 18:15:56 -04:00
|
|
|
jni/src/unittest/test_map_settings_manager.cpp \
|
2015-04-26 01:24:19 -04:00
|
|
|
jni/src/unittest/test_mapnode.cpp \
|
|
|
|
jni/src/unittest/test_nodedef.cpp \
|
2015-05-05 11:36:40 -04:00
|
|
|
jni/src/unittest/test_noderesolver.cpp \
|
2015-04-26 01:24:19 -04:00
|
|
|
jni/src/unittest/test_noise.cpp \
|
2015-05-03 22:19:15 -04:00
|
|
|
jni/src/unittest/test_objdef.cpp \
|
2015-04-26 01:24:19 -04:00
|
|
|
jni/src/unittest/test_profiler.cpp \
|
2015-04-29 13:20:01 -04:00
|
|
|
jni/src/unittest/test_random.cpp \
|
2015-05-08 00:05:08 -04:00
|
|
|
jni/src/unittest/test_schematic.cpp \
|
2015-04-26 01:24:19 -04: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 \
|
2014-07-06 15:24:31 -04:00
|
|
|
jni/src/touchscreengui.cpp \
|
2014-11-01 22:47:43 -04:00
|
|
|
jni/src/database-leveldb.cpp \
|
|
|
|
jni/src/settings.cpp \
|
2015-02-10 15:14:24 -05:00
|
|
|
jni/src/wieldmesh.cpp \
|
2015-03-05 05:52:57 -05:00
|
|
|
jni/src/client/clientlauncher.cpp \
|
2016-06-10 23:41:12 -04:00
|
|
|
jni/src/client/tile.cpp \
|
|
|
|
jni/src/client/joystick_controller.cpp \
|
|
|
|
jni/src/irrlicht_changes/static_text.cpp
|
2014-04-21 08:10:59 -04:00
|
|
|
|
2015-04-11 22:49:13 -04:00
|
|
|
# intentionally kept out (we already build openssl itself): jni/src/util/sha256.c
|
|
|
|
|
2015-02-11 03:05:24 -05:00
|
|
|
# Network
|
2016-04-13 14:14:04 -04:00
|
|
|
LOCAL_SRC_FILES += \
|
2015-02-18 03:23:24 -05:00
|
|
|
jni/src/network/connection.cpp \
|
2015-02-11 03:05:24 -05:00
|
|
|
jni/src/network/networkpacket.cpp \
|
|
|
|
jni/src/network/clientopcodes.cpp \
|
2015-03-16 05:19:13 -04:00
|
|
|
jni/src/network/clientpackethandler.cpp \
|
2015-02-11 03:05:24 -05:00
|
|
|
jni/src/network/serveropcodes.cpp \
|
2015-03-16 05:19:13 -04:00
|
|
|
jni/src/network/serverpackethandler.cpp \
|
2015-02-11 03:05:24 -05:00
|
|
|
|
2014-04-21 08:10:59 -04:00
|
|
|
# lua api
|
2016-04-13 14:14:04 -04:00
|
|
|
LOCAL_SRC_FILES += \
|
2014-04-21 08:10:59 -04: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 \
|
2014-09-05 20:08:51 -04:00
|
|
|
jni/src/script/cpp_api/s_async.cpp \
|
2014-04-21 08:10:59 -04:00
|
|
|
jni/src/script/cpp_api/s_base.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 \
|
2014-09-05 20:08:51 -04:00
|
|
|
jni/src/script/cpp_api/s_security.cpp \
|
2014-04-21 08:10:59 -04:00
|
|
|
jni/src/script/cpp_api/s_server.cpp \
|
2015-07-10 20:24:00 -04:00
|
|
|
jni/src/script/lua_api/l_areastore.cpp \
|
2014-04-21 08:10:59 -04:00
|
|
|
jni/src/script/lua_api/l_base.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_mainmenu.cpp \
|
|
|
|
jni/src/script/lua_api/l_mapgen.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 \
|
2016-02-22 19:14:00 -05:00
|
|
|
jni/src/script/lua_api/l_http.cpp \
|
2014-04-21 08:10:59 -04:00
|
|
|
jni/src/script/lua_api/l_util.cpp \
|
|
|
|
jni/src/script/lua_api/l_vmanip.cpp \
|
|
|
|
jni/src/script/scripting_game.cpp \
|
|
|
|
jni/src/script/scripting_mainmenu.cpp
|
2015-04-12 00:18:48 -04:00
|
|
|
|
2014-04-21 08:10:59 -04:00
|
|
|
#freetype2 support
|
2016-04-13 14:14:04 -04:00
|
|
|
LOCAL_SRC_FILES += jni/src/cguittfont/xCGUITTFont.cpp
|
2014-04-21 08:10:59 -04:00
|
|
|
|
2016-04-13 14:14:04 -04:00
|
|
|
# Lua
|
|
|
|
LOCAL_SRC_FILES += \
|
2014-04-21 08:10:59 -04:00
|
|
|
jni/src/lua/src/lapi.c \
|
|
|
|
jni/src/lua/src/lauxlib.c \
|
|
|
|
jni/src/lua/src/lbaselib.c \
|
|
|
|
jni/src/lua/src/lcode.c \
|
|
|
|
jni/src/lua/src/ldblib.c \
|
|
|
|
jni/src/lua/src/ldebug.c \
|
|
|
|
jni/src/lua/src/ldo.c \
|
|
|
|
jni/src/lua/src/ldump.c \
|
|
|
|
jni/src/lua/src/lfunc.c \
|
|
|
|
jni/src/lua/src/lgc.c \
|
|
|
|
jni/src/lua/src/linit.c \
|
|
|
|
jni/src/lua/src/liolib.c \
|
|
|
|
jni/src/lua/src/llex.c \
|
|
|
|
jni/src/lua/src/lmathlib.c \
|
|
|
|
jni/src/lua/src/lmem.c \
|
|
|
|
jni/src/lua/src/loadlib.c \
|
|
|
|
jni/src/lua/src/lobject.c \
|
|
|
|
jni/src/lua/src/lopcodes.c \
|
|
|
|
jni/src/lua/src/loslib.c \
|
|
|
|
jni/src/lua/src/lparser.c \
|
|
|
|
jni/src/lua/src/lstate.c \
|
|
|
|
jni/src/lua/src/lstring.c \
|
|
|
|
jni/src/lua/src/lstrlib.c \
|
|
|
|
jni/src/lua/src/ltable.c \
|
|
|
|
jni/src/lua/src/ltablib.c \
|
|
|
|
jni/src/lua/src/ltm.c \
|
|
|
|
jni/src/lua/src/lundump.c \
|
|
|
|
jni/src/lua/src/lvm.c \
|
|
|
|
jni/src/lua/src/lzio.c \
|
|
|
|
jni/src/lua/src/print.c
|
|
|
|
|
2015-04-07 06:13:12 -04:00
|
|
|
# SQLite3
|
2015-01-06 19:01:03 -05:00
|
|
|
LOCAL_SRC_FILES += deps/sqlite/sqlite3.c
|
2014-04-21 08:10:59 -04:00
|
|
|
|
2015-04-07 06:13:12 -04:00
|
|
|
# Threading
|
|
|
|
LOCAL_SRC_FILES += \
|
2015-12-11 05:22:05 -05:00
|
|
|
jni/src/threading/event.cpp \
|
2015-08-24 11:20:53 -04:00
|
|
|
jni/src/threading/mutex.cpp \
|
|
|
|
jni/src/threading/semaphore.cpp \
|
|
|
|
jni/src/threading/thread.cpp
|
2014-04-21 08:10:59 -04:00
|
|
|
|
2015-04-07 06:13:12 -04:00
|
|
|
# JSONCPP
|
2016-08-19 14:23:30 -04:00
|
|
|
LOCAL_SRC_FILES += jni/src/jsoncpp/json/jsoncpp.cpp
|
2014-04-21 08:10:59 -04:00
|
|
|
|
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 05:54:27 -04:00
|
|
|
LOCAL_SHARED_LIBRARIES := iconv openal ogg vorbis gmp
|
|
|
|
LOCAL_STATIC_LIBRARIES := Irrlicht freetype curl ssl crypto android_native_app_glue $(PROFILER_LIBS)
|
2014-07-07 17:10:26 -04:00
|
|
|
|
|
|
|
ifeq ($(HAVE_LEVELDB), 1)
|
|
|
|
LOCAL_STATIC_LIBRARIES += LevelDB
|
|
|
|
endif
|
2014-04-21 08:10:59 -04: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)
|
2016-04-13 14:14:04 -04:00
|
|
|
|