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. Automatically add Version/App Name/Activity/etc from *.pro file to AndroidManufest.xml. How?
Forum Updated to NodeBB v4.3 + New Features

Automatically add Version/App Name/Activity/etc from *.pro file to AndroidManufest.xml. How?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 297 Views 1 Watching
  • 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.
  • B Offline
    B Offline
    bogong
    wrote on last edited by
    #1

    Hello all!
    Is there any way to add automatically values that will be setting up into AndroidManifest.xml at time of building? Something like for Info.plist for iOS, something like this:

    QMAKE_INFO_PLIST = $$PWD/platforms/ios/phone/Info.plist
    plistupdate.commands = /usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $$VERSION" $$QMAKE_INFO_PLIST
    plistupdate.commands = /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $$VERSION" $$QMAKE_INFO_PLIST
    QMAKE_EXTRA_TARGETS += plistupdate
    PRE_TARGETDEPS += plistupdate
    
    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You can use QMAKE_SUBSTITUTES for that. An example of how to use it https://wiki.qt.io/QMake-top-level-srcdir-and-builddir#Solution

      (Z(:^

      1 Reply Last reply
      2

      • Login

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