1

In my andoid.mk file I have to copy and paste my sources inside jni folder and do something like this:

FILE_LIST := $(wildcard $(LOCAL_PATH)/myfolder/*.cpp)

How can I make it point to a path that is outside my project? Something like this:

FILE_LIST := $(wildcard /home/user/myfolder/folder/*.cpp)

Or make a variable and do it like this?

MY_VARIABLE = /home/user/mypath
FILE_LIST := $(wildcard $(MY_VARIABLE)/*.cpp)
tambalolo
  • 1,035
  • 3
  • 14
  • 30
  • Have a look at this issue. [http://stackoverflow.com/questions/8980284/android-mk-include-all-cpp-files][1] [1]: http://stackoverflow.com/questions/8980284/android-mk-include-all-cpp-files – Yasir Malik Mar 08 '13 at 08:53
  • That should be fine... the files don't have to be in the jni folder. – krsteeve Nov 15 '13 at 18:57
  • http://stackoverflow.com/questions/31572821/ndk-how-to-reference-native-sources-outside-android-project/31573603#31573603 – Engineer Jul 22 '15 at 20:48

0 Answers0