Results 1 to 2 of 2

Thread: Force qmake to compile nothing

  1. #1
    Join Date
    Dec 2007
    Posts
    27
    Thanks
    1
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Force qmake to compile nothing

    I wrote an extra compiler configuration to build *.mo files from *.po files in an xgettext environment. That works fine. But if I use "lib" as qmake template, qmake builds the mo files and an unwanted empty library. If I use "app" as template, qmake tries to build an application without source files which leads to an compile error. If I use "subdirs" of cause nothing will be builded even not the *.mo files.
    Is there a way to tell qmake just to use the extra compiler and do nothing else?

  2. #2
    Join Date
    Dec 2007
    Posts
    27
    Thanks
    1
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Force qmake to compile nothing

    I found a solution for this with a little trick:

    TEMPLATE=app
    TARGET=nocompile
    TARGET_EXT=.time
    win32 {
    QMAKE_LINK=touch nocompile.time && echo
    }
    else {
    QMAKE_LINK=touch nocompile.time; echo
    }

    This overwrites the linker command and creates the expected result via touch. This is nessasary, because otherwise the make step will be executed every time you hit make.

Similar Threads

  1. Compile and Install files on qmake
    By gava100 in forum Installation and Deployment
    Replies: 0
    Last Post: 25th October 2010, 19:48
  2. Replies: 4
    Last Post: 8th January 2010, 08:40
  3. How can I compile qmake alone?
    By piotr.dobrogost in forum Installation and Deployment
    Replies: 2
    Last Post: 18th July 2009, 22:42
  4. qmake post compile step
    By h0nki in forum Installation and Deployment
    Replies: 3
    Last Post: 7th June 2009, 08:49
  5. qmake: add to project but do not compile
    By jesse in forum Newbie
    Replies: 2
    Last Post: 8th November 2007, 16:03

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.