From 764f2b2790e02f80ec67e85f23472dd4db6fc977 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Mon, 26 Dec 2011 12:31:21 +0100 Subject: gbuildize ure --- ure/Makefile | 40 ++++++++++++++++++++++++ ure/Module_ure.mk | 37 ++++++++++++++++++++++ ure/Package_distribution.mk | 38 +++++++++++++++++++++++ ure/Package_uretest.mk | 32 +++++++++++++++++++ ure/Rdb_ure.mk | 56 +++++++++++++++++++++++++++++++++ ure/Zip_uretest.mk | 54 ++++++++++++++++++++++++++++++++ ure/prj/build.lst | 2 +- ure/prj/d.lst | 11 ------- ure/prj/makefile.mk | 1 + ure/source/delzip | 0 ure/source/makefile.mk | 75 --------------------------------------------- 11 files changed, 259 insertions(+), 87 deletions(-) create mode 100644 ure/Makefile create mode 100644 ure/Module_ure.mk create mode 100644 ure/Package_distribution.mk create mode 100644 ure/Package_uretest.mk create mode 100644 ure/Rdb_ure.mk create mode 100644 ure/Zip_uretest.mk create mode 100644 ure/prj/makefile.mk delete mode 100644 ure/source/delzip delete mode 100644 ure/source/makefile.mk (limited to 'ure') diff --git a/ure/Makefile b/ure/Makefile new file mode 100644 index 000000000000..7bbbe6c703e6 --- /dev/null +++ b/ure/Makefile @@ -0,0 +1,40 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +#************************************************************************* +# +# 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 +# +# for a copy of the LGPLv3 License. +# +#************************************************************************* + +gb_PARTIALBUILD := T +ifeq ($(strip $(SOLARENV)),) +include $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/../solenv/gbuild/source_and_rerun.mk +else + +gb_SourceEnvAndRecurse_STAGE=gbuild +include $(SOLARENV)/gbuild/gbuild.mk + +$(eval $(call gb_Module_make_global_targets,$(shell ls $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/Module*.mk))) + +endif +# vim: set noet sw=4 ts=4: diff --git a/ure/Module_ure.mk b/ure/Module_ure.mk new file mode 100644 index 000000000000..0f75d4c812c7 --- /dev/null +++ b/ure/Module_ure.mk @@ -0,0 +1,37 @@ +# -*- Mode: makefile-gmake; 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. +# +# Major Contributor(s): +# Copyright (C) 2010 Red Hat, Inc., David Tardon +# (initial developer) +# +# All Rights Reserved. +# +# 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,ure)) + +$(eval $(call gb_Module_add_targets,ure,\ + Package_distribution \ + Package_uretest \ + Rdb_ure \ + Zip_uretest \ +)) + +# vim:set shiftwidth=4 softtabstop=4 expandtab: diff --git a/ure/Package_distribution.mk b/ure/Package_distribution.mk new file mode 100644 index 000000000000..81a39cf7a0a2 --- /dev/null +++ b/ure/Package_distribution.mk @@ -0,0 +1,38 @@ +# -*- Mode: makefile-gmake; 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. +# +# Major Contributor(s): +# Copyright (C) 2010 Red Hat, Inc., David Tardon +# (initial developer) +# +# All Rights Reserved. +# +# 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_Package_Package,ure_distribution,$(SRCDIR)/ure/source)) + +$(eval $(call gb_Package_add_file,ure_distribution,bin/ure/README,README)) +$(eval $(call gb_Package_add_file,ure_distribution,bin/ure/THIRDPARTYLICENSEREADME.html,THIRDPARTYLICENSEREADME.html)) +$(eval $(call gb_Package_add_file,ure_distribution,bin/ure/jvmfwk3.ini,jvmfwk3.ini)) +$(eval $(call gb_Package_add_file,ure_distribution,bin/ure/jvmfwk3rc,jvmfwk3rc)) +$(eval $(call gb_Package_add_file,ure_distribution,bin/ure/startup.sh,startup.sh)) +$(eval $(call gb_Package_add_file,ure_distribution,bin/ure/uno.ini,uno.ini)) +$(eval $(call gb_Package_add_file,ure_distribution,bin/ure/unorc,unorc)) + +# vim:set shiftwidth=4 softtabstop=4 expandtab: diff --git a/ure/Package_uretest.mk b/ure/Package_uretest.mk new file mode 100644 index 000000000000..6e2d2363c845 --- /dev/null +++ b/ure/Package_uretest.mk @@ -0,0 +1,32 @@ +# -*- Mode: makefile-gmake; 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. +# +# Major Contributor(s): +# Copyright (C) 2010 Red Hat, Inc., David Tardon +# (initial developer) +# +# All Rights Reserved. +# +# 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_Package_Package,ure_uretest,$(patsubst %/,%,$(dir $(call gb_Zip_get_target,uretest))))) + +$(eval $(call gb_Package_add_file,ure_uretest,bin/uretest.zip,uretest.zip)) + +# vim:set shiftwidth=4 softtabstop=4 expandtab: diff --git a/ure/Rdb_ure.mk b/ure/Rdb_ure.mk new file mode 100644 index 000000000000..b3b6531b95d4 --- /dev/null +++ b/ure/Rdb_ure.mk @@ -0,0 +1,56 @@ +# -*- Mode: makefile-gmake; 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. +# +# Major Contributor(s): +# Copyright (C) 2010 Red Hat, Inc., David Tardon +# (initial developer) +# +# All Rights Reserved. +# +# 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_Rdb_Rdb,ure/services)) + +$(eval $(call gb_Rdb_add_components,ure/services,\ + acceptor \ + binaryurp/source/binaryurp \ + bootstrap \ + connector \ + introspection \ + invocadapt \ + invocation \ + namingservice \ + proxyfac \ + reflection \ + stocservices \ + streams \ + textinstream \ + textoutstream \ + uuresolver \ +)) + +ifneq ($(SOLAR_JAVA),) +$(eval $(call gb_Rdb_add_components,ure/services,\ + javaloader \ + javavm \ + juh \ +)) +endif + +# vim:set shiftwidth=4 softtabstop=4 expandtab: diff --git a/ure/Zip_uretest.mk b/ure/Zip_uretest.mk new file mode 100644 index 000000000000..2c2bbb167de1 --- /dev/null +++ b/ure/Zip_uretest.mk @@ -0,0 +1,54 @@ +# -*- Mode: makefile-gmake; 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. +# +# Major Contributor(s): +# Copyright (C) 2010 Red Hat, Inc., David Tardon +# (initial developer) +# +# All Rights Reserved. +# +# 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,uretest,$(SRCDIR)/ure/source)) + +$(eval $(call gb_Zip_add_files,uretest,\ + uretest/JavaClient.java \ + uretest/JavaMain.java \ + uretest/JavaNative.java \ + uretest/JavaTest.java \ + uretest/Makefile \ + uretest/Makefile.pln \ + uretest/README \ + uretest/Runner.java \ + uretest/Tester.java \ + uretest/cppmain.cc \ + uretest/cppserver.cc \ + uretest/cpptest.cc \ + uretest/javaclient.mf.template \ + uretest/javamain.mf.template \ + uretest/javanative.mf.template \ + uretest/javatest.mf.template \ + uretest/runner.mf.template \ + uretest/tester.mf.template \ + uretest/types.idl \ + uretest/types.mf.template \ + uretest/version.map \ +)) + +# vim:set shiftwidth=4 softtabstop=4 expandtab: diff --git a/ure/prj/build.lst b/ure/prj/build.lst index 7618bf3299b7..57ce50deb981 100644 --- a/ure/prj/build.lst +++ b/ure/prj/build.lst @@ -1,2 +1,2 @@ ur ure : LIBXSLT:libxslt binaryurp cli_ure io javaunohelper remotebridges solenv stoc NULL -ur ure\source nmake - all ur_source NULL +ur ure\prj nmake - all ur_prj NULL diff --git a/ure/prj/d.lst b/ure/prj/d.lst index f9e28443b177..e69de29bb2d1 100644 --- a/ure/prj/d.lst +++ b/ure/prj/d.lst @@ -1,11 +0,0 @@ -mkdir: %_DEST%\bin\ure -mkdir: %_DEST%\xml\ure -..\%__SRC%\bin\uretest.zip %COMMON_DEST%\bin\uretest.zip -..\%__SRC%\misc\services.rdb %_DEST%\xml\ure\services.rdb -..\source\README %_DEST%\bin\ure\README -..\source\THIRDPARTYLICENSEREADME.html %_DEST%\bin\ure\THIRDPARTYLICENSEREADME.html -..\source\jvmfwk3.ini %_DEST%\bin\ure\jvmfwk3.ini -..\source\jvmfwk3rc %_DEST%\bin\ure\jvmfwk3rc -..\source\startup.sh %_DEST%\bin\ure\startup.sh -..\source\uno.ini %_DEST%\bin\ure\uno.ini -..\source\unorc %_DEST%\bin\ure\unorc diff --git a/ure/prj/makefile.mk b/ure/prj/makefile.mk new file mode 100644 index 000000000000..0997622e00f6 --- /dev/null +++ b/ure/prj/makefile.mk @@ -0,0 +1 @@ +.INCLUDE : gbuildbridge.mk diff --git a/ure/source/delzip b/ure/source/delzip deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/ure/source/makefile.mk b/ure/source/makefile.mk deleted file mode 100644 index 1f7589065e15..000000000000 --- a/ure/source/makefile.mk +++ /dev/null @@ -1,75 +0,0 @@ -#************************************************************************* -# -# 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 -# -# for a copy of the LGPLv3 License. -# -#************************************************************************* - -PRJ = .. -PRJNAME = ure -TARGET = source - -ZIP1TARGET = uretest -ZIP1FLAGS = -r -ZIP1LIST = uretest - -my_components = \ - acceptor \ - component/binaryurp/source/binaryurp \ - bootstrap \ - connector \ - introspection \ - invocadapt \ - invocation \ - namingservice \ - proxyfac \ - reflection \ - stocservices \ - streams \ - textinstream \ - textoutstream \ - uuresolver - -.IF "$(SOLAR_JAVA)" != "" - -my_components += \ - javaloader \ - javavm \ - juh - -.ENDIF - -.INCLUDE: settings.mk -.INCLUDE: target.mk - -ALLTAR : $(MISC)/services.rdb - -$(MISC)/services.rdb .ERRREMOVE : $(SOLARENV)/bin/packcomponents.xslt \ - $(MISC)/services.input $(my_components:^"$(SOLARXMLDIR)/":+".component") - $(XSLTPROC) --nonet --stringparam prefix $(SOLARXMLDIR)/ -o $@ \ - $(SOLARENV)/bin/packcomponents.xslt $(MISC)/services.input - -$(MISC)/services.input : - echo \ - '$(my_components:^"":+".component")' \ - > $@ -- cgit