2012-12-11 21:08:15 +00:00
|
|
|
#
|
|
|
|
# W A R N I N G
|
|
|
|
# -------------
|
|
|
|
#
|
|
|
|
# This file is not part of the Qt API. It exists purely as an
|
|
|
|
# implementation detail. It may change from version to version
|
|
|
|
# without notice, or even be removed.
|
|
|
|
#
|
|
|
|
# We mean it.
|
|
|
|
#
|
|
|
|
|
2012-10-23 20:15:43 +00:00
|
|
|
load(qt_build_paths)
|
2012-07-10 19:35:39 +00:00
|
|
|
|
2012-09-18 16:19:29 +00:00
|
|
|
!build_pass {
|
|
|
|
qtPrepareTool(QMAKE_SYNCQT, syncqt)
|
2013-03-05 10:38:24 +00:00
|
|
|
minimal_syncqt {
|
|
|
|
QMAKE_SYNCQT += -minimal $$QMAKE_SYNCQT_OPTIONS
|
|
|
|
} else {
|
|
|
|
contains(QT_CONFIG, private_tests): \ # -developer-build
|
|
|
|
QMAKE_SYNCQT += -check-includes
|
2013-03-21 07:18:12 +00:00
|
|
|
QMAKE_SYNCQT += -module $$MODULE_INCNAME -version $$VERSION
|
2013-03-05 10:38:24 +00:00
|
|
|
}
|
|
|
|
QMAKE_SYNCQT += \
|
|
|
|
-outdir $$MODULE_BASE_OUTDIR $$MODULE_BASE_DIR
|
2012-09-18 16:19:29 +00:00
|
|
|
!silent: message($$QMAKE_SYNCQT)
|
|
|
|
system($$QMAKE_SYNCQT)|error("Failed to run: $$QMAKE_SYNCQT")
|
|
|
|
}
|
|
|
|
|
2013-03-05 10:38:24 +00:00
|
|
|
minimal_syncqt: return()
|
|
|
|
|
2012-04-25 09:41:09 +00:00
|
|
|
#load up the headers info
|
2012-11-29 21:22:42 +00:00
|
|
|
include($$MODULE_BASE_OUTDIR/include/$$MODULE_INCNAME/headers.pri, "", true)
|
2012-04-25 09:41:09 +00:00
|
|
|
|
2012-04-13 14:17:12 +00:00
|
|
|
defineTest(shouldMasterInclude) {
|
|
|
|
bn = $$basename(1)
|
|
|
|
contains(bn, .*_.*):return(false)
|
|
|
|
contains(bn, ^qconfig.*):return(false)
|
|
|
|
lines = $$cat($$_PRO_FILE_PWD_/$$1, lines)
|
|
|
|
contains(lines, $${LITERAL_HASH}pragma qt_no_master_include):return(false)
|
|
|
|
return(true)
|
|
|
|
}
|
|
|
|
|
2012-11-30 14:32:36 +00:00
|
|
|
autogen_warning = \
|
|
|
|
"/* This file was generated by qmake with the info from <root>/$$relative_path($$_PRO_FILE_, $$MODULE_BASE_DIR). */"
|
|
|
|
|
2012-04-13 14:17:12 +00:00
|
|
|
# Create a module master header
|
2012-11-29 21:22:42 +00:00
|
|
|
MODULE_MASTER_HEADER = $$MODULE_BASE_OUTDIR/include/$$MODULE_INCNAME/$$MODULE_INCNAME
|
2012-04-13 14:17:12 +00:00
|
|
|
!build_pass {
|
|
|
|
MODULE_MASTER_HEADER_CONT = \
|
2012-11-30 14:32:36 +00:00
|
|
|
$$autogen_warning \
|
2012-04-13 14:17:12 +00:00
|
|
|
"$${LITERAL_HASH}ifndef QT_$${ucmodule}_MODULE_H" \
|
|
|
|
"$${LITERAL_HASH}define QT_$${ucmodule}_MODULE_H"
|
|
|
|
for(dep, MODULE_DEPENDS) {
|
|
|
|
depname = $$eval(QT.$${dep}.name)
|
|
|
|
MODULE_MASTER_HEADER_CONT += "$${LITERAL_HASH}include <$$depname/$$depname>"
|
|
|
|
}
|
|
|
|
for(hdr, SYNCQT.HEADER_FILES): \
|
|
|
|
shouldMasterInclude($$hdr): \
|
|
|
|
MODULE_MASTER_HEADER_CONT += "$${LITERAL_HASH}include \"$$replace(hdr, .*/, )\""
|
|
|
|
MODULE_MASTER_HEADER_CONT += "$${LITERAL_HASH}endif"
|
|
|
|
write_file($$MODULE_MASTER_HEADER, MODULE_MASTER_HEADER_CONT)|error("Aborting.")
|
|
|
|
}
|
|
|
|
SYNCQT.HEADER_FILES += $$MODULE_MASTER_HEADER
|
|
|
|
|
2012-04-25 09:41:09 +00:00
|
|
|
CONFIG += qt_install_headers
|