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. How to modify .pro or .pri file to differentiate between kits

How to modify .pro or .pri file to differentiate between kits

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
3 Posts 2 Posters 759 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.
  • DiracsbracketD Offline
    DiracsbracketD Offline
    Diracsbracket
    wrote on last edited by
    #1

    Hi,
    I am working with two kits (PC and Pi2) to test the examples on both machines.
    On the Pi2, the target.path is different than on the PC, and I would like to modify the .pro or .pri files to automatically select the correct target.path depending on the kit chosen.

    Is there a variable I can use in the project file to use with an "if" switch?
    Thanks!

    kshegunovK 1 Reply Last reply
    0
    • DiracsbracketD Diracsbracket

      Hi,
      I am working with two kits (PC and Pi2) to test the examples on both machines.
      On the Pi2, the target.path is different than on the PC, and I would like to modify the .pro or .pri files to automatically select the correct target.path depending on the kit chosen.

      Is there a variable I can use in the project file to use with an "if" switch?
      Thanks!

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by kshegunov
      #2

      @Diracsbracket

      linux {
         // things for linux
      }
      pi2-mk-spec {
        // things for target pi2-mk-spec (you should correct it to have the exact name of the mkspec though)
      }
      

      Read and abide by the Qt Code of Conduct

      DiracsbracketD 1 Reply Last reply
      2
      • kshegunovK kshegunov

        @Diracsbracket

        linux {
           // things for linux
        }
        pi2-mk-spec {
          // things for target pi2-mk-spec (you should correct it to have the exact name of the mkspec though)
        }
        
        DiracsbracketD Offline
        DiracsbracketD Offline
        Diracsbracket
        wrote on last edited by
        #3

        @kshegunov
        Thanks very much! I'll give it a try.
        Have a nice day.

        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