I'm using the Native Development Kit (NDK) in a project of mine, and I'm trying to automate the whole app build procedure with Python.
Whenever ndk-build
is called, it copies the prebuilt shared libraries to libs/<abi>/
, even if there's no changes in them or they already exist there. This causes problem when I call ant
later on, as it detects changed files (the library timestamps are newer) and so rebuilds the apk without any need.
Is there a way to change the ndk-build
behaviour so it checks for existing libraries in the libs/<abi>/
folder and if they need updating or some are missing, it will call ndk-build
, otherwise, just proceed to the next build step?
I've tried using filecmp
in Python, but as the timestamps are different between the prebuilt shared libraries and the installed ones, it doesn't work.
ndk-build
to generate the library that the app uses. My problem lies with thelibs/<abi>
folder being refreshed every timendk-build
is called.