Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[Solved] qmake: compiling Pro*C source files (Windows)



  • Hi all,
    I need to add specific compiler for a Pro*C file (yes, just one) in my project. I read the "Customizing Makefile Output" part in the qmake documentation, so I did:
    @
    TEMPLATE = app

    Input

    HEADERS += dynamicsql.h
    SOURCES += dynamicsql.pc

    proc.output = ${QMAKE_FILE_BASE}.c
    proc.command = echo ${QMAKE_FILE_OUT}
    proc.depend_command = echo ${QMAKE_FILE_BASE}
    proc.input = SOURCES
    QMAKE_EXTRA_COMPILERS += proc
    @
    Then I run qmake: 'qmake -tp vc'
    My .proc file does not have any compiler rule, do I've check the makefile generated with a basic 'qmake'. I don't see anything about my build rule.
    What may be wrong?
    Thank you for your help!



  • hum, hem, my bad, just needed to add an 's' to 'proc.command' (so it's proc.commands)


Log in to reply