2 #############################################################################
4 ## Copyright (C) 2015 The Qt Company Ltd.
5 ## Contact: http://www.qt.io/licensing/
7 ## This file is the build configuration utility of the Qt Toolkit.
9 ## $QT_BEGIN_LICENSE:LGPL$
10 ## Commercial License Usage
11 ## Licensees holding valid commercial Qt licenses may use this file in
12 ## accordance with the commercial license agreement provided with the
13 ## Software or, alternatively, in accordance with the terms contained in
14 ## a written agreement between you and The Qt Company. For licensing terms
15 ## and conditions see http://www.qt.io/terms-conditions. For further
16 ## information use the contact form at http://www.qt.io/contact-us.
18 ## GNU Lesser General Public License Usage
19 ## Alternatively, this file may be used under the terms of the GNU Lesser
20 ## General Public License version 2.1 or version 3 as published by the Free
21 ## Software Foundation and appearing in the file LICENSE.LGPLv21 and
22 ## LICENSE.LGPLv3 included in the packaging of this file. Please review the
23 ## following information to ensure the GNU Lesser General Public License
24 ## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
25 ## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
27 ## As a special exception, The Qt Company gives you certain additional
28 ## rights. These rights are described in The Qt Company LGPL Exception
29 ## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
31 ## GNU General Public License Usage
32 ## Alternatively, this file may be used under the terms of the GNU
33 ## General Public License version 3.0 as published by the Free Software
34 ## Foundation and appearing in the file LICENSE.GPL included in the
35 ## packaging of this file. Please review the following information to
36 ## ensure the GNU General Public License version 3.0 requirements will be
37 ## met: http://www.gnu.org/copyleft/gpl.html.
41 #############################################################################
46 # We will assume that if TOOLCHAIN_PATH is not set, that other required actions have not been done either
47 # so advise the user - N.B.: PATH & PKG_CONFIG_PATH may already be set to system values so we can't
48 # simply check for them being unset.
49 if [ -z "$TOOLCHAIN_PATH" ]; then
51 echo "TOOLCHAIN_PATH must be set to the path of the columbus toolchain, e.g.:" 1>&2
52 echo " export TOOLCHAIN_PATH=/opt/toolchains/columbus/cs2007q3-glibc2.5-arm7" 1>&2
53 echo "PATH should have the path to toolchain's bin dir at beginning, e.g.:" 1>&2
54 echo " export PATH=\$TOOLCHAIN_PATH/bin:\$PATH" 1>&2
55 echo "PKG_CONFIG_PREFIX should have the prefix for pkg config, e.g.:" 1>&2
56 echo " export PKG_CONFIG_PREFIX=\$TOOLCHAIN_PATH/arm-none-linux-gnueabi" 1>&2
57 echo "PKG_CONFIG_PATH must be set to the path(s) to pkg config .pc file location(s), e.g.:" 1>&2
58 echo " export PKG_CONFIG_PATH=\$PKG_CONFIG_PREFIX/libc/lib/pkgconfig:\$PKG_CONFIG_PREFIX/libc/usr/lib/pkgconfig" 1>&2
63 # We assume the current dir is the depot and we are not shadow building
64 # Blast the mkspec we use, if it exists, and copy it out of debian dir
65 rm -rf mkspecs/linux-g++-cross
66 cp -a debian/mkspecs/linux-g++-cross mkspecs/
68 # maemo does the next two lines, no idea why, left them for referance
69 # rm -rf mkspecs/glibc-g++
70 # cp -a mkspecs/linux-g++ mkspecs/glibc-g++
72 # Run configure - we take extra arguments if given
73 exec ./configure -nokia-developer \
77 -docdir "/usr/share/qt4/doc" \
78 -headerdir "/usr/include/qt4" \
79 -datadir "/usr/share/qt4" \
80 -plugindir "/usr/lib/qt4/plugins" \
81 -translationdir "/usr/share/qt4/translations" \
82 -sysconfdir "/etc/xdg" \
84 -xplatform linux-g++-cross \
89 -no-separate-debug-info \
103 -I${TOOLCHAIN_PATH}/libc/usr/include/freetype2 \
120 -DQT_QLOCALE_USES_FCVT \