Do not add PDF-related files to the resources if PDF is disabled
This avoids added resources: ":/qpdf/qpdfa_metadata.xml" ":/qpdf/sRGB2014.icc" Pick-to: 6.7 Change-Id: I89a130bd281c5550f1c3dcead8336e0c3de6bc84 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>bb10
parent
15132530ee
commit
3d31b19538
|
|
@ -286,27 +286,28 @@ qt_internal_add_module(Gui
|
|||
)
|
||||
|
||||
# Resources:
|
||||
set_source_files_properties("../3rdparty/icc/sRGB2014.icc"
|
||||
PROPERTIES QT_RESOURCE_ALIAS "sRGB2014.icc"
|
||||
)
|
||||
set(qpdf_resource_files
|
||||
"../3rdparty/icc/sRGB2014.icc"
|
||||
"painting/qpdfa_metadata.xml"
|
||||
)
|
||||
if(QT_FEATURE_pdf)
|
||||
set_source_files_properties("../3rdparty/icc/sRGB2014.icc"
|
||||
PROPERTIES QT_RESOURCE_ALIAS "sRGB2014.icc"
|
||||
)
|
||||
set(qpdf_resource_files
|
||||
"../3rdparty/icc/sRGB2014.icc"
|
||||
"painting/qpdfa_metadata.xml"
|
||||
)
|
||||
qt_internal_add_resource(Gui "qpdf"
|
||||
PREFIX
|
||||
"/qpdf/"
|
||||
BASE
|
||||
"painting"
|
||||
FILES
|
||||
${qpdf_resource_files}
|
||||
)
|
||||
endif()
|
||||
|
||||
if(WIN32 OR (UNIX AND NOT APPLE))
|
||||
set_target_properties(Gui PROPERTIES UNITY_BUILD OFF) # X11 define clashes/Windows oddities.
|
||||
endif()
|
||||
|
||||
qt_internal_add_resource(Gui "qpdf"
|
||||
PREFIX
|
||||
"/qpdf/"
|
||||
BASE
|
||||
"painting"
|
||||
FILES
|
||||
${qpdf_resource_files}
|
||||
)
|
||||
|
||||
qt_internal_add_resource(Gui "gui_shaders"
|
||||
PREFIX
|
||||
"/qt-project.org/gui"
|
||||
|
|
|
|||
Loading…
Reference in New Issue