Make building of cross-toolset build.pl and dmake free.
Adds more modules to Module_cross_*.mk. Change-Id: I9a7a12ff07649262355bfa82bdf09fbf93b1530e Reviewed-on: https://gerrit.libreoffice.org/2240 Reviewed-by: Matúš Kukan <matus.kukan@gmail.com> Tested-by: Matúš Kukan <matus.kukan@gmail.com>
This commit is contained in:
17
Makefile.cross
Normal file
17
Makefile.cross
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
||||||
|
#
|
||||||
|
# This file is part of the LibreOffice project.
|
||||||
|
#
|
||||||
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
#
|
||||||
|
|
||||||
|
include $(dir $(realpath $(firstword $(MAKEFILE_LIST))))config_build.mk
|
||||||
|
|
||||||
|
gb_Side := build
|
||||||
|
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:
|
12
Makefile.in
12
Makefile.in
@@ -46,7 +46,7 @@ else # MAKE_RESTARTS
|
|||||||
all: build
|
all: build
|
||||||
|
|
||||||
ifeq ($(gb_Side),)
|
ifeq ($(gb_Side),)
|
||||||
export gb_Side:=host
|
gb_Side:=host
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include $(BUILDDIR)/config_$(gb_Side).mk
|
include $(BUILDDIR)/config_$(gb_Side).mk
|
||||||
@@ -291,13 +291,11 @@ endif
|
|||||||
build-nocheck : export SKIP_TESTS := YES
|
build-nocheck : export SKIP_TESTS := YES
|
||||||
build-nocheck : build
|
build-nocheck : build
|
||||||
|
|
||||||
|
# Ideally solenv would be also in Module_cross_toolset.mk
|
||||||
|
# but one would need to chase and add missing dependencies.
|
||||||
cross-toolset: bootstrap fetch
|
cross-toolset: bootstrap fetch
|
||||||
# We need to build icu for the build platform, as building icu for the host
|
$(GNUMAKE) gb_Side=build solenv
|
||||||
# platform requires tools built as part of icu that can run on the build
|
$(GNUMAKE) -j $(PARALLELISM) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.cross
|
||||||
# platform. see --with-cross-build in icu/ExternalProject_icu.mk
|
|
||||||
$(GNUMAKE) gb_Side=build icu
|
|
||||||
#
|
|
||||||
cd cross_tail_build && $(GNUMAKE) -j $(PARALLELISM) $(GMAKE_OPTIONS)
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Install
|
# Install
|
||||||
|
@@ -25,9 +25,9 @@
|
|||||||
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
|
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
|
||||||
# instead of those above.
|
# instead of those above.
|
||||||
|
|
||||||
$(eval $(call gb_Module_Module,cross_tail_build))
|
$(eval $(call gb_Module_Module,cross_toolset))
|
||||||
|
|
||||||
$(eval $(call gb_Module_add_moduledirs,cross_tail_build,\
|
$(eval $(call gb_Module_add_moduledirs,cross_toolset,\
|
||||||
autodoc \
|
autodoc \
|
||||||
basegfx \
|
basegfx \
|
||||||
binaryurp \
|
binaryurp \
|
||||||
@@ -38,7 +38,7 @@ $(eval $(call gb_Module_add_moduledirs,cross_tail_build,\
|
|||||||
cosv \
|
cosv \
|
||||||
cppu \
|
cppu \
|
||||||
cppuhelper \
|
cppuhelper \
|
||||||
cppunit \
|
external \
|
||||||
i18npool \
|
i18npool \
|
||||||
i18nutil \
|
i18nutil \
|
||||||
idl \
|
idl \
|
||||||
@@ -62,6 +62,7 @@ $(eval $(call gb_Module_add_moduledirs,cross_tail_build,\
|
|||||||
sax \
|
sax \
|
||||||
setup_native \
|
setup_native \
|
||||||
shell \
|
shell \
|
||||||
|
soltools \
|
||||||
stoc \
|
stoc \
|
||||||
store \
|
store \
|
||||||
tools \
|
tools \
|
||||||
@@ -75,12 +76,16 @@ $(eval $(call gb_Module_add_moduledirs,cross_tail_build,\
|
|||||||
xmlreader \
|
xmlreader \
|
||||||
$(call gb_Helper_optional,BOOST,boost) \
|
$(call gb_Helper_optional,BOOST,boost) \
|
||||||
$(call gb_Helper_optional,CLUCENE,clucene) \
|
$(call gb_Helper_optional,CLUCENE,clucene) \
|
||||||
|
$(call gb_Helper_optional,CPPUNIT,cppunit) \
|
||||||
$(call gb_Helper_optional_for_host,DESKTOP, \
|
$(call gb_Helper_optional_for_host,DESKTOP, \
|
||||||
helpcompiler \
|
helpcompiler \
|
||||||
xmlhelp \
|
xmlhelp \
|
||||||
) \
|
) \
|
||||||
$(call gb_Helper_optional,EXPAT,expat) \
|
$(call gb_Helper_optional,EXPAT,expat) \
|
||||||
|
$(call gb_Helper_optional,ICU,icu) \
|
||||||
$(call gb_Helper_optional,LIBLANGTAG,liblangtag) \
|
$(call gb_Helper_optional,LIBLANGTAG,liblangtag) \
|
||||||
|
$(call gb_Helper_optional,LIBXML2,libxml2) \
|
||||||
|
$(call gb_Helper_optional,LIBXSLT,libxslt) \
|
||||||
$(call gb_Helper_optional,QADEVOOO,qadevOOo) \
|
$(call gb_Helper_optional,QADEVOOO,qadevOOo) \
|
||||||
$(call gb_Helper_optional,UCPP,ucpp) \
|
$(call gb_Helper_optional,UCPP,ucpp) \
|
||||||
$(call gb_Helper_optional,ZLIB,zlib) \
|
$(call gb_Helper_optional,ZLIB,zlib) \
|
@@ -113,9 +113,9 @@ $(eval $(call gb_Module_add_moduledirs,tail_build,\
|
|||||||
$(call gb_Helper_optional,WPD,libwpd) \
|
$(call gb_Helper_optional,WPD,libwpd) \
|
||||||
$(call gb_Helper_optional,WPG,libwpg) \
|
$(call gb_Helper_optional,WPG,libwpg) \
|
||||||
$(call gb_Helper_optional,WPS,libwps) \
|
$(call gb_Helper_optional,WPS,libwps) \
|
||||||
|
$(call gb_Helper_optional,LIBXML2,libxml2) \
|
||||||
libxmlsec \
|
libxmlsec \
|
||||||
$(call gb_Helper_optional,LIBXSLT,libxslt) \
|
$(call gb_Helper_optional,LIBXSLT,libxslt) \
|
||||||
$(call gb_Helper_optional,LIBXML2,libxml2) \
|
|
||||||
lingucomponent \
|
lingucomponent \
|
||||||
linguistic \
|
linguistic \
|
||||||
lotuswordpro \
|
lotuswordpro \
|
||||||
|
@@ -1,37 +0,0 @@
|
|||||||
# -*- 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.
|
|
||||||
#
|
|
||||||
#*************************************************************************
|
|
||||||
|
|
||||||
include $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/../config_build.mk
|
|
||||||
|
|
||||||
export gb_Side=build
|
|
||||||
|
|
||||||
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:
|
|
@@ -1,4 +0,0 @@
|
|||||||
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.
|
|
@@ -1,2 +0,0 @@
|
|||||||
ctb cross_tail_build :: CPPUNIT:cppunit EXPAT:expat external ICU:icu LIBXML2:libxml2 LIBXSLT:libxslt solenv soltools NULL
|
|
||||||
ctb tail_build\prj nmake - all ctb_prj NULL
|
|
Reference in New Issue
Block a user