[Libreoffice-commits] .: Module_tail_build.mk tail_build/Makefile tail_build/prj tail_build/README

Norbert Thiebaud nthiebaud at kemper.freedesktop.org
Sat Apr 23 19:15:30 PDT 2011


 Module_tail_build.mk       |   39 +++++++++++++++++++++++++++++++++++++++
 tail_build/Makefile        |   37 +++++++++++++++++++++++++++++++++++++
 tail_build/README          |   21 +++++++++++++++++++++
 tail_build/prj/build.lst   |    2 ++
 tail_build/prj/makefile.mk |   40 ++++++++++++++++++++++++++++++++++++++++
 5 files changed, 139 insertions(+)

New commits:
commit 6e11c5d05b7467fd97a6d9fd95f5d73b62de8ff3
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Sat Apr 23 21:14:25 2011 -0500

    create a pseudo-module tail_build to take advantage of gbuild features
    
    gbuild allow for multiple 'module' to be build as one Makefile.
    This help with parallelism.
    This module build all the 'tail' end module. these that are not
    dependencies or other dmake-based module, and that pseudo module
    is declared as a dependency of postprocess instead of the individual
    modules it 'group'

diff --git a/Module_tail_build.mk b/Module_tail_build.mk
new file mode 100644
index 0000000..e2369f4
--- /dev/null
+++ b/Module_tail_build.mk
@@ -0,0 +1,39 @@
+#
+# 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. 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
+# Norbert Thiebaud <nthiebaud at gmail.com> (C) 2011, All Rights Reserved.
+#
+# 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,tail_end))
+
+$(eval $(call gb_Module_add_moduledirs,tail_end,\
+    writerfilter \
+    chart2 \
+    cui \
+    dbaccess \
+    formula \
+    sc \
+    sd \
+    slideshow \
+    starmath \
+    sw \
+))
+
+# vim: set noet ts=4 sw=4:
diff --git a/tail_build/Makefile b/tail_build/Makefile
new file mode 100644
index 0000000..c4a6356
--- /dev/null
+++ b/tail_build/Makefile
@@ -0,0 +1,37 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+# 
+# Copyright 2009 by Sun Microsystems, Inc.
+#
+# 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
+
+GBUILDDIR := $(SOLARENV)/gbuild
+include $(GBUILDDIR)/gbuild.mk
+
+$(eval $(call gb_Module_make_global_targets,$(SRC_ROOT)/Module_tail_build.mk))
+
+# vim: set noet sw=4 ts=4:
diff --git a/tail_build/README b/tail_build/README
new file mode 100644
index 0000000..1639f78
--- /dev/null
+++ b/tail_build/README
@@ -0,0 +1,21 @@
+
+This module exist only to take advantage of the ability of gbuild to build
+multiple modules in one single Makefile.
+
+A few module that normally get built at the end of the build process
+are already converted. this 'pseudo-module' build them all as one.
+
+As module get converted to gbuild they can be added to this module
+if they fix the neceesary pre-requisite. that is:
+
+To qualify a module must not be the dependant of any other module,
+except postprocess or if the other module itself is under tail_build
+
+To migrate a module <foo> under tail_build, one should:
+
+Merge the dependencies declared in <foo>/prj/build.lst into tail_build/prj/build.lst
+Remove the module <foo> from postprocess/prj/build.lst dependencies
+
+Add the module name in Module_tail_build.mk at the root of bootstrap
+
+
diff --git a/tail_build/prj/build.lst b/tail_build/prj/build.lst
new file mode 100644
index 0000000..ea7813e
--- /dev/null
+++ b/tail_build/prj/build.lst
@@ -0,0 +1,2 @@
+tb      tail_build : BOOST:boost LIBXSLT:libxslt MDDS:mdds MESA:Mesa TRANSLATIONS:translations animations avmedia basegfx canvas comphelper connectivity cppcanvas cppu cppuhelper fileaccess filter lotuswordpro offapi offuh oovbaapi oox package qadevOOo sal sfx2 soltools stoc stoc svtools svx test toolkit tools ucbhelper unotools unoxml unoxml ure uui vbahelper vcl writerperfect xmlscript  NULL
+tb tail_build\prj nmake - all tb_prj   NULL
diff --git a/tail_build/prj/d.lst b/tail_build/prj/d.lst
new file mode 100644
index 0000000..e69de29
diff --git a/tail_build/prj/makefile.mk b/tail_build/prj/makefile.mk
new file mode 100644
index 0000000..e312a7c
--- /dev/null
+++ b/tail_build/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


More information about the Libreoffice-commits mailing list