Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-121825

CMake - Android Manifest - INSERT_APP_NAME missed

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6
    • Build System: CMake
    • None
    • macOS
      Android13 device

    • Android

    Description

      In the Manifest: 

      android:versionName="-- %%INSERT_VERSION_NAME%% --">
      android:versionCode="-- %%INSERT_VERSION_CODE%% --"

      I can easy set the value from CMakeLists.txt: 

      set(QT_ANDROID_VERSION_NAME ${MY_APP_VERSION})
      set(QT_ANDROID_VERSION_CODE ${MY_APP_CODE})
      set_target_properties(${MY_APP}
          PROPERTIES
          QT_ANDROID_VERSION_NAME ${QT_ANDROID_VERSION_NAME}
          QT_ANDROID_VERSION_CODE ${QT_ANDROID_VERSION_CODE}
      )

      I also would like to set 

      android:label="-- %%INSERT_APP_NAME%% --"

      but didn't found a way
      tried QT_ANDROID_APP_NAME or ANDROID_APP_NAME or APP_NAME

      Would be great to be able to set the labels from CMake

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtbuildsystem Qt Build System Team
            ekkescorner Ekkehard
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes