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. QMake commands and macros
Forum Updated to NodeBB v4.3 + New Features

QMake commands and macros

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 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.
  • S Offline
    S Offline
    Suths
    wrote on 22 Nov 2012, 15:48 last edited by
    #1

    Hi everyone,

    I'm trying to get qmake to add a command into the make files it creates (for doing some static analysis), However I’m having a couple of problems the main one being that lists I define in the .pro file are not duplicated in the make files outputted. Take this example:

    @LIST = ($$INCLUDEPATH)
    LINTINCLUDES = $$join(LIST, " -I", -I)

    MYCommand.depends = $(SOURCES)
    MyCommand.commands = staticCommand $(LIST ) $ (SOURCES)

    QMAKE_EXTRA_TARGETS += MyCommand@

    Is there a way to make these lists / macros become defined in the make files qmake produces?
    *Note i'm aware I could get the include paths by using INCPATH macro but there are other lists that i need to include.

    Many Thanks

    1 Reply Last reply
    0

    1/1

    22 Nov 2012, 15:48

    • Login

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