Pieter from Belgium
15th October 2009, 16:49
On Fedora 9, Qt 4.5.2's qmake seems not to like including a very large .pri file with very many SOURCES/HEADERS. After including it, stange behaviour appears. In particular the system() calls no longer get executed.
Contents of files.pri (cut):
# ==================================================
# This file has been automatically generated.
# Please do not edit.
# ==================================================
GEN_HEADERS += path_to\src\generated\headerx.h
GEN_SOURCES += path_to\src\generated\sourcex.cpp
...
[620 headers + 620 sources]
HEADERS += $$GEN_HEADERS
SOURCES += $$GEN_SOURCES
QMAKE_CLEAN += $$GEN_HEADERS
QMAKE_CLEAN += $$GEN_SOURCES
QMAKE_DISTCLEAN +=path_to\src\generated\files.pri
On Windows, and on Fedora 10 and 11, this still works.
However, I wonder whether they just have a larger limit, or if they have no (practical) limit?
Contents of files.pri (cut):
# ==================================================
# This file has been automatically generated.
# Please do not edit.
# ==================================================
GEN_HEADERS += path_to\src\generated\headerx.h
GEN_SOURCES += path_to\src\generated\sourcex.cpp
...
[620 headers + 620 sources]
HEADERS += $$GEN_HEADERS
SOURCES += $$GEN_SOURCES
QMAKE_CLEAN += $$GEN_HEADERS
QMAKE_CLEAN += $$GEN_SOURCES
QMAKE_DISTCLEAN +=path_to\src\generated\files.pri
On Windows, and on Fedora 10 and 11, this still works.
However, I wonder whether they just have a larger limit, or if they have no (practical) limit?