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
This commit is contained in:
David Tardon 2012-05-01 12:12:17 +02:00
parent a0fd9de706
commit 27fc8b56c4
6 changed files with 84 additions and 1 deletions

View file

@ -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 <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.
$(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:

38
cross_tail_build/Makefile Normal file
View file

@ -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
# <http://www.openoffice.org/license.html>
# 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:

4
cross_tail_build/README Normal file
View file

@ -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.

View file

@ -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

View file

View file

@ -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