summaryrefslogtreecommitdiff
path: root/tail_build
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2011-04-23 21:14:25 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2011-04-23 21:14:25 -0500
commit7c1026ab3f6d97960ef57b06abb0e605549458c6 (patch)
tree84e7961814f03414e35c32b1269adb897d4b4350 /tail_build
parent364dbc666a7140a3c29c2188695cfabdc20aa841 (diff)
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'
Diffstat (limited to 'tail_build')
-rw-r--r--tail_build/Makefile37
-rw-r--r--tail_build/README21
-rw-r--r--tail_build/prj/build.lst2
-rw-r--r--tail_build/prj/d.lst0
-rw-r--r--tail_build/prj/makefile.mk40
5 files changed, 100 insertions, 0 deletions
diff --git a/tail_build/Makefile b/tail_build/Makefile
new file mode 100644
index 000000000000..c4a6356fada0
--- /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 000000000000..1639f7837ad7
--- /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 000000000000..ea7813e30cff
--- /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 000000000000..e69de29bb2d1
--- /dev/null
+++ b/tail_build/prj/d.lst
diff --git a/tail_build/prj/makefile.mk b/tail_build/prj/makefile.mk
new file mode 100644
index 000000000000..e312a7ccab65
--- /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