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

CMake - Android Manifest - INSERT_APP_NAME missed

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.9.0 FF
    • 6.6
    • Build System: CMake
    • None
    • macOS
      Android13 device

    • Android
    • c768ec64b (dev)
    • 2024wk36s2FOQtforAndroid

      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

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

            assam Assam Boudjelthia
            ekkescorner Ekkehard
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes