Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. .pro DEFINES not updating when changed
Forum Updated to NodeBB v4.3 + New Features

.pro DEFINES not updating when changed

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 271 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.
  • P Offline
    P Offline
    PennGar
    wrote on last edited by
    #1

    Ive set up the following code to show on screen which phase of release the program is on during development and release...

    win32|linux-g++|linux-g++-64 {
        DEFINES += BUILD_DESKTOP
        DEFINES += DEVELOPMENT_BUILD
    
        message(BUILD_DESKTOP)
    } else {
        DEFINES += BUILD_DEVICE
        DEFINES += DEVELOPMENT_BUILD
        #DEFINES += UI_TEST_BUILD
        #DEFINES += ALPHA_BUILD
        #DEFINES += BETA_BUILD
        #DEFINES += RTM_BUILD
    
        message(BUILD_DEVICE)
    }
    
    

    Build device always changes to the correct version, however if i change from Development build to alpha build qt will not change the DEFINE. i have to delete the entire build folder and totally rebuild to get this to happen.
    QMAKE is running on every build, cleaning all projects has no effect either.

    What on earth am i missing?!!!

    jsulmJ 1 Reply Last reply
    0
    • P PennGar

      Ive set up the following code to show on screen which phase of release the program is on during development and release...

      win32|linux-g++|linux-g++-64 {
          DEFINES += BUILD_DESKTOP
          DEFINES += DEVELOPMENT_BUILD
      
          message(BUILD_DESKTOP)
      } else {
          DEFINES += BUILD_DEVICE
          DEFINES += DEVELOPMENT_BUILD
          #DEFINES += UI_TEST_BUILD
          #DEFINES += ALPHA_BUILD
          #DEFINES += BETA_BUILD
          #DEFINES += RTM_BUILD
      
          message(BUILD_DEVICE)
      }
      
      

      Build device always changes to the correct version, however if i change from Development build to alpha build qt will not change the DEFINE. i have to delete the entire build folder and totally rebuild to get this to happen.
      QMAKE is running on every build, cleaning all projects has no effect either.

      What on earth am i missing?!!!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @PennGar said in .pro DEFINES not updating when changed:

      i have to delete the entire build folder and totally rebuild

      This is actually normal. Else changed DEFINES will not have any affect.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3

      • Login

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