Conditional include for files inside ANDROID_PACKAGE_SOURCE_DIR?
Unsolved
Mobile and Embedded
-
Is there a way to conditionally include files from the
ANDROID_PACKAGE_SOURCE_DIR
?
Currently I have all thejni, jar, so
files inside/android
folder which is then provided toANDROID_PACKAGE_SOURCE_DIR
, this results in all the files always being included in the project, which sometimes shouldn't be the case.I'm not fully sure how the ANDROID_PACKAGE_SOURCE_DIR works and how it affects the final
.apk
, which files are mandatory and which ones I can move out.For iOS I put the includes in separate blocks and add them with
CONFIG +=
when needed, and I'd like to do the same for android.If anyone had a similar case how did you solve it?