Kaydet (Commit) d01478a8 authored tarafından David Tardon's avatar David Tardon

install Pyuno using Package

Change-Id: Iabc029091096c82ff2dc79f0fad8f2bf9ee89514
üst 47f91508
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
$(eval $(call gb_Pyuno_Pyuno,passive_python,$(SRCDIR)/desktop/test/deployment/passive)) $(eval $(call gb_Pyuno_Pyuno,passive_python,$(SRCDIR)/desktop/test/deployment/passive))
$(eval $(call gb_Pyuno_add_files,passive_python, \ $(eval $(call gb_Pyuno_add_files,passive_python,,\
passive_python.py \ passive_python.py \
)) ))
......
...@@ -483,33 +483,38 @@ End ...@@ -483,33 +483,38 @@ End
#ifndef DISABLE_PYUNO #ifndef DISABLE_PYUNO
File gid_File_Wizards_Common File gid_File_Wizards_Common
Dir = gid_Dir_Wizards; Dir = FILELIST_DIR;
ARCHIVE_TXT_FILE_BODY; TXT_FILE_BODY;
Name = "wizards.zip"; Styles = (FILELIST);
Name = "Pyuno/wizards.filelist";
End End
File gid_File_Wizards_Fax File gid_File_Wizards_Fax
Dir = gid_Dir_Wizards_Fax; Dir = FILELIST_DIR;
ARCHIVE_TXT_FILE_BODY; TXT_FILE_BODY;
Name = "fax.zip"; Styles = (FILELIST);
Name = "Pyuno/fax.filelist";
End End
File gid_File_Wizards_Letter File gid_File_Wizards_Letter
Dir = gid_Dir_Wizards_Letter; Dir = FILELIST_DIR;
ARCHIVE_TXT_FILE_BODY; TXT_FILE_BODY;
Name = "letter.zip"; Styles = (FILELIST);
Name = "Pyuno/letter.filelist";
End End
File gid_File_Wizards_Agenda File gid_File_Wizards_Agenda
Dir = gid_Dir_Wizards_Agenda; Dir = FILELIST_DIR;
ARCHIVE_TXT_FILE_BODY; TXT_FILE_BODY;
Name = "agenda.zip"; Styles = (FILELIST);
Name = "Pyuno/agenda.filelist";
End End
File gid_File_Pymailmerge File gid_File_Pymailmerge
Dir = gid_Brand_Dir_Program; Dir = FILELIST_DIR;
ARCHIVE_TXT_FILE_BODY; TXT_FILE_BODY;
Name = "mailmerge.zip"; Styles = (FILELIST);
Name = "Pyuno/mailmerge.filelist";
End End
#endif #endif
#endif #endif
......
...@@ -30,7 +30,7 @@ $(eval $(call gb_Pyuno_Pyuno,mailmerge,$(SRCDIR)/scripting/source/pyprov)) ...@@ -30,7 +30,7 @@ $(eval $(call gb_Pyuno_Pyuno,mailmerge,$(SRCDIR)/scripting/source/pyprov))
$(eval $(call gb_Pyuno_set_componentfile,mailmerge,scripting/source/pyprov/mailmerge)) $(eval $(call gb_Pyuno_set_componentfile,mailmerge,scripting/source/pyprov/mailmerge))
$(eval $(call gb_Pyuno_add_files,mailmerge,\ $(eval $(call gb_Pyuno_add_files,mailmerge,,\
mailmerge.py \ mailmerge.py \
msgbox.py \ msgbox.py \
officehelper.py \ officehelper.py \
......
...@@ -25,34 +25,43 @@ ...@@ -25,34 +25,43 @@
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above. # instead of those above.
$(dir $(call gb_Pyuno_get_target,%)).dir :
$(if $(wildcard $(dir $@)),,mkdir -p $(dir $@))
$(dir $(call gb_Pyuno_get_target,%))%/.dir :
$(if $(wildcard $(dir $@)),,mkdir -p $(dir $@))
$(call gb_Pyuno_get_target,%) : $(call gb_Pyuno_get_target,%) :
$(call gb_Output_announce,$*,$(true),PYU,3) $(call gb_Output_announce,$*,$(true),PYU,3)
mkdir -p $(dir $@) && touch $@ touch $@
.PHONY : $(call gb_Pyuno_get_clean_target,%) .PHONY : $(call gb_Pyuno_get_clean_target,%)
$(call gb_Pyuno_get_clean_target,%) : $(call gb_Pyuno_get_clean_target,%) :
$(call gb_Output_announce,$*,$(false),PYU,3) $(call gb_Output_announce,$*,$(false),PYU,3)
rm -f $(call gb_Pyuno_get_target,$*) $(call gb_Pyuno_get_outdir_target,$*) rm -f $(call gb_Pyuno_get_target,$*)
gb_Pyuno_get_packagename = Pyuno/$(1)
define gb_Pyuno_Pyuno define gb_Pyuno_Pyuno
$(call gb_Zip_Zip_internal_nodeliver,Pyuno/$(1),$(2)) $(call gb_Package_Package_internal,$(call gb_Pyuno_get_packagename,$(1)),$(2))
$(call gb_Package_set_outdir,$(call gb_Pyuno_get_packagename,$(1)),$(INSTDIR))
$(call gb_Pyuno_get_target,$(1)) : $(call gb_Package_get_target,$(call gb_Pyuno_get_packagename,$(1)))
$(call gb_Pyuno_get_target,$(1)) :| $(dir $(call gb_Pyuno_get_target,$(1))).dir
$(call gb_Pyuno_get_clean_target,$(1)) : $(call gb_Package_get_clean_target,$(call gb_Pyuno_get_packagename,$(1)))
$$(eval $$(call gb_Module_register_target,$(call gb_Pyuno_get_target,$(1)),$(call gb_Pyuno_get_clean_target,$(1)))) $$(eval $$(call gb_Module_register_target,$(call gb_Pyuno_get_target,$(1)),$(call gb_Pyuno_get_clean_target,$(1))))
$(call gb_Helper_make_userfriendly_targets,$(1),Pyuno) $(call gb_Helper_make_userfriendly_targets,$(1),Pyuno)
$(call gb_Deliver_add_deliverable,$(call gb_Pyuno_get_outdir_target,$(1)),$(call gb_Zip_get_target,Pyuno/$(1)),$(1))
$(call gb_Pyuno_get_target,$(1)) : $(call gb_Pyuno_get_outdir_target,$(1))
$(call gb_Pyuno_get_outdir_target,$(1)) : $(call gb_Zip_get_target,Pyuno/$(1))
$(call gb_Pyuno_get_outdir_target,$(1)) :| $(dir $(call gb_Pyuno_get_outdir_target,$(1))).dir
$(call gb_Pyuno_get_clean_target,$(1)) : $(call gb_Zip_get_clean_target,Pyuno/$(1))
endef endef
define gb_Pyuno_add_file define gb_Pyuno_add_file
$(call gb_Zip_add_file,Pyuno/$(1),$(2)) $(call gb_Package_add_file,$(call gb_Pyuno_get_packagename,$(1)),$(gb_Pyuno_PROGRAMDIRNAME)/$(2),$(3))
endef endef
define gb_Pyuno_add_files define gb_Pyuno_add_files
$(foreach file,$(2),$(call gb_Pyuno_add_file,$(1),$(file))) $(foreach file,$(3),$(call gb_Pyuno_add_file,$(1),$(if $(strip $(2)),$(strip $(2))/)$(file),$(file)))
endef endef
......
...@@ -171,9 +171,7 @@ gb_Postprocess_get_target = $(WORKDIR)/Postprocess/$(1) ...@@ -171,9 +171,7 @@ gb_Postprocess_get_target = $(WORKDIR)/Postprocess/$(1)
gb_PrecompiledHeader_get_dep_target = $(WORKDIR)/Dep/PrecompiledHeader/$(gb_PrecompiledHeader_DEBUGDIR)/$(1).hxx.gch.d gb_PrecompiledHeader_get_dep_target = $(WORKDIR)/Dep/PrecompiledHeader/$(gb_PrecompiledHeader_DEBUGDIR)/$(1).hxx.gch.d
gb_PrecompiledHeader_get_target = $(WORKDIR)/PrecompiledHeader/$(gb_PrecompiledHeader_DEBUGDIR)/$(1).hxx.gch gb_PrecompiledHeader_get_target = $(WORKDIR)/PrecompiledHeader/$(gb_PrecompiledHeader_DEBUGDIR)/$(1).hxx.gch
gb_PrecompiledHeader_get_timestamp = $(WORKDIR)/PrecompiledHeader/$(gb_PrecompiledHeader_DEBUGDIR)/Timestamps/$(1) gb_PrecompiledHeader_get_timestamp = $(WORKDIR)/PrecompiledHeader/$(gb_PrecompiledHeader_DEBUGDIR)/Timestamps/$(1)
gb_Pyuno_get_target = $(WORKDIR)/Pyuno/$(1).zip gb_Pyuno_get_target = $(WORKDIR)/Pyuno/$(1).done
gb_Pyuno_get_outdir_target = $(OUTDIR)/bin/$(1).zip
gb_PyunoFile_get_target = $(WORKDIR)/Pyuno/$(1)/contents/$(2)
gb_Rdb_get_target = $(WORKDIR)/Rdb/$(1).rdb gb_Rdb_get_target = $(WORKDIR)/Rdb/$(1).rdb
gb_ResTarget_get_imagelist_target = $(WORKDIR)/ResTarget/$(1).ilst gb_ResTarget_get_imagelist_target = $(WORKDIR)/ResTarget/$(1).ilst
gb_ResTarget_get_target = $(WORKDIR)/ResTarget/$(1).res gb_ResTarget_get_target = $(WORKDIR)/ResTarget/$(1).res
......
...@@ -295,6 +295,10 @@ endef ...@@ -295,6 +295,10 @@ endef
gb_UIMenubarTarget_UIMenubarTarget_platform := gb_UIMenubarTarget_UIMenubarTarget_platform :=
# Pyuno class
gb_Pyuno_PROGRAMDIRNAME := program
# Python # Python
gb_PYTHON_PRECOMMAND := DYLD_LIBRARY_PATH=$(OUTDIR_FOR_BUILD)/lib gb_PYTHON_PRECOMMAND := DYLD_LIBRARY_PATH=$(OUTDIR_FOR_BUILD)/lib
......
...@@ -429,6 +429,10 @@ endef ...@@ -429,6 +429,10 @@ endef
gb_UIMenubarTarget_UIMenubarTarget_platform := gb_UIMenubarTarget_UIMenubarTarget_platform :=
# Pyuno class
gb_Pyuno_PROGRAMDIRNAME := program
# Python # Python
gb_PYTHON_PRECOMMAND := PATH="$${PATH}:$(OUTDIR_FOR_BUILD)/bin" PYTHONHOME="$(OUTDIR_FOR_BUILD)/lib/python" PYTHONPATH="$(OUTDIR_FOR_BUILD)/lib/python;$(OUTDIR_FOR_BUILD)/lib/python/lib-dynload" gb_PYTHON_PRECOMMAND := PATH="$${PATH}:$(OUTDIR_FOR_BUILD)/bin" PYTHONHOME="$(OUTDIR_FOR_BUILD)/lib/python" PYTHONPATH="$(OUTDIR_FOR_BUILD)/lib/python;$(OUTDIR_FOR_BUILD)/lib/python/lib-dynload"
......
...@@ -608,6 +608,10 @@ endef ...@@ -608,6 +608,10 @@ endef
gb_UIMenubarTarget_UIMenubarTarget_platform := gb_UIMenubarTarget_UIMenubarTarget_platform :=
# Pyuno class
gb_Pyuno_PROGRAMDIRNAME := program
# Python # Python
gb_PYTHON_PRECOMMAND := $(gb_Helper_set_ld_path) PYTHONHOME="$(OUTDIR_FOR_BUILD)/lib/python" PYTHONPATH="$(OUTDIR_FOR_BUILD)/lib/python;$(OUTDIR_FOR_BUILD)/lib/python/lib-dynload" gb_PYTHON_PRECOMMAND := $(gb_Helper_set_ld_path) PYTHONHOME="$(OUTDIR_FOR_BUILD)/lib/python" PYTHONPATH="$(OUTDIR_FOR_BUILD)/lib/python;$(OUTDIR_FOR_BUILD)/lib/python/lib-dynload"
......
...@@ -377,6 +377,10 @@ endef ...@@ -377,6 +377,10 @@ endef
# Python # Python
gb_PYTHON_PRECOMMAND := DYLD_LIBRARY_PATH=$(OUTDIR)/lib gb_PYTHON_PRECOMMAND := DYLD_LIBRARY_PATH=$(OUTDIR)/lib
# Pyuno class
gb_Pyuno_PROGRAMDIRNAME := MacOS
include $(GBUILDDIR)/platform/com_GCC_class.mk include $(GBUILDDIR)/platform/com_GCC_class.mk
# vim: set noet sw=4: # vim: set noet sw=4:
...@@ -421,6 +421,10 @@ endef ...@@ -421,6 +421,10 @@ endef
gb_UIMenubarTarget_UIMenubarTarget_platform := gb_UIMenubarTarget_UIMenubarTarget_platform :=
# Pyuno class
gb_Pyuno_PROGRAMDIRNAME := program
# Python # Python
gb_PYTHON_PRECOMMAND := $(gb_Helper_set_ld_path) PYTHONHOME=$(OUTDIR)/lib/python PYTHONPATH=$(OUTDIR)/lib/python:$(OUTDIR)/lib/python/lib-dynload gb_PYTHON_PRECOMMAND := $(gb_Helper_set_ld_path) PYTHONHOME=$(OUTDIR)/lib/python PYTHONPATH=$(OUTDIR)/lib/python:$(OUTDIR)/lib/python/lib-dynload
......
...@@ -419,6 +419,10 @@ endef ...@@ -419,6 +419,10 @@ endef
gb_UIMenubarTarget_UIMenubarTarget_platform := gb_UIMenubarTarget_UIMenubarTarget_platform :=
# Pyuno class
gb_Pyuno_PROGRAMDIRNAME := program
# Python # Python
gb_PYTHON_PRECOMMAND := $(gb_Helper_set_ld_path) PYTHONHOME=$(OUTDIR)/lib/python PYTHONPATH=$(OUTDIR)/lib/python:$(OUTDIR)/lib/python/lib-dynload gb_PYTHON_PRECOMMAND := $(gb_Helper_set_ld_path) PYTHONHOME=$(OUTDIR)/lib/python PYTHONPATH=$(OUTDIR)/lib/python:$(OUTDIR)/lib/python/lib-dynload
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
$(eval $(call gb_Pyuno_Pyuno,agenda,$(SRCDIR)/wizards/com/sun/star/wizards/agenda)) $(eval $(call gb_Pyuno_Pyuno,agenda,$(SRCDIR)/wizards/com/sun/star/wizards/agenda))
$(eval $(call gb_Pyuno_add_files,agenda,\ $(eval $(call gb_Pyuno_add_files,agenda,wizards/agenda,\
AgendaDocument.py \ AgendaDocument.py \
AgendaWizardDialogConst.py \ AgendaWizardDialogConst.py \
AgendaWizardDialogImpl.py \ AgendaWizardDialogImpl.py \
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
$(eval $(call gb_Pyuno_Pyuno,wizards,$(SRCDIR)/wizards/com/sun/star/wizards)) $(eval $(call gb_Pyuno_Pyuno,wizards,$(SRCDIR)/wizards/com/sun/star/wizards))
$(eval $(call gb_Pyuno_add_files,wizards,\ $(eval $(call gb_Pyuno_add_files,wizards,wizards,\
__init__.py \ __init__.py \
common/__init__.py \ common/__init__.py \
common/ConfigGroup.py \ common/ConfigGroup.py \
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
$(eval $(call gb_Pyuno_Pyuno,fax,$(SRCDIR)/wizards/com/sun/star/wizards/fax)) $(eval $(call gb_Pyuno_Pyuno,fax,$(SRCDIR)/wizards/com/sun/star/wizards/fax))
$(eval $(call gb_Pyuno_add_files,fax,\ $(eval $(call gb_Pyuno_add_files,fax,wizards/fax,\
__init__.py \ __init__.py \
CallWizard.py \ CallWizard.py \
CGFax.py \ CGFax.py \
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
$(eval $(call gb_Pyuno_Pyuno,letter,$(SRCDIR)/wizards/com/sun/star/wizards/letter)) $(eval $(call gb_Pyuno_Pyuno,letter,$(SRCDIR)/wizards/com/sun/star/wizards/letter))
$(eval $(call gb_Pyuno_add_files,letter,\ $(eval $(call gb_Pyuno_add_files,letter,wizards/letter,\
CallWizard.py \ CallWizard.py \
CGLetter.py \ CGLetter.py \
CGLetterWizard.py \ CGLetterWizard.py \
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
$(eval $(call gb_Pyuno_Pyuno,web,$(SRCDIR)/wizards/com/sun/star/wizards/web)) $(eval $(call gb_Pyuno_Pyuno,web,$(SRCDIR)/wizards/com/sun/star/wizards/web))
$(eval $(call gb_Pyuno_add_files,web,\ $(eval $(call gb_Pyuno_add_files,web,wizards/web,\
CallWizard.py \ CallWizard.py \
BackgroundsDialog.py \ BackgroundsDialog.py \
ErrorHandler.py \ ErrorHandler.py \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment