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 @@
$(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 \
))
......
......@@ -483,33 +483,38 @@ End
#ifndef DISABLE_PYUNO
File gid_File_Wizards_Common
Dir = gid_Dir_Wizards;
ARCHIVE_TXT_FILE_BODY;
Name = "wizards.zip";
Dir = FILELIST_DIR;
TXT_FILE_BODY;
Styles = (FILELIST);
Name = "Pyuno/wizards.filelist";
End
File gid_File_Wizards_Fax
Dir = gid_Dir_Wizards_Fax;
ARCHIVE_TXT_FILE_BODY;
Name = "fax.zip";
Dir = FILELIST_DIR;
TXT_FILE_BODY;
Styles = (FILELIST);
Name = "Pyuno/fax.filelist";
End
File gid_File_Wizards_Letter
Dir = gid_Dir_Wizards_Letter;
ARCHIVE_TXT_FILE_BODY;
Name = "letter.zip";
Dir = FILELIST_DIR;
TXT_FILE_BODY;
Styles = (FILELIST);
Name = "Pyuno/letter.filelist";
End
File gid_File_Wizards_Agenda
Dir = gid_Dir_Wizards_Agenda;
ARCHIVE_TXT_FILE_BODY;
Name = "agenda.zip";
Dir = FILELIST_DIR;
TXT_FILE_BODY;
Styles = (FILELIST);
Name = "Pyuno/agenda.filelist";
End
File gid_File_Pymailmerge
Dir = gid_Brand_Dir_Program;
ARCHIVE_TXT_FILE_BODY;
Name = "mailmerge.zip";
Dir = FILELIST_DIR;
TXT_FILE_BODY;
Styles = (FILELIST);
Name = "Pyuno/mailmerge.filelist";
End
#endif
#endif
......
......@@ -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_add_files,mailmerge,\
$(eval $(call gb_Pyuno_add_files,mailmerge,,\
mailmerge.py \
msgbox.py \
officehelper.py \
......
......@@ -25,34 +25,43 @@
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# 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_Output_announce,$*,$(true),PYU,3)
mkdir -p $(dir $@) && touch $@
touch $@
.PHONY : $(call gb_Pyuno_get_clean_target,%)
$(call gb_Pyuno_get_clean_target,%) :
$(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
$(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))))
$(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
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
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
......
......@@ -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_target = $(WORKDIR)/PrecompiledHeader/$(gb_PrecompiledHeader_DEBUGDIR)/$(1).hxx.gch
gb_PrecompiledHeader_get_timestamp = $(WORKDIR)/PrecompiledHeader/$(gb_PrecompiledHeader_DEBUGDIR)/Timestamps/$(1)
gb_Pyuno_get_target = $(WORKDIR)/Pyuno/$(1).zip
gb_Pyuno_get_outdir_target = $(OUTDIR)/bin/$(1).zip
gb_PyunoFile_get_target = $(WORKDIR)/Pyuno/$(1)/contents/$(2)
gb_Pyuno_get_target = $(WORKDIR)/Pyuno/$(1).done
gb_Rdb_get_target = $(WORKDIR)/Rdb/$(1).rdb
gb_ResTarget_get_imagelist_target = $(WORKDIR)/ResTarget/$(1).ilst
gb_ResTarget_get_target = $(WORKDIR)/ResTarget/$(1).res
......
......@@ -295,6 +295,10 @@ endef
gb_UIMenubarTarget_UIMenubarTarget_platform :=
# Pyuno class
gb_Pyuno_PROGRAMDIRNAME := program
# Python
gb_PYTHON_PRECOMMAND := DYLD_LIBRARY_PATH=$(OUTDIR_FOR_BUILD)/lib
......
......@@ -429,6 +429,10 @@ endef
gb_UIMenubarTarget_UIMenubarTarget_platform :=
# Pyuno class
gb_Pyuno_PROGRAMDIRNAME := program
# 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"
......
......@@ -608,6 +608,10 @@ endef
gb_UIMenubarTarget_UIMenubarTarget_platform :=
# Pyuno class
gb_Pyuno_PROGRAMDIRNAME := program
# 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"
......
......@@ -377,6 +377,10 @@ endef
# Python
gb_PYTHON_PRECOMMAND := DYLD_LIBRARY_PATH=$(OUTDIR)/lib
# Pyuno class
gb_Pyuno_PROGRAMDIRNAME := MacOS
include $(GBUILDDIR)/platform/com_GCC_class.mk
# vim: set noet sw=4:
......@@ -421,6 +421,10 @@ endef
gb_UIMenubarTarget_UIMenubarTarget_platform :=
# Pyuno class
gb_Pyuno_PROGRAMDIRNAME := program
# Python
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
gb_UIMenubarTarget_UIMenubarTarget_platform :=
# Pyuno class
gb_Pyuno_PROGRAMDIRNAME := program
# Python
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 @@
$(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 \
AgendaWizardDialogConst.py \
AgendaWizardDialogImpl.py \
......
......@@ -27,7 +27,7 @@
$(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 \
common/__init__.py \
common/ConfigGroup.py \
......
......@@ -27,7 +27,7 @@
$(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 \
CallWizard.py \
CGFax.py \
......
......@@ -27,7 +27,7 @@
$(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 \
CGLetter.py \
CGLetterWizard.py \
......
......@@ -27,7 +27,7 @@
$(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 \
BackgroundsDialog.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