From 27fc8b56c4d7e737becc5144384848ab2a86a693 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Tue, 1 May 2012 12:12:17 +0200 Subject: utilize the tail_build concept for cross-compilation There is a new module cross_tail_build that serves the same purpose for the build side of cross-compilation (started from cross_toolset) as tail_build for the host side. Change-Id: Ic16bae9a7197a1f31cc2dcf31b16bbac68c3300f --- Module_cross_tail_build.mk | 39 +++++++++++++++++++++++++++++++++++++++ cross_tail_build/Makefile | 38 ++++++++++++++++++++++++++++++++++++++ cross_tail_build/README | 4 ++++ cross_tail_build/prj/build.lst | 2 ++ cross_tail_build/prj/d.lst | 0 cross_toolset/prj/build.lst | 2 +- 6 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 Module_cross_tail_build.mk create mode 100644 cross_tail_build/Makefile create mode 100644 cross_tail_build/README create mode 100644 cross_tail_build/prj/build.lst create mode 100644 cross_tail_build/prj/d.lst diff --git a/Module_cross_tail_build.mk b/Module_cross_tail_build.mk new file mode 100644 index 000000000000..76cd46f62f0d --- /dev/null +++ b/Module_cross_tail_build.mk @@ -0,0 +1,39 @@ +# -*- 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 +# (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,cross_tail_build)) + +$(eval $(call gb_Module_add_moduledirs,cross_tail_build,\ + idl \ + oovbaapi \ + rsc \ + unodevtools \ + unotools \ + xmlhelp \ +)) + +# vim: set shiftwidth=4 tabstop=4 noexpandtab: diff --git a/cross_tail_build/Makefile b/cross_tail_build/Makefile new file mode 100644 index 000000000000..5fe88caf29c1 --- /dev/null +++ b/cross_tail_build/Makefile @@ -0,0 +1,38 @@ +# -*- 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))))/../config_build.mk +endif + +include $(SOLARENV)/gbuild/gbuild.mk + +$(eval $(call gb_Module_make_global_targets,$(SRCDIR)/Module_cross_tail_build.mk)) + +# vim: set noet sw=4 ts=4: diff --git a/cross_tail_build/README b/cross_tail_build/README new file mode 100644 index 000000000000..fe1adddc54c4 --- /dev/null +++ b/cross_tail_build/README @@ -0,0 +1,4 @@ +This is "tail build" for the build side of cross-compilation + +See [git:tail_build/README] for details what it is good for and how to +add a module to it. diff --git a/cross_tail_build/prj/build.lst b/cross_tail_build/prj/build.lst new file mode 100644 index 000000000000..84ee550fcb53 --- /dev/null +++ b/cross_tail_build/prj/build.lst @@ -0,0 +1,2 @@ +ctb cross_tail_build :: BERKELEYDB:berkeleydb DESKTOP:codemaker comphelper cppuhelper javaunohelper DESKTOP:l10ntools LIBXSLT:libxslt offapi solenv tools ucbhelper unoil NULL +ctb tail_build\prj nmake - all ctb_prj NULL diff --git a/cross_tail_build/prj/d.lst b/cross_tail_build/prj/d.lst new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/cross_toolset/prj/build.lst b/cross_toolset/prj/build.lst index 045761815926..464000d91727 100644 --- a/cross_toolset/prj/build.lst +++ b/cross_toolset/prj/build.lst @@ -1 +1 @@ -crs cross_toolset :: autodoc oovbaapi unodevtools idl rsc setup_native icc xmlhelp shell DICTIONARIES:dictionaries NULL +crs cross_toolset :: autodoc cross_tail_build setup_native icc shell DICTIONARIES:dictionaries NULL -- cgit