Ticket #23 (closed defect: fixed)
qmake: call moc with generated response files
| Reported by: | dmik | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | QtGui Beta |
| Component: | Tools | Version: | 4.5.1 Beta 1 |
| Severity: | Keywords: | ||
| Cc: |
Description
In order to overcome the CMD.EXE 1024 character command line length limitation, we create response files for the compiler that contain C/C++ options, defines, include paths and object files instead of passing this all on command line.
moc.exe invocation also involves defines and include paths so the command line length limit may be easily exceeded. We need to teach qmake to generate a moc invocation statement that uses the response files we already generate for the C/C++ compiler.
Change History
Note: See
TracTickets for help on using
tickets.

Note that we currently put DEFINES to $(CFLAGS_RSP) and $(CXXFLAGS_RSP) files together with compiler options. However, moc doesn't need C/C++ flags and therefore we'll have to generate a separate response file for it, $(DEFINES_RSP), and refer to it from qmake.conf.