summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sdext/Extension_pdfimport.mk5
-rw-r--r--solenv/gbuild/Extension.mk10
2 files changed, 14 insertions, 1 deletions
diff --git a/sdext/Extension_pdfimport.mk b/sdext/Extension_pdfimport.mk
index 27841f558f62..c5692dec763c 100644
--- a/sdext/Extension_pdfimport.mk
+++ b/sdext/Extension_pdfimport.mk
@@ -37,8 +37,11 @@ $(eval $(call gb_Extension_add_libraries,pdfimport,\
pdfimport \
))
+$(eval $(call gb_Extension_add_executables,pdfimport,\
+ xpdfimport \
+))
+
$(eval $(call gb_Extension_add_files,pdfimport,,\
- $(call gb_Executable_get_target,xpdfimport) \
$(SRCDIR)/sdext/source/pdfimport/config/pdf_import_filter.xcu \
$(SRCDIR)/sdext/source/pdfimport/config/pdf_types.xcu \
$(SRCDIR)/sdext/source/pdfimport/dialogs/xpdfimport_err.pdf \
diff --git a/solenv/gbuild/Extension.mk b/solenv/gbuild/Extension.mk
index a959a8f34eed..86c1366d93a9 100644
--- a/solenv/gbuild/Extension.mk
+++ b/solenv/gbuild/Extension.mk
@@ -166,6 +166,16 @@ define gb_Extension_add_libraries
$(foreach lib,$(2),$(call gb_Extension_add_library,$(1),$(lib)))
endef
+# add an executable from the solver
+define gb_Extension_add_executable
+$(call gb_Extension_add_file,$(1),$(notdir $(call gb_Executable_get_target,$(2))),\
+ $(call gb_Executable_get_target,$(2)))
+endef
+
+define gb_Extension_add_executables
+$(foreach exe,$(2),$(call gb_Extension_add_executable,$(1),$(exe)))
+endef
+
# localize .properties file
# source file is copied to $(WORKDIR)
define gb_Extension_localize_properties