Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#5802 closed Patches (fixed)

bjam/qt4: Use response files to pass flags to moc

Reported by: frank.richter@… Owned by: Jürgen Hunold
Milestone: To Be Determined Component: None
Version: Boost 1.47.0 Severity: Problem
Keywords: bjam qt4 Cc:

Description

When qt4 is used with a lot of preprocessor defines and/or include directories it can happen that the moc action gets ”too long” (happens quite quickly on Windows). The attached patch works around the problem by utiliting moc's response file feature to pass preprocesser defines and include directories to moc.

Attachments (1)

bjam-qt4-moc-response-file.patch (337 bytes ) - added by frank.richter@… 11 years ago.
Patch to pass flags to moc through response files

Download all attachments as: .zip

Change History (6)

by frank.richter@…, 11 years ago

Patch to pass flags to moc through response files

comment:1 by Jürgen Hunold, 11 years ago

Owner: set to Jürgen Hunold
Status: newassigned

comment:2 by Jürgen Hunold, 11 years ago

The patch does not work on Linux, it seems response file support is only active on Windows. So I must inventsome <host-os>-based logic to select the right rule. Working on it...

comment:3 by Jürgen Hunold, 11 years ago

Resolution: fixed
Status: assignedclosed

(In [74058]) Fix #5802: Add response file support for moc.

comment:4 by Jürgen Hunold, 11 years ago

(In [74157]) Fix: Do not quote INCLUDES in moc response file. refs #5802.

comment:5 by Jürgen Hunold, 11 years ago

(In [74186]) Merge 74058,74157 from /trunk


r74058 | jhunold | 2011-08-25 20:09:59 +0200 (Do, 25 Aug 2011) | 1 line

Fix #5802: Add response file support for moc.


r74157 | jhunold | 2011-08-30 15:15:39 +0200 (Di, 30 Aug 2011) | 1 line

Fix: Do not quote INCLUDES in moc response file. refs #5802.


Note: See TracTickets for help on using tickets.