diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2011-09-19 11:01:15 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2011-10-01 17:16:42 +0200 |
commit | 3250c79071dedbfd1bef1a6417d62fab76328a42 (patch) | |
tree | e1cc5d19b821bf2d874cfee8c519526bc948c1bf | |
parent | b7ca8f369658a446fb5dc1222f16df98f8d8165d (diff) |
convert scripting to gbuild - first step
There are java and extensions missing.
-rw-r--r-- | Repository.mk | 6 | ||||
-rw-r--r-- | postprocess/packcomponents/makefile.mk | 12 | ||||
-rw-r--r-- | scripting/Library_basprov.mk | 68 | ||||
-rw-r--r-- | scripting/Library_dlgprov.mk | 68 | ||||
-rw-r--r-- | scripting/Library_protocolhandler.mk | 60 | ||||
-rw-r--r-- | scripting/Library_scriptframe.mk | 65 | ||||
-rw-r--r-- | scripting/Library_stringresource.mk | 58 | ||||
-rw-r--r-- | scripting/Library_vbaevents.mk | 64 | ||||
-rw-r--r-- | scripting/Makefile | 39 | ||||
-rw-r--r-- | scripting/Module_scripting.mk | 47 | ||||
-rw-r--r-- | scripting/Pyuno_mailmerge.mk | 39 | ||||
-rw-r--r-- | scripting/Zip_ScriptsBeanShell.mk | 46 | ||||
-rw-r--r-- | scripting/Zip_ScriptsJava.mk | 44 | ||||
-rw-r--r-- | scripting/Zip_ScriptsJavaScript.mk | 41 | ||||
-rw-r--r-- | scripting/Zip_ScriptsPython.mk | 37 | ||||
-rw-r--r-- | scripting/Zip_pythonscript.mk | 36 | ||||
-rw-r--r-- | scripting/Zip_scriptbindinglib.mk | 37 | ||||
-rw-r--r-- | scripting/prj/build.lst | 15 | ||||
-rw-r--r-- | scripting/prj/d.lst | 8 | ||||
-rw-r--r-- | scripting/prj/makefile.mk | 40 |
20 files changed, 804 insertions, 26 deletions
diff --git a/Repository.mk b/Repository.mk index 21cee990df5c..01a93d92a639 100644 --- a/Repository.mk +++ b/Repository.mk @@ -186,6 +186,7 @@ $(eval $(call gb_Helper_register_libraries,OOOLIBS, \ offacc \ pdffilter \ placeware \ + protocolhandler \ qstart_gtk \ resourcemodel \ rpt \ @@ -279,6 +280,7 @@ $(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \ neon \ package2 \ reg \ + scriptframe \ sofficeapp \ store \ test \ @@ -323,12 +325,14 @@ $(eval $(call gb_Helper_register_libraries,RTVERLIBS, \ )) $(eval $(call gb_Helper_register_libraries,UNOLIBS_OOO, \ + basprov \ bootstrap \ cairocanvas \ canvasfactory \ configmgr \ directx5canvas \ directx9canvas \ + dlgprov \ expwrap \ fastsax \ fsstorage \ @@ -348,6 +352,8 @@ $(eval $(call gb_Helper_register_libraries,UNOLIBS_OOO, \ simplecanvas \ slideshow \ stocservices \ + stringresource \ + vbaevents \ vbaobj \ vbaswobj \ vclcanvas \ diff --git a/postprocess/packcomponents/makefile.mk b/postprocess/packcomponents/makefile.mk index a96049af770c..9a3eef94b9d9 100644 --- a/postprocess/packcomponents/makefile.mk +++ b/postprocess/packcomponents/makefile.mk @@ -39,7 +39,6 @@ GTK_TWO_FOUR=$(shell @+-$(PKG_CONFIG) --exists 'gtk+-2.0 >= 2.4.0' && echo YES) .END my_components = \ - basprov \ cached1 \ calc \ component/animations/source/animcore/animcore \ @@ -101,6 +100,12 @@ my_components = \ component/scaddins/source/analysis/analysis \ component/scaddins/source/datefunc/date \ component/sccomp/source/solver/solver \ + component/scripting/source/basprov/basprov \ + component/scripting/source/dlgprov/dlgprov \ + component/scripting/source/protocolhandler/protocolhandler \ + component/scripting/source/stringresource/stringresource \ + component/scripting/source/vbaevents/vbaevents \ + component/scripting/util/scriptframe \ component/sd/util/sd \ component/sd/util/sdd \ component/sd/util/sdfilt \ @@ -141,7 +146,6 @@ my_components = \ dbase \ dbpool2 \ dbtools \ - dlgprov \ embobj \ flat \ fpicker \ @@ -152,12 +156,9 @@ my_components = \ localebe1 \ mysql \ odbc \ - protocolhandler \ - scriptframe \ sdbc2 \ spell \ srtrs1 \ - stringresource \ syssh \ ucb1 \ ucpcmis \ @@ -168,7 +169,6 @@ my_components = \ ucphier1 \ ucppkg1 \ ucptdoc1 \ - vbaevents \ .IF "$(BUILD_TYPE)" != "$(BUILD_TYPE:s/DESKTOP//)" my_components += \ diff --git a/scripting/Library_basprov.mk b/scripting/Library_basprov.mk new file mode 100644 index 000000000000..b030ad2a5b6b --- /dev/null +++ b/scripting/Library_basprov.mk @@ -0,0 +1,68 @@ +# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*- +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# The Initial Developer of the Original Code is +# Matúš Kukan <matus.kukan@gmail.com> +# Portions created by the Initial Developer are Copyright (C) 2011 the +# Initial Developer. All Rights Reserved. +# +# Major Contributor(s): +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(eval $(call gb_Library_Library,basprov)) + +$(eval $(call gb_Library_add_precompiled_header,basprov,$(SRCDIR)/scripting/inc/pch/precompiled_scripting)) + +$(eval $(call gb_Library_set_componentfile,basprov,scripting/source/basprov/basprov)) + +$(eval $(call gb_Library_set_include,basprov,\ + $$(INCLUDE) \ + -I$(realpath $(SRCDIR)/scripting/inc/pch) \ + -I$(realpath $(SRCDIR)/scripting/source/inc) \ +)) + +$(eval $(call gb_Library_add_api,basprov,\ + offapi \ + udkapi \ +)) + +$(eval $(call gb_Library_add_linked_libs,basprov,\ + comphelper \ + cppu \ + cppuhelper \ + sal \ + sb \ + sfx \ + svl \ + tl \ + ucbhelper \ + vcl \ + $(gb_STDLIBS) \ +)) + +$(eval $(call gb_Library_add_exception_objects,basprov,\ + scripting/source/basprov/baslibnode \ + scripting/source/basprov/basmethnode \ + scripting/source/basprov/basmodnode \ + scripting/source/basprov/basprov \ + scripting/source/basprov/basscript \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/scripting/Library_dlgprov.mk b/scripting/Library_dlgprov.mk new file mode 100644 index 000000000000..258734b7b785 --- /dev/null +++ b/scripting/Library_dlgprov.mk @@ -0,0 +1,68 @@ +# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*- +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# The Initial Developer of the Original Code is +# Matúš Kukan <matus.kukan@gmail.com> +# Portions created by the Initial Developer are Copyright (C) 2011 the +# Initial Developer. All Rights Reserved. +# +# Major Contributor(s): +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(eval $(call gb_Library_Library,dlgprov)) + +$(eval $(call gb_Library_add_precompiled_header,dlgprov,$(SRCDIR)/scripting/inc/pch/precompiled_scripting)) + +$(eval $(call gb_Library_set_componentfile,dlgprov,scripting/source/dlgprov/dlgprov)) + +$(eval $(call gb_Library_set_include,dlgprov,\ + $$(INCLUDE) \ + -I$(realpath $(SRCDIR)/scripting/inc/pch) \ + -I$(realpath $(SRCDIR)/scripting/source/inc) \ +)) + +$(eval $(call gb_Library_add_api,dlgprov,\ + offapi \ + oovbaapi \ + udkapi \ +)) + +$(eval $(call gb_Library_add_linked_libs,dlgprov,\ + comphelper \ + cppu \ + cppuhelper \ + sal \ + sb \ + sfx \ + tl \ + ucbhelper \ + vbahelper \ + vcl \ + xcr \ + $(gb_STDLIBS) \ +)) + +$(eval $(call gb_Library_add_exception_objects,dlgprov,\ + scripting/source/dlgprov/DialogModelProvider \ + scripting/source/dlgprov/dlgevtatt \ + scripting/source/dlgprov/dlgprov \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/scripting/Library_protocolhandler.mk b/scripting/Library_protocolhandler.mk new file mode 100644 index 000000000000..ef908ca1ff42 --- /dev/null +++ b/scripting/Library_protocolhandler.mk @@ -0,0 +1,60 @@ +# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*- +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# The Initial Developer of the Original Code is +# Matúš Kukan <matus.kukan@gmail.com> +# Portions created by the Initial Developer are Copyright (C) 2011 the +# Initial Developer. All Rights Reserved. +# +# Major Contributor(s): +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(eval $(call gb_Library_Library,protocolhandler)) + +$(eval $(call gb_Library_add_precompiled_header,protocolhandler,$(SRCDIR)/scripting/inc/pch/precompiled_scripting)) + +$(eval $(call gb_Library_set_componentfile,protocolhandler,scripting/source/protocolhandler/protocolhandler)) + +$(eval $(call gb_Library_set_include,protocolhandler,\ + $$(INCLUDE) \ + -I$(realpath $(SRCDIR)/scripting/inc/pch) \ + -I$(realpath $(SRCDIR)/scripting/source/inc) \ +)) + +$(eval $(call gb_Library_add_api,protocolhandler,\ + offapi \ + udkapi \ +)) + +$(eval $(call gb_Library_add_linked_libs,protocolhandler,\ + cppu \ + cppuhelper \ + fwe \ + sal \ + sfx \ + vcl \ + $(gb_STDLIBS) \ +)) + +$(eval $(call gb_Library_add_exception_objects,protocolhandler,\ + scripting/source/protocolhandler/scripthandler \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/scripting/Library_scriptframe.mk b/scripting/Library_scriptframe.mk new file mode 100644 index 000000000000..16ed0dc8cff6 --- /dev/null +++ b/scripting/Library_scriptframe.mk @@ -0,0 +1,65 @@ +# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*- +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# The Initial Developer of the Original Code is +# Matúš Kukan <matus.kukan@gmail.com> +# Portions created by the Initial Developer are Copyright (C) 2011 the +# Initial Developer. All Rights Reserved. +# +# Major Contributor(s): +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(eval $(call gb_Library_Library,scriptframe)) + +$(eval $(call gb_Library_add_precompiled_header,scriptframe,$(SRCDIR)/scripting/inc/pch/precompiled_scripting)) + +$(eval $(call gb_Library_set_componentfile,scriptframe,scripting/util/scriptframe)) + +$(eval $(call gb_Library_set_include,scriptframe,\ + $$(INCLUDE) \ + -I$(realpath $(SRCDIR)/scripting/inc/pch) \ + -I$(realpath $(SRCDIR)/scripting/source/inc) \ +)) + +$(eval $(call gb_Library_add_api,scriptframe,\ + offapi \ + udkapi \ +)) + +$(eval $(call gb_Library_add_linked_libs,scriptframe,\ + comphelper \ + cppu \ + cppuhelper \ + sal \ + tl \ + ucbhelper \ + $(gb_STDLIBS) \ +)) + +$(eval $(call gb_Library_add_exception_objects,scriptframe,\ + scripting/source/provider/ActiveMSPList \ + scripting/source/provider/BrowseNodeFactoryImpl \ + scripting/source/provider/MasterScriptProvider \ + scripting/source/provider/MasterScriptProviderFactory \ + scripting/source/provider/ProviderCache \ + scripting/source/provider/URIHelper \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/scripting/Library_stringresource.mk b/scripting/Library_stringresource.mk new file mode 100644 index 000000000000..28d8e604fddc --- /dev/null +++ b/scripting/Library_stringresource.mk @@ -0,0 +1,58 @@ +# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*- +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# The Initial Developer of the Original Code is +# Matúš Kukan <matus.kukan@gmail.com> +# Portions created by the Initial Developer are Copyright (C) 2011 the +# Initial Developer. All Rights Reserved. +# +# Major Contributor(s): +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(eval $(call gb_Library_Library,stringresource)) + +$(eval $(call gb_Library_add_precompiled_header,stringresource,$(SRCDIR)/scripting/inc/pch/precompiled_scripting)) + +$(eval $(call gb_Library_set_componentfile,stringresource,scripting/source/stringresource/stringresource)) + +$(eval $(call gb_Library_set_include,stringresource,\ + $$(INCLUDE) \ + -I$(realpath $(SRCDIR)/scripting/inc/pch) \ + -I$(realpath $(SRCDIR)/scripting/source/inc) \ +)) + +$(eval $(call gb_Library_add_api,stringresource,\ + offapi \ + udkapi \ +)) + +$(eval $(call gb_Library_add_linked_libs,stringresource,\ + cppu \ + cppuhelper \ + sal \ + tl \ + $(gb_STDLIBS) \ +)) + +$(eval $(call gb_Library_add_exception_objects,stringresource,\ + scripting/source/stringresource/stringresource \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/scripting/Library_vbaevents.mk b/scripting/Library_vbaevents.mk new file mode 100644 index 000000000000..1c70a31ba778 --- /dev/null +++ b/scripting/Library_vbaevents.mk @@ -0,0 +1,64 @@ +# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*- +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# The Initial Developer of the Original Code is +# Matúš Kukan <matus.kukan@gmail.com> +# Portions created by the Initial Developer are Copyright (C) 2011 the +# Initial Developer. All Rights Reserved. +# +# Major Contributor(s): +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(eval $(call gb_Library_Library,vbaevents)) + +$(eval $(call gb_Library_add_precompiled_header,vbaevents,$(SRCDIR)/scripting/inc/pch/precompiled_scripting)) + +$(eval $(call gb_Library_set_componentfile,vbaevents,scripting/source/vbaevents/vbaevents)) + +$(eval $(call gb_Library_set_include,vbaevents,\ + $$(INCLUDE) \ + -I$(realpath $(SRCDIR)/scripting/inc/pch) \ + -I$(realpath $(SRCDIR)/scripting/source/inc) \ +)) + +$(eval $(call gb_Library_add_api,vbaevents,\ + offapi \ + oovbaapi \ + udkapi \ +)) + +$(eval $(call gb_Library_add_linked_libs,vbaevents,\ + comphelper \ + cppu \ + cppuhelper \ + msfilter \ + sal \ + sfx \ + sb \ + tl \ + $(gb_STDLIBS) \ +)) + +$(eval $(call gb_Library_add_exception_objects,vbaevents,\ + scripting/source/vbaevents/eventhelper \ + scripting/source/vbaevents/service \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/scripting/Makefile b/scripting/Makefile new file mode 100644 index 000000000000..a1b344d72564 --- /dev/null +++ b/scripting/Makefile @@ -0,0 +1,39 @@ +# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*- +#************************************************************************* +# +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +# +# Copyright 2000, 2011 Oracle and/or its affiliates. +# +# OpenOffice.org - a multi-platform office productivity suite +# +# This file is part of OpenOffice.org. +# +# OpenOffice.org is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License version 3 +# only, as published by the Free Software Foundation. +# +# OpenOffice.org is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License version 3 for more details +# (a copy is included in the LICENSE file that accompanied this code). +# +# You should have received a copy of the GNU Lesser General Public License +# version 3 along with OpenOffice.org. If not, see +# <http://www.openoffice.org/license.html> +# for a copy of the LGPLv3 License. +# +#************************************************************************* + +ifeq ($(strip $(SOLARENV)),) +$(error No environment set!) +endif + +gb_PARTIALBUILD := T +GBUILDDIR := $(SOLARENV)/gbuild +include $(GBUILDDIR)/gbuild.mk + +$(eval $(call gb_Module_make_global_targets,$(shell ls $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/Module*.mk))) + +# vim: set noet sw=4 ts=4: diff --git a/scripting/Module_scripting.mk b/scripting/Module_scripting.mk new file mode 100644 index 000000000000..bbaa4859b789 --- /dev/null +++ b/scripting/Module_scripting.mk @@ -0,0 +1,47 @@ +# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*- +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# The Initial Developer of the Original Code is +# Matúš Kukan <matus.kukan@gmail.com> +# Portions created by the Initial Developer are Copyright (C) 2011 the +# Initial Developer. All Rights Reserved. +# +# Major Contributor(s): +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(eval $(call gb_Module_Module,scripting)) + +$(eval $(call gb_Module_add_targets,scripting,\ + Library_basprov \ + Library_dlgprov \ + Library_protocolhandler \ + Library_scriptframe \ + Library_stringresource \ + Library_vbaevents \ + Pyuno_mailmerge \ + Zip_scriptbindinglib \ + Zip_ScriptsBeanShell \ + Zip_ScriptsJavaScript \ + Zip_ScriptsPython \ +)) +# TODO: +# $(if $(SOLAR_JAVA),Zip_ScriptsJava) \ + +# vim: set noet sw=4 ts=4: diff --git a/scripting/Pyuno_mailmerge.mk b/scripting/Pyuno_mailmerge.mk new file mode 100644 index 000000000000..ae814f4fd479 --- /dev/null +++ b/scripting/Pyuno_mailmerge.mk @@ -0,0 +1,39 @@ +# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*- +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# The Initial Developer of the Original Code is +# Matúš Kukan <matus.kukan@gmail.com> +# Portions created by the Initial Developer are Copyright (C) 2011 the +# Initial Developer. All Rights Reserved. +# +# Major Contributor(s): +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(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,\ + mailmerge.py \ + msgbox.py \ + officehelper.py \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/scripting/Zip_ScriptsBeanShell.mk b/scripting/Zip_ScriptsBeanShell.mk new file mode 100644 index 000000000000..21c818007b74 --- /dev/null +++ b/scripting/Zip_ScriptsBeanShell.mk @@ -0,0 +1,46 @@ +# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*- +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# The Initial Developer of the Original Code is +# Matúš Kukan <matus.kukan@gmail.com> +# Portions created by the Initial Developer are Copyright (C) 2011 the +# Initial Developer. All Rights Reserved. +# +# Major Contributor(s): +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(eval $(call gb_Zip_Zip,ScriptsBeanShell,$(SRCDIR)/scripting/examples)) + +$(eval $(call gb_Zip_add_files,ScriptsBeanShell,\ + beanshell/Capitalise/capitalise.bsh \ + beanshell/Capitalise/parcel-descriptor.xml \ + beanshell/HelloWorld/helloworld.bsh \ + beanshell/HelloWorld/parcel-descriptor.xml \ + beanshell/Highlight/ButtonPressHandler.bsh \ + beanshell/Highlight/highlighter.bsh \ + beanshell/Highlight/parcel-descriptor.xml \ + beanshell/Highlight/ShowDialog.bsh \ + beanshell/MemoryUsage/memusage.bsh \ + beanshell/MemoryUsage/parcel-descriptor.xml \ + beanshell/WordCount/parcel-descriptor.xml \ + beanshell/WordCount/wordcount.bsh \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/scripting/Zip_ScriptsJava.mk b/scripting/Zip_ScriptsJava.mk new file mode 100644 index 000000000000..c3cb31bee81d --- /dev/null +++ b/scripting/Zip_ScriptsJava.mk @@ -0,0 +1,44 @@ +# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*- +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# The Initial Developer of the Original Code is +# Matúš Kukan <matus.kukan@gmail.com> +# Portions created by the Initial Developer are Copyright (C) 2011 the +# Initial Developer. All Rights Reserved. +# +# Major Contributor(s): +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +# first we need to convert examples/java/makefile.mk +#$(eval $(call gb_Zip_Zip,ScriptsJava,$(WORKDIR)/...)) + +#$(eval $(call gb_Zip_add_files,ScriptsJava,\ + java/Highlight/Highlight.jar \ + java/Highlight/HighlightText.java \ + java/Highlight/parcel-descriptor.xml \ + java/MemoryUsage/MemoryUsage.java \ + java/MemoryUsage/parcel-descriptor.xml \ + java/MemoryUsage/MemoryUsage.jar \ + java/HelloWorld/HelloWorld.java \ + java/HelloWorld/HelloWorld.jar \ + java/HelloWorld/parcel-descriptor.xml \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/scripting/Zip_ScriptsJavaScript.mk b/scripting/Zip_ScriptsJavaScript.mk new file mode 100644 index 000000000000..ef515119de2f --- /dev/null +++ b/scripting/Zip_ScriptsJavaScript.mk @@ -0,0 +1,41 @@ +# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*- +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# The Initial Developer of the Original Code is +# Matúš Kukan <matus.kukan@gmail.com> +# Portions created by the Initial Developer are Copyright (C) 2011 the +# Initial Developer. All Rights Reserved. +# +# Major Contributor(s): +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(eval $(call gb_Zip_Zip,ScriptsJavaScript,$(SRCDIR)/scripting/examples)) + +$(eval $(call gb_Zip_add_files,ScriptsJavaScript,\ + javascript/ExportSheetsToHTML/exportsheetstohtml.js \ + javascript/ExportSheetsToHTML/parcel-descriptor.xml \ + javascript/HelloWorld/helloworld.js \ + javascript/HelloWorld/parcel-descriptor.xml \ + javascript/Highlight/ButtonPressHandler.js \ + javascript/Highlight/parcel-descriptor.xml \ + javascript/Highlight/ShowDialog.js \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/scripting/Zip_ScriptsPython.mk b/scripting/Zip_ScriptsPython.mk new file mode 100644 index 000000000000..e86785c4f82b --- /dev/null +++ b/scripting/Zip_ScriptsPython.mk @@ -0,0 +1,37 @@ +# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*- +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# The Initial Developer of the Original Code is +# Matúš Kukan <matus.kukan@gmail.com> +# Portions created by the Initial Developer are Copyright (C) 2011 the +# Initial Developer. All Rights Reserved. +# +# Major Contributor(s): +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(eval $(call gb_Zip_Zip,ScriptsPython,$(SRCDIR)/scripting/examples)) + +$(eval $(call gb_Zip_add_files,ScriptsPython,\ + python/Capitalise.py \ + python/HelloWorld.py \ + python/pythonSamples/TableSample.py \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/scripting/Zip_pythonscript.mk b/scripting/Zip_pythonscript.mk new file mode 100644 index 000000000000..68ce8660136a --- /dev/null +++ b/scripting/Zip_pythonscript.mk @@ -0,0 +1,36 @@ +# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*- +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# The Initial Developer of the Original Code is +# Matúš Kukan <matus.kukan@gmail.com> +# Portions created by the Initial Developer are Copyright (C) 2011 the +# Initial Developer. All Rights Reserved. +# +# Major Contributor(s): +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(eval $(call gb_Zip_Zip,pythonscript,$(SRCDIR)/scripting/source/pyprov)) + +$(eval $(call gb_Zip_add_files,pythonscript,\ + description.xml \ + pythonscript.py \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/scripting/Zip_scriptbindinglib.mk b/scripting/Zip_scriptbindinglib.mk new file mode 100644 index 000000000000..213206aa19e0 --- /dev/null +++ b/scripting/Zip_scriptbindinglib.mk @@ -0,0 +1,37 @@ +# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*- +# Version: MPL 1.1 / GPLv3+ / LGPLv3+ +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License or as specified alternatively below. You may obtain a copy of +# the License at http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# The Initial Developer of the Original Code is +# Matúš Kukan <matus.kukan@gmail.com> +# Portions created by the Initial Developer are Copyright (C) 2011 the +# Initial Developer. All Rights Reserved. +# +# Major Contributor(s): +# +# For minor contributions see the git repository. +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 3 or later (the "GPLv3+"), or +# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), +# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable +# instead of those above. + +$(eval $(call gb_Zip_Zip,scriptbindinglib,$(SRCDIR)/scripting/workben/bindings)) + +$(eval $(call gb_Zip_add_files,scriptbindinglib,\ + Highlight.xdl \ + dialog.xlb \ + script.xlb \ +)) + +# vim: set noet sw=4 ts=4: diff --git a/scripting/prj/build.lst b/scripting/prj/build.lst index eb57d2b63417..aa1cda87fa32 100644 --- a/scripting/prj/build.lst +++ b/scripting/prj/build.lst @@ -1,16 +1,7 @@ tc scripting : filter oovbaapi vbahelper bridges DESKTOP:rdbmaker vcl xmlscript basic sfx2 rhino BSH:beanshell javaunohelper LIBXSLT:libxslt NULL -tc scripting usr1 - all tc1_mkout NULL -tc scripting\inc nmake - all tc1_inc NULL -tc scripting\source\provider nmake - all tc1_scriptingprovider tc1_inc NULL -tc scripting\source\basprov nmake - all tc1_scriptingbasprov tc1_inc NULL -tc scripting\source\vbaevents nmake - all tc1_scriptingvbaevents tc1_inc NULL -tc scripting\source\dlgprov nmake - all tc1_scriptingdlgprov tc1_inc NULL -tc scripting\source\stringresource nmake - all tc1_scriptingstringresource tc1_inc NULL -tc scripting\source\pyprov nmake - all tc1_scriptingpyprov tc1_inc NULL -tc scripting\source\protocolhandler nmake - all tc1_scriptingprotocolhandler tc1_scriptingprovider tc1_inc NULL -tc scripting\java nmake - all tc1_scriptingjava tc1_scriptingprovider tc1_scriptingprotocolhandler NULL +tc scripting\source\pyprov nmake - all tc1_scriptingpyprov NULL +tc scripting\java nmake - all tc1_scriptingjava NULL tc scripting\examples\java nmake - all tc1_scriptingexamplesjava tc1_scriptingjava NULL -tc scripting\examples nmake - all tc1_scriptingexamples tc1_scriptingexamplesjava tc1_inc NULL -tc scripting\util nmake - all tc1_scriptingutil tc1_scriptingprovider tc1_scriptingprotocolhandler tc1_scriptingbasprov tc1_scriptingstringresource tc1_scriptingvbaevents tc1_scriptingpyprov tc1_scriptingjava tc1_scriptingexamplesjava tc1_scriptingexamples NULL +tc scripting\examples nmake - all tc1_scriptingexamples tc1_scriptingexamplesjava NULL tc scripting\util\provider\javascript nmake - all tc1_scriptingjsprov tc1_scriptingjava NULL tc scripting\util\provider\beanshell nmake - all tc1_scriptingbshprov tc1_scriptingjava NULL diff --git a/scripting/prj/d.lst b/scripting/prj/d.lst index f1caf4515fd4..f8efa29c9d41 100644 --- a/scripting/prj/d.lst +++ b/scripting/prj/d.lst @@ -12,18 +12,10 @@ mkdir: %_DEST%\bin\pyuno ..\%__SRC%\bin\*.rdb %_DEST%\rdb\* -..\source\storage\storage.xml %_DEST%\xml\storage.xml - ..\%__SRC%\lib\lib*static*.dylib %_DEST%\lib\lib*static*.dylib ..\%__SRC%\misc\mailmerge.component %_DEST%\xml\mailmerge.component ..\%__SRC%\misc\ScriptFramework.component %_DEST%\xml\ScriptFramework.component ..\%__SRC%\misc\ScriptProviderForJava.component %_DEST%\xml\ScriptProviderForJava.component -..\%__SRC%\misc\basprov.component %_DEST%\xml\basprov.component -..\%__SRC%\misc\dlgprov.component %_DEST%\xml\dlgprov.component -..\%__SRC%\misc\protocolhandler.component %_DEST%\xml\protocolhandler.component -..\%__SRC%\misc\scriptframe.component %_DEST%\xml\scriptframe.component -..\%__SRC%\misc\stringresource.component %_DEST%\xml\stringresource.component -..\%__SRC%\misc\vbaevents.component %_DEST%\xml\vbaevents.component # Extensions ..\%__SRC%\bin\*.oxt %_DEST%\bin\*.oxt diff --git a/scripting/prj/makefile.mk b/scripting/prj/makefile.mk new file mode 100644 index 000000000000..d30ff8a47e6b --- /dev/null +++ b/scripting/prj/makefile.mk @@ -0,0 +1,40 @@ +#************************************************************************* +# +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +# +# Copyright 2000, 2010 Oracle and/or its affiliates. +# +# OpenOffice.org - a multi-platform office productivity suite +# +# This file is part of OpenOffice.org. +# +# OpenOffice.org is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License version 3 +# only, as published by the Free Software Foundation. +# +# OpenOffice.org is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License version 3 for more details +# (a copy is included in the LICENSE file that accompanied this code). +# +# You should have received a copy of the GNU Lesser General Public License +# version 3 along with OpenOffice.org. If not, see +# <http://www.openoffice.org/license.html> +# for a copy of the LGPLv3 License. +# +#************************************************************************* + +PRJ=.. +TARGET=prj + +.INCLUDE : settings.mk + +.IF "$(VERBOSE)"!="" +VERBOSEFLAG := +.ELSE +VERBOSEFLAG := -s +.ENDIF + +all: + cd $(PRJ) && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS) $(gb_MAKETARGET) && $(GNUMAKE) $(VERBOSEFLAG) -r deliverlog |