summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2013-02-10 14:26:14 +0100
committerMatúš Kukan <matus.kukan@gmail.com>2013-02-18 15:44:01 +0000
commita811e047be0bb30a7648d540f9a9c8a5bdae8f67 (patch)
treeb7a22e2bb27209e9ac7fce039e83d4bfbaf3ffac
parent7f51d6fa0d6d38532cee447ffc65dea4b3583d7c (diff)
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>
-rw-r--r--Makefile.cross17
-rw-r--r--Makefile.in12
-rw-r--r--Module_cross_toolset.mk (renamed from Module_cross_tail_build.mk)11
-rw-r--r--Module_tail_build.mk2
-rw-r--r--cross_tail_build/Makefile37
-rw-r--r--cross_tail_build/README4
-rw-r--r--cross_tail_build/prj/build.lst2
-rw-r--r--cross_tail_build/prj/d.lst0
8 files changed, 31 insertions, 54 deletions
diff --git a/Makefile.cross b/Makefile.cross
new file mode 100644
index 000000000000..d3af6804a0af
--- /dev/null
+++ b/Makefile.cross
@@ -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:
diff --git a/Makefile.in b/Makefile.in
index e3472d6bba54..c9f223764988 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -46,7 +46,7 @@ else # MAKE_RESTARTS
all: build
ifeq ($(gb_Side),)
-export gb_Side:=host
+gb_Side:=host
endif
include $(BUILDDIR)/config_$(gb_Side).mk
@@ -291,13 +291,11 @@ endif
build-nocheck : export SKIP_TESTS := YES
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
-# We need to build icu for the build platform, as building icu for the host
-# platform requires tools built as part of icu that can run on the build
-# platform. see --with-cross-build in icu/ExternalProject_icu.mk
- $(GNUMAKE) gb_Side=build icu
-#
- cd cross_tail_build && $(GNUMAKE) -j $(PARALLELISM) $(GMAKE_OPTIONS)
+ $(GNUMAKE) gb_Side=build solenv
+ $(GNUMAKE) -j $(PARALLELISM) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.cross
#
# Install
diff --git a/Module_cross_tail_build.mk b/Module_cross_toolset.mk
index 046ee61dd9bd..fb475725bb47 100644
--- a/Module_cross_tail_build.mk
+++ b/Module_cross_toolset.mk
@@ -25,9 +25,9 @@
# 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_Module,cross_toolset))
-$(eval $(call gb_Module_add_moduledirs,cross_tail_build,\
+$(eval $(call gb_Module_add_moduledirs,cross_toolset,\
autodoc \
basegfx \
binaryurp \
@@ -38,7 +38,7 @@ $(eval $(call gb_Module_add_moduledirs,cross_tail_build,\
cosv \
cppu \
cppuhelper \
- cppunit \
+ external \
i18npool \
i18nutil \
idl \
@@ -62,6 +62,7 @@ $(eval $(call gb_Module_add_moduledirs,cross_tail_build,\
sax \
setup_native \
shell \
+ soltools \
stoc \
store \
tools \
@@ -75,12 +76,16 @@ $(eval $(call gb_Module_add_moduledirs,cross_tail_build,\
xmlreader \
$(call gb_Helper_optional,BOOST,boost) \
$(call gb_Helper_optional,CLUCENE,clucene) \
+ $(call gb_Helper_optional,CPPUNIT,cppunit) \
$(call gb_Helper_optional_for_host,DESKTOP, \
helpcompiler \
xmlhelp \
) \
$(call gb_Helper_optional,EXPAT,expat) \
+ $(call gb_Helper_optional,ICU,icu) \
$(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,UCPP,ucpp) \
$(call gb_Helper_optional,ZLIB,zlib) \
diff --git a/Module_tail_build.mk b/Module_tail_build.mk
index 12e0d7eab871..3f9e2d134e99 100644
--- a/Module_tail_build.mk
+++ b/Module_tail_build.mk
@@ -113,9 +113,9 @@ $(eval $(call gb_Module_add_moduledirs,tail_build,\
$(call gb_Helper_optional,WPD,libwpd) \
$(call gb_Helper_optional,WPG,libwpg) \
$(call gb_Helper_optional,WPS,libwps) \
+ $(call gb_Helper_optional,LIBXML2,libxml2) \
libxmlsec \
$(call gb_Helper_optional,LIBXSLT,libxslt) \
- $(call gb_Helper_optional,LIBXML2,libxml2) \
lingucomponent \
linguistic \
lotuswordpro \
diff --git a/cross_tail_build/Makefile b/cross_tail_build/Makefile
deleted file mode 100644
index 5fda0ecda371..000000000000
--- a/cross_tail_build/Makefile
+++ /dev/null
@@ -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:
diff --git a/cross_tail_build/README b/cross_tail_build/README
deleted file mode 100644
index fe1adddc54c4..000000000000
--- a/cross_tail_build/README
+++ /dev/null
@@ -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.
diff --git a/cross_tail_build/prj/build.lst b/cross_tail_build/prj/build.lst
deleted file mode 100644
index c3d8c723a420..000000000000
--- a/cross_tail_build/prj/build.lst
+++ /dev/null
@@ -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
diff --git a/cross_tail_build/prj/d.lst b/cross_tail_build/prj/d.lst
deleted file mode 100644
index e69de29bb2d1..000000000000
--- a/cross_tail_build/prj/d.lst
+++ /dev/null