Skip to content
Snippets Groups Projects
  1. Aug 09, 2015
  2. Aug 07, 2015
  3. Aug 06, 2015
  4. Aug 05, 2015
  5. Aug 03, 2015
  6. Aug 02, 2015
  7. Aug 01, 2015
  8. Jul 31, 2015
    • est31's avatar
      Android: speed up rebuild, and prevent race condition fail · e29b61ec
      est31 authored
      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.
      e29b61ec
    • est31's avatar
      Fix 0.4.11 githash for android · 7217fd32
      est31 authored
      Also make only one >-redirection, sparing repetition.
      Also, use cut instead of awk, which is shorter and should be a bit faster.
      7217fd32
    • Loïc Blot's avatar
      Small SendableMediaAnnouncement cleanup · 05fe9ab2
      Loïc Blot authored
      -> Remove the SendableMediaAnnouncement struct
      -> Forge the packet directly in the m_media loop, spare one loop and the construction of a vector
      -> Use preincrement to spare iterator copies
      05fe9ab2
  9. Jul 29, 2015
    • est31's avatar
      Android: fix horrible libiconv build · eb3aac20
      est31 authored
      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.
      eb3aac20
Loading