summaryrefslogtreecommitdiff
path: root/vcl/CppunitTest_vcl_pdfexport.mk
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-05-04 09:04:04 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-05-04 10:49:31 +0200
commite9c01db5268a16d657d20f07a083583c2d2b011c (patch)
treee8d36d8f63a49919ae1505555b344c271de797c0 /vcl/CppunitTest_vcl_pdfexport.mk
parent9eae606ebc1ebd20dbc0aeb44e1f760e62afcdbe (diff)
CppunitTest_vcl_pdfexport: replace std::search() with pdfium calls
The old code would also pass if the page has e.g. a literal "re f*" string (since the tokenizer doesn't parse streams), the new one uses a proper parser. Change-Id: Iabb242b420c14f619f716f5ba47a1165a942f88a Reviewed-on: https://gerrit.libreoffice.org/37223 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'vcl/CppunitTest_vcl_pdfexport.mk')
-rw-r--r--vcl/CppunitTest_vcl_pdfexport.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/CppunitTest_vcl_pdfexport.mk b/vcl/CppunitTest_vcl_pdfexport.mk
index fbc95d868d57..7f87335fc049 100644
--- a/vcl/CppunitTest_vcl_pdfexport.mk
+++ b/vcl/CppunitTest_vcl_pdfexport.mk
@@ -28,7 +28,10 @@ $(eval $(call gb_CppunitTest_use_libraries,vcl_pdfexport, \
xmlsecurity \
))
-$(eval $(call gb_CppunitTest_use_external,vcl_pdfexport,boost_headers))
+$(eval $(call gb_CppunitTest_use_externals,vcl_pdfexport, \
+ boost_headers \
+ $(if $(filter PDFIUM,$(BUILD_TYPE)),pdfium) \
+))
$(eval $(call gb_CppunitTest_use_sdk_api,vcl_pdfexport))