Opened 15 years ago

Closed 15 years ago

#23 closed defect (fixed)

qmake: call moc with generated response files

Reported by: Dmitry A. Kuminov 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 (3)

comment:1 by Dmitry A. Kuminov, 15 years ago

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.

comment:2 by Dmitry A. Kuminov, 15 years ago

Component: GeneralTools
Milestone: Qt EnhancedQtGui Beta

Because of the bunch of QT_NO_ defines (commenting out unimplemented stuff), we need it right now (see #26).

comment:3 by Dmitry A. Kuminov, 15 years ago

Resolution: fixed
Status: newclosed

Done in r94.

Had also to fix the tiny moc bug (r93).

Note: See TracTickets for help on using tickets.