diff options
author | Michal Klocek <michal.klocek@qt.io> | 2020-05-22 18:17:51 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2020-06-03 16:57:26 +0200 |
commit | 7906b030dc632557f6a2e8cbb471ebf38ef2121c (patch) | |
tree | df5b7bc59ec3e5a6d0e783ce9352508bf5380338 /src/pdf | |
parent | 943d8fea1a5dc5769cd35e18907d970bf9ef30d5 (diff) |
Split errorChecks for webengine and pdf
Separate error checks, so qtpdf can have own dependencies.
Change-Id: I9e538b875fe67448497f10dcd45c83782d98da2d
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/pdf')
-rw-r--r-- | src/pdf/pdf.pro | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/pdf/pdf.pro b/src/pdf/pdf.pro index c5513ce93..e8cc031d5 100644 --- a/src/pdf/pdf.pro +++ b/src/pdf/pdf.pro @@ -1,3 +1,5 @@ +include($$QTWEBENGINE_OUT_ROOT/src/buildtools/qtbuildtools-config.pri) +QT_FOR_CONFIG += buildtools-private TEMPLATE = subdirs pdfcore.file = pdfcore.pro pdfcore_generator.file = pdfcore_generator.pro @@ -7,10 +9,17 @@ gn_run.depends = pdfcore_generator pdfcore.depends = gn_run quick.depends = pdfcore -SUBDIRS += \ - pdfcore_generator \ - gn_run \ - pdfcore \ - quick - +!qtConfig(webengine-qtpdf-support):qtConfig(build-qtpdf):!qtwebengine_makeCheckPdfError():!isEmpty(skipBuildReason):!build_pass { + errorbuild.commands = @echo $$shell_quote(QtPdf will not be built. $${skipBuildReason}) + errorbuild.CONFIG = phony + QMAKE_EXTRA_TARGETS += errorbuild + first.depends += errorbuild + QMAKE_EXTRA_TARGETS += first +} else { + SUBDIRS += \ + pdfcore_generator \ + gn_run \ + pdfcore \ + quick +} |