Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator project file how to detect current android abi compilation
Forum Updated to NodeBB v4.3 + New Features

Qt Creator project file how to detect current android abi compilation

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
4 Posts 2 Posters 1.3k 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.
  • FalsinSoftF Offline
    FalsinSoftF Offline
    FalsinSoft
    wrote on last edited by
    #1

    Hi all

    Using new Qt 5.14 there is the option to compile the same project for the four platform (x86, x86_64,armeabi7, armeabi8) in a single copilation and include all inside abb file. Cause I need to costumize only one makefile for a specific platform I'm looking for a way to know, inside the project file, the current platform generation. Something like:

    if(ANDROID_ABI == "x86") {
    // do something
    }
    

    However I dind't find a variable informing me the current process is for generate x86, x86_64 and so on makefile. There is the ANDROID_ABIS containing the list of all selected platform but how to know which platform is currently on elaboration?
    Thank you

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You can get the current arch from QT_ARCH like this:

      equals(QT_ARCH, "armeabi-v7a") {
      }
      
      equals(QT_ARCH, "arm64-v8a") {
      }
      
      equals(QT_ARCH, "x86") {
      }
      
      equals(QT_ARCH, "x86_64") {
      }
      

      (Z(:^

      1 Reply Last reply
      2
      • FalsinSoftF Offline
        FalsinSoftF Offline
        FalsinSoft
        wrote on last edited by
        #3

        Than you, it's exactly what I needed!

        However why this variable is not reported in the official documentation here?

        https://doc.qt.io/qt-5/qmake-variable-reference.html

        Is there another updtated documentation around?

        sierdzioS 1 Reply Last reply
        0
        • FalsinSoftF FalsinSoft

          Than you, it's exactly what I needed!

          However why this variable is not reported in the official documentation here?

          https://doc.qt.io/qt-5/qmake-variable-reference.html

          Is there another updtated documentation around?

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          @FalsinSoft said in Qt Creator project file how to detect current android abi compilation:

          Than you, it's exactly what I needed!

          However why this variable is not reported in the official documentation here?

          https://doc.qt.io/qt-5/qmake-variable-reference.html

          Is there another updtated documentation around?

          Good question, I don't know. It should probably be added to the documentation. Please open a feature request on Qt bugtracker for it.

          (Z(:^

          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