diff options
-rw-r--r-- | Repository.mk | 2 | ||||
-rw-r--r-- | sd/CppunitTest_sd_import_tests.mk | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Repository.mk b/Repository.mk index f9a5208e9c01..3e3fa85173fe 100644 --- a/Repository.mk +++ b/Repository.mk @@ -468,9 +468,11 @@ $(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,postgresqlsdbc, \ postgresql-sdbc-impl) \ )) +ifneq ($(ENABLE_PDFIMPORT),) $(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,pdfimport, \ pdfimport \ )) +endif $(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,python, \ pythonloader \ diff --git a/sd/CppunitTest_sd_import_tests.mk b/sd/CppunitTest_sd_import_tests.mk index b1d20cce2cae..238f13319b46 100644 --- a/sd/CppunitTest_sd_import_tests.mk +++ b/sd/CppunitTest_sd_import_tests.mk @@ -89,7 +89,7 @@ $(eval $(call gb_CppunitTest_use_components,sd_import_tests,\ sd/util/sd \ sd/util/sdfilt \ sd/util/sdd \ - sdext/source/pdfimport/pdfimport \ + $(if $(ENABLE_PDFIMPORT),sdext/source/pdfimport/pdfimport) \ sfx2/util/sfx \ sot/util/sot \ svl/source/fsstor/fsstorage \ @@ -114,7 +114,9 @@ $(eval $(call gb_CppunitTest_use_packages,sd_import_tests,\ oox_customshapes \ )) +ifneq ($(ENABLE_PDFIMPORT),) $(eval $(call gb_CppunitTest_use_executable,sd_import_tests,xpdfimport)) +endif $(call gb_CppunitTest_get_target,sd_import_tests) : $(call gb_AllLangResTarget_get_target,sd) |