Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Passing extra command line option -buildfile into androiddeploqt
Nelson_Piquet last edited by Nelson_Piquet
I have a QtApp for android which I build command line using the following command. It builds using ant. All great. Builds fine. Runs fine. Following the core command which creates & signs the apk for me.
ANT_OPTIONS=" -ant" Path/To/androiddeployqt --sign /Path/to/MyKey.keystore MyAlias --storepass MyPassword --output android --verbose --input /path/to/android-libMyQtApp.so-deployment-settings.json $ANT_OPTIONS
Next, I need to increment the versionCode of my app, for which I need to create my own build.xml & make ant pick my custom build.xml. I read through the following ant official page which describes usage of -buildfile & states that you can mention the directory containing your custom build.xml.
As I want to use my custom build.xml which I created in my project directory, I made the following change in the command.
ANT_OPTIONS=" -ant -buildfile '/Directory/containing/my/build.xml'" Path/To/androiddeployqt --sign /Pathto/MyKey.keystore MyAlias --storepass MyPassword --output android --verbose --input /path/to/android-libMyQtApp.so-deployment-settings.json $ANT_OPTIONS
But ant still picks up the default generated build.xml. What is wrong in my ANT_OPTIONS ? Does androiddeployqt dis-allow me from passing extra ant command line options ? I think this is not the case. I might be just missing the correct syntax here. Please suggest.