Results 1 to 2 of 2

Thread: how to add extra_compiler works like ui compiler?

  1. #1
    Join Date
    Oct 2011
    Posts
    5
    Thanks
    2

    Default how to add extra_compiler works like ui compiler?

    I want to preprocess some slice files with the preprocess compiler slice2cpp,it will compile slice file and generate cpp and header file.
    I add the extra compiler as following , it works,but it only add cpp file dependency to makefile,while I want add both cpp and header file ,just like what qmake process UI file.
    anyone can help me ?
    Qt Code:
    1. slice_cpp.output = ${QMAKE_FILE_BASE}.cpp
    2. slice_cpp.input = SLICE_FILES
    3. slice_cpp.commands=slice2cpp --underscore ${QMAKE_FILE_IN} -I ../slice -I $$ICE_SLICE_PATH
    4. slice_cpp.name= "ice preprocesor"
    5. slice_cpp.variable_out= SOURCES
    6. QMAKE_EXTRA_COMPILERS += slice_cpp
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to add extra_compiler works like ui compiler?

    Check the yacc.prf file.
    Current Qt projects : QCodeEdit, RotiDeCode

Similar Threads

  1. Replies: 3
    Last Post: 6th July 2011, 06:59
  2. Qt Creator Parse compiler errors of a non gcc compiler
    By kiozen in forum Qt Tools
    Replies: 4
    Last Post: 4th July 2011, 01:34
  3. qt compiler
    By mrholsten in forum Newbie
    Replies: 5
    Last Post: 6th April 2011, 17:46
  4. msvc Compiler or mingw compiler
    By Ashutosh2k1 in forum Qt Programming
    Replies: 3
    Last Post: 14th February 2011, 08:33
  5. Strange compiler behaviour (compiler passes wrong argument)
    By SasaVilic in forum General Programming
    Replies: 2
    Last Post: 2nd November 2010, 11:36

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
  •  
Qt is a trademark of The Qt Company.