Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Passing extra command line option -buildfile into androiddeploqt
Forum Updated to NodeBB v4.3 + New Features

Passing extra command line option -buildfile into androiddeploqt

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 511 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nelson_Piquet
    wrote on last edited by Nelson_Piquet
    #1

    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.

    https://ant.apache.org/manual/running.html

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved