aboutsummaryrefslogtreecommitdiff
path: root/build/android
AgeCommit message (Collapse)Author
2016-12-21Android: update curl and libgmpest31
2016-12-09Fix sqlite databases being read-only on 64bit Android by patching sqlite (#4871)rubenwardy
Fixes #4121
2016-12-07Android: fix build and update depsest31
2016-10-28Add missing remoteplayer.cpp to Android buildNer'zhul
this should fix #4683
2016-08-19Fix for failure to find jsoncpp in android build (#4456)Rogier-5
Commit 4503b5 did not update the android build script.
2016-07-28Increase android versionCode (#4350)Ner'zhul
This little update is due to a packaging problem when uploading on play store. They don't permit to re upload an APK with same version code. This case was a fail on openssl packaged version which was old and rejected by Google but they don't remove the APK then i should increase the version code to permit having it on play store
2016-07-03Add MapSettingsManager and new mapgen setting script API functionskwolekr
This commit refactors the majority of the Mapgen settings system. - MapgenParams is now owned by MapSettingsManager, itself a part of ServerMap, instead of the EmergeManager. - New Script API functions added: core.get_mapgen_setting core.get_mapgen_setting_noiseparams, core.set_mapgen_setting, and core.set_mapgen_setting_noiseparams. - minetest.get/set_mapgen_params are deprecated by the above new functions. - It is now possible to view and modify any arbitrary mapgen setting from a mod, rather than the base MapgenParams structure. - MapgenSpecificParams has been removed.
2016-06-11Fix android buildest31
Thanks to @Wayward1 for reporting the bug. Fixes #4212.
2016-05-26Tell irrlicht if we handle a key or not.est31
We can remove the function in MtNativeActivity now as it serves precisely that purpose: to tell irrlicht that we handled the esc key. TODO for later: * Perhaps try to find a more performant container than KeyList
2016-05-16Android: enable parallelism for main target tooest31
This adds to the changes that commit 98d16e0d9a945f5f48462c05f26ae4bde2db5731 "Android: Tell make about sub-makes to speed up build" did, and enables parallel builds for minetest itself as well.
2016-05-15Bump version to 0.4.140.4.14sfan5
2016-05-14Fix android build by fixing patch line endingsest31
2016-05-14Fix locked hardware buttons on AndroidMaksim Gamarnik
Fixes #2122 Fixes #1454 Addendum (est31) According from its docs in android_native_app_glue.h (from the NDK), the onInputEvent should "Return 1 if you have handled the event, 0 for any default dispatching". Before, we always returned 1, meaning we blocked all hardware keys to be given to the OS. This broke the volume keys and has caused #2122 and #1454. Although it bases on lots of guesswork, it can probably safely be said that CGUIEnvironment::postEventFromUser returns true if the event was handled, and false if not. Therefore, set the status variable depending on what postEventFromUser returned.
2016-05-12Android: download deps using httpsest31
Its more secure, and some pages even redirect to the https version.
2016-05-12Android: update openssl to 1.0.2hest31
2016-04-28Upgrade Android build to Gradle build systemShadowNinja
The old Ant build system has been deprecated for a while and new development is focused on Gradle. I also removed a hardcoded string that lint caught and moved the patch files to a subdirectory. I left the JNI files in the root directory.
2016-04-26Android: Update dependencies, GMP was required as a dependencyMaksim Gamarnik
2016-03-07Move AreaStore to utilShadowNinja
2016-03-05Update Android dependencies, -O3 optimization, remove old ARMv5 configMaksim Gamarnik
* Update OpenSSL (thanks @sapier, i use his patch!), Curl and SQLite3. * Remove old arm config. Almost all phones that use ARMv5 have 1 core and 256-512 RAM, it's about 2-5 FPS. * Do -O3 optimization for libs and remove -fexpensive-optimizations for Minetest (-O3 includes this! Read gcc docs). * OpenSSL fix - thanks @sapier, again.
2016-02-23Fix android buildest31
Android had a linker error since commit: 31e0667a4a53a238d0321194b57b083bd74c0a5b "Add Lua interface to HTTPFetchRequest" Fixes #3766. Thanks to @MoNTE48 for reporting the bug.
2016-02-22Android: hardcode leveldb revisionest31
Newest leveldb commit breaks build. With no fix in sight, there is no other way than to fall back to the last working leveldb revision, and hardcode it. Workaround for upstream bug https://github.com/google/leveldb/issues/340
2016-01-23Fix compilation warning if compiling for android with c++11est31
2016-01-14Add Valleys mapgen.Duane Robertson
2015-12-23Android: shorten initial progress bar text way more simpleSapier
2015-12-23Android: Tell make about sub-makes to speed up buildest31
Before, sub-makes called by make were called without make knowing they were sub-makes. This however led make's jobserver not do its tasks, and the build process ended up with inefficient parralelisation. This commit fixes this by applying the two ways the make manual tells about: putting + to the start of the line (used when ndk-build is invoked), and exchanging "make" with "$(MAKE)". Before, make complained with messages like: make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. This complaint can now only been seen for openssl. openssl has issues if make gets exchanged with $(MAKE): if exchanged, above error message is multiplied for various subdirs of the openssl source tree. On a 4 core box, "make -j 4" build time from "make clean_all" cleaned source tree could be improved from 15:34 minutes to 10:45 minutes. This means a speedup of 45%.
2015-12-20Android: Fix extra files being copied to the APKShadowNinja
dcb91cf0c0c9a20622feeb4e5e8104ffbc9fa8ec hacked around the biggest issue this caused, but wasted a lot of CPU time and disk space It also still included a lot of other unwanted files. This removes all of `doc/` except the license, and also removes the server list.
2015-12-17Android: Remove unused build target curl_binarySapier
2015-12-17Android: Don't put html docs to apkSapier
2015-12-17Android: Remove non freetype fonts from apkSapier
2015-12-11Fix android buildest31
Fix android build since commit 696148e29889b2923f926b27f76979454676506d "Fix Event implementation" by @ShadowNinja. Fixes #3444. Thanks @kwolekr for pointing out the fix.
2015-11-16Android: hardcode irrlicht revision, update other dependenciesest31
Recent irrlicht revisions break the build, hardcode the revision to a working one until upstream publishes a working version. See issue #3366 for a discussion about this. Also update dependencies to current versions.
2015-11-11Mapgen: Add flat mapgen in hidden formparamat
2015-10-24Android: statically load iconv libraryest31
Fixes #3291 Thanks to @arpruss for reporting the bug, and suggesting the fix. Also, remove trailing whitespaces.
2015-10-06Android/Mapgen: Add fractal mapgen file to android makefilesparamat
2015-09-08Update leveldb git urlest31
Google code was shut down, project moved to github.
2015-08-24Add setting for mods to copy to Android appShadowNinja
2015-08-24Fix Android build of threading sourcesShadowNinja
2015-08-23Clean up threadingShadowNinja
* Rename everything. * Strip J prefix. * Change UpperCamelCase functions to lowerCamelCase. * Remove global (!) semaphore count mutex on OSX. * Remove semaphore count getter (unused, unsafe, depended on internal API functions on Windows, and used a hack on OSX). * Add `Atomic<type>`. * Make `Thread` handle thread names. * Add support for C++11 multi-threading. * Combine pthread and win32 sources. * Remove `ThreadStarted` (unused, unneeded). * Move some includes from the headers to the sources. * Move all of `Event` into its header (allows inlining with no new includes). * Make `Event` use `Semaphore` (except on Windows). * Move some porting functions into `Thread`. * Integrate logging with `Thread`. * Add threading test.
2015-08-21Fix wrong android versionNameest31
Before, android versionName was set to "...13", which made the f-droid build fail.
2015-08-20Bump version to 0.4.130.4.13est31
2015-08-02Android: fix sound issue, and gitignoreest31
Previously, sound failed due to errors with hardfp abi build instructions. As the problem couldn't be found, the softfp compatible abi was chosen instead. This move will cause a small performance overhead, but due to the abi being armeabi-v7a, the internal calculations will still be done using the FPU. We also fix some issues with ABI information passing. However, the fixes aren't sufficient to get sound working. The patch also fixes an issue with the gitignore file.
2015-08-01Android: Add githash header to spare rebuilds after new commitsest31
Before, android_version.h got changed at every new commit. Now, we only change it with new minetest releases. Analogous to how cmake does it, we add an android_version_githash.h file that communicates the git hash to C++ code. Also, unify VERS_MAJOR, VERS_MINOR and VERS_PATCH variable calculation inside the whole makefile.
2015-07-31Android: speed up rebuild, and prevent race condition failest31
Speeding up rebuild: Before, we've written the android_version.h file at every rebuild. As it thought the file's content has changed, make has rebuilt files in the source tree that depended on that header file during rebuild, causing lots of files being rebuilt without there being a reason. The reasoning of make can be observed by passing -d and V=1 params to the ndk-build command. You then got logging entries like: Prerequisite `jni/src/android_version.h' is newer than target `obj/local/armeabi-v7a-hard/objs-debug/minetest/jni/src/areastore.o'. Preventing race condition build fail: Before, there was a race condition, where, if the prep_srcdir target was executed in parallel with the $(ROOT)/jni/src/android_version.h one, it could happen that the jni/src directory was nonexistent, and we were trying to write into a file inside. This resulted in a build failue: /bin/sh: 1: cannot create [...]/jni/src/android_version.h: Directory nonexistent Additionally, we now don't remove the link to src/ needlessly anymore. Keeping this wouldn't have affected the rebuild, but this way its more proper.
2015-07-31Fix 0.4.11 githash for androidest31
Also make only one >-redirection, sparing repetition. Also, use cut instead of awk, which is shorter and should be a bit faster.
2015-07-29Android: fix horrible libiconv buildest31
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-29Android: Fix minor makefile bugsest31
Fix commenting happening thanks to missing quotes and dereference variable the right way, to get rid of a compile error.
2015-07-27Add AreaStore data structureest31
2015-06-27Add minimap featureRealBadAngel
2015-06-20Android: use loop inside makefile to spare repetitionest31
2015-06-13Add utf-8 conversion utilities and re-add intlGUIEditBoxest31