mkspecs for AArch64 (aka arm64).
authorLisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>
Sat, 15 Mar 2014 18:35:00 +0000 (15:35 -0300)
committerRaspbian forward porter <root@raspbian.org>
Sun, 14 Jun 2015 16:38:43 +0000 (16:38 +0000)
Patch by Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
licensed under either Public Domain or BSD:

<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=735488#179>

Change-Id: I21f17953234cfb176bac023e52ecdc927fc5c1a9

Gbp-Pq: Name aarch64_arm64_mkspecs.patch

configure
mkspecs/linux-g++-aarch64/qmake.conf [new file with mode: 0644]
mkspecs/linux-g++-aarch64/qplatformdefs.h [new file with mode: 0644]

index eb88b72ad2e77abbd22a0b317183ab1feaa90bc8..9674a0eac4b3daf80938e5ae503a9d3886db53be 100755 (executable)
--- a/configure
+++ b/configure
@@ -2808,6 +2808,9 @@ if [ "$CFG_EMBEDDED" != "no" ]; then
             *86_64)
                 PLATFORM=qws/linux-x86_64-g++
                 ;;
+            aarch64)
+                PLATFORM=linux-aarch64-g++
+                ;;
             *)
                 PLATFORM=qws/linux-generic-g++
                 ;;
diff --git a/mkspecs/linux-g++-aarch64/qmake.conf b/mkspecs/linux-g++-aarch64/qmake.conf
new file mode 100644 (file)
index 0000000..ebc0a92
--- /dev/null
@@ -0,0 +1,27 @@
+#
+# qmake configuration for linux-g++
+#
+# Written for GNU/Linux platforms that have both lib and lib64 directories,
+# like the AMD Opteron.
+#
+
+MAKEFILE_GENERATOR    = UNIX
+TARGET_PLATFORM       = unix
+TEMPLATE              = app
+CONFIG               += qt warn_on release incremental link_prl gdb_dwarf_index
+QT                   += core gui
+QMAKE_INCREMENTAL_STYLE = sublib
+
+QMAKE_CFLAGS     =
+QMAKE_LFLAGS     =
+
+QMAKE_CFLAGS_RELEASE   += -O2
+
+include(../common/linux.conf)
+include(../common/gcc-base-unix.conf)
+include(../common/g++-unix.conf)
+
+QMAKE_LIBDIR_X11      = /usr/X11R6/lib64
+QMAKE_LIBDIR_OPENGL   = /usr/X11R6/lib64
+
+load(qt_config)
diff --git a/mkspecs/linux-g++-aarch64/qplatformdefs.h b/mkspecs/linux-g++-aarch64/qplatformdefs.h
new file mode 100644 (file)
index 0000000..562128b
--- /dev/null
@@ -0,0 +1,42 @@
+/****************************************************************************
+**
+** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the qmake spec of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia.  For licensing terms and
+** conditions see http://qt.digia.com/licensing.  For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file.  Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights.  These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file.  Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "../linux-g++/qplatformdefs.h"