I have an Android/NDK
application and a build script which uses gradlew.bat
to automate build/install.
The build.gradle
uses CMakeLists.txt
and GLOB_RECURSE
internally in order to build the C++ files. However, if I add a new .cpp
file to my C++ source code directory, I have to manually start Android Studio and run "Build/Refresh Linked C++ Projects"
, otherwise the buildscript will not pick up the added .cpp
files and I get linker errors.
I would like to have the buildscript to perform the "Refresh Linked C++ Projects
" action, but I cannot find a Gradle task which performs this.
Does anyone know how I can perform this action, with or without Gradle, from command line?