diff options
author | David Tardon <dtardon@redhat.com> | 2012-05-24 17:13:03 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-05-29 14:36:41 +0200 |
commit | 2b3fc45d256b1969cd0bbd4601eb70d03801d07f (patch) | |
tree | 26cab22c19d4ea7a72408cd24e453b8085db1a8f /solenv/gbuild/tail_build_modules.mk | |
parent | 495943c872a6ba529505c22924b95f0c7a994e3e (diff) |
do not build tail_build modules outside of tail_build
There are several modules in tail_build now that are depended on by
other modules from postprocess (e.g., pyuno depends on 18npool). That
means that build.pl actually schedules i18npool (and its parents) for
build. This is fine for build.pl -P1, but it could be a problem for
build.pl -P2. It is also wasteful, because we are not actually using
tail_build to the full extent.
This gross hack schedules all modules that depend on any tail_build
module _after_ tail_build, so all modules that are in tail_build are
only build in tail_build.
Change-Id: I39840c1cbbfc5024f0009296416c628be028657a
Diffstat (limited to 'solenv/gbuild/tail_build_modules.mk')
-rw-r--r-- | solenv/gbuild/tail_build_modules.mk | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/solenv/gbuild/tail_build_modules.mk b/solenv/gbuild/tail_build_modules.mk new file mode 100644 index 000000000000..e5301f4d9728 --- /dev/null +++ b/solenv/gbuild/tail_build_modules.mk @@ -0,0 +1,48 @@ +# -*- 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) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com> +# (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. + +TAIL_BUILD_MODULES := + +gb_Module_Module := + +define gb_Module_add_moduledirs +TAIL_BUILD_MODULES += $(2) + +endef + +ifneq ($(value TAIL_BUILD_MK),) +include $(TAIL_BUILD_MK) +else +$(error TAIL_BUILD_MK must be set to path to Module_tail_build.mk) +endif + +.PHONY : get_modules + +get_modules : + @echo $(TAIL_BUILD_MODULES) + +# vim: set shiftwidth=4 tabstop=4 noexpandtab: |