Skip to content

Commit

Permalink
make generate
Browse files Browse the repository at this point in the history
This adds 'make generate' which correctly handles rebuilding of the
resources if they have been modified before generating the generated_cpp
directory.  This fixes the problem where editing typesystem_*.xml then
running pythonqt_generator does nothing; the typesystem_*.xml files are
compiled into the generator and 'make' must be used to rebuild the
generator before the changes can be seen.

Signed-off-by: John Bowler <[email protected]>
  • Loading branch information
jbowler committed Oct 9, 2023
1 parent 6b70205 commit 1e6b4f8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion generator/generator.pro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ HEADERS += \
shellimplgenerator.h \
shellheadergenerator.h \
setupgenerator.h

SOURCES += \
generatorsetqtscript.cpp \
metaqtscriptbuilder.cpp \
Expand All @@ -22,3 +22,9 @@ SOURCES += \
shellimplgenerator.cpp \
shellheadergenerator.cpp \
setupgenerator.cpp

#The generate target is NOT built automatically!
QMAKE_EXTRA_TARGETS += generate

generate.depends = $$TARGET
generate.commands = ./$$TARGET --qt-headers="$$[QT_INSTALL_HEADERS]" --core-error --output-directory="."

0 comments on commit 1e6b4f8

Please sign in to comment.