I’m building an OpenGL based app – writing in native C/C++.
I want to have my native files in a single location and only linked to the project ( so when I edit them in XCode/Eclipse the other project already has the updated files ). However, I can’t figure out how to get ndk-build to build files that aren’t actually in the JNI folder. Symbolic links ( in OSX ) didn’t do the trick.
I keep getting
make: *** No rule to make target `/Developer/SDKs/android-ndk-r7b/build/core/myfile.cpp', needed by `obj/local/armeabi/objs/glHelloArrow/myfile.o'. Stop.
Any ideas?
I have a similar issue with cross-platform codebase. I’ve not found any way to do this.
My workaround is to create a symlink from my source code root directory into
jni, so I can give the NDK build system paths likejni/link/common/foo.c.Just be sure that you remove the symlink if you ever need to run tools that do recursive directory traversals…