[Android Software/Hacking General [Developers Only]] osm0sis:
Damn. Windows ndk-build isn't having any of that. :p

It complains about no NDK_PROJECT_PATH if it sees no /jni subdir, and if I change your main zipalign dir to jni then the issues continue..

Chris@Homebase /cygdrive/g/android/zipalign
$ /cygdrive/g/android/android-ndk-r10e/ndk-build
jni/Application.mk:4: zlib/Android.mk: No such file or directory
jni/Application.mk:6: zopfli/Android.mk: No such file or directory
cp: cannot stat ‘jni/obj/local/armeabi/libz.a’: No such file or directory
cp: cannot stat ‘jni/obj/local/armeabi/libzopfli.a’: No such file or directory
/cygdrive/g/android/android-ndk-r10e/build/core/build-all.mk:22: *** Android NDK: Assertion failure: NDK_APPS is not defined . Stop.

Chris@Homebase /cygdrive/g/android/zipalign/jni
$ /cygdrive/g/android/android-ndk-r10e/ndk-build
/cygdrive/g/android/zipalign/jni/Application.mk:13: /Android.mk: No such file or directory
cp: cannot stat ‘/cygdrive/g/android/zipalign/jni/obj/local/armeabi/libz.a’: No such file or directory
cp: cannot stat ‘/cygdrive/g/android/zipalign/jni/obj/local/armeabi/libzopfli.a’: No such file or directory
Android NDK: WARNING:/cygdrive/g/android/zipalign/jni/Android.mk:zipalign: non-system libraries in linker flags: /cygdrive/g/android/zipalign/jni/libandroidfw.a /cygdrive/g/android/zipalign/jni/libandroidfw.a /cygdrive/g/android/zipalign/jni/libutils.a /cygdrive/g/android/zipalign/jni/libcutils.a /cygdrive/g/android/zipalign/jni/liblog.a /cygdrive/g/android/zipalign/jni/libm.a /cygdrive/g/android/zipalign/jni/zlib-lib/libz.a /cygdrive/g/android/zipalign/jni/zopfli-lib/libzopfli.a
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
Android NDK: WARNING:/cygdrive/g/android/zipalign/jni/Android.mk:zopfli: LOCAL_LDLIBS is always ignored for static libraries
Android NDK: WARNING:/cygdrive/g/android/zipalign/jni/Android.mk:zopfli: non-system libraries in linker flags: /cygdrive/g/android/zipalign/jni/libm.a
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
/cygdrive/g/android/android-ndk-r10e/build/core/setup-toolchain.mk:21: *** Android NDK: Assertion failure: NDK_APPS is not defined . Stop.

Tried in Cygwin (so your mkdir, cp, etc. commands would work) and in just straight Windows Command Prompt; same issues. :eek:

Edit: Oh yeah, I forgot! With a fresh git clone into jni (as I believe must be intended) it actually shows this:

Chris@Homebase /cygdrive/g/android/zipalign
$ git clone https://github.com/Surge1223/ndk-random jni
Cloning into 'jni'...
remote: Counting objects: 535, done.
remote: Compressing objects: 100% (435/435), done.
remote: Total 535 (delta 81), reused 528 (delta 79), pack-reused 0
Receiving objects: 100% (535/535), 2.91 MiB | 1.08 MiB/s, done.
Resolving deltas: 100% (81/81), done.
Checking connectivity... done.

Chris@Homebase /cygdrive/g/android/zipalign
$ export NDK_PROJECT_PATH=`pwd`

Chris@Homebase /cygdrive/g/android/zipalign
$ /cygdrive/g/android/android-ndk-r10e/ndk-build
Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: zipalign/Android.mk
/cygdrive/g/android/android-ndk-r10e/build/core/add-application.mk:199: *** Android NDK: Aborting... . Stop.

Removing the APP_BUILD_SCRIPT line is how it got to the rest of that output.