From 8d720921ddda76fcf77c0f7ebc5ac0b873ab1595 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Fri, 3 Jul 2015 16:06:59 +0200 Subject: [PATCH] Add win32-g++-oe mkspec that uses the OE_ environment. Upstream-Status: Inappropriate [embedded specific] too OE specific, probably cannot be upstreamed Change-Id: Ic60b32f88ee6a792b0d8938e40e2d6cb19fb93aa --- mkspecs/win32-g++-oe/qmake.conf | 31 ++++++++++++++++++++ mkspecs/win32-g++-oe/qplatformdefs.h | 42 ++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 mkspecs/win32-g++-oe/qmake.conf create mode 100644 mkspecs/win32-g++-oe/qplatformdefs.h diff --git a/mkspecs/win32-g++-oe/qmake.conf b/mkspecs/win32-g++-oe/qmake.conf new file mode 100644 index 0000000000..ab759e2093 --- /dev/null +++ b/mkspecs/win32-g++-oe/qmake.conf @@ -0,0 +1,31 @@ +# +# qmake configuration for win32-g++ +# +# Written for MinGW-w64 / gcc 5.3 or higher +# +# Cross compile example for i686-w64-mingw32-g++: +# configure -xplatform win32-g++ -device-option CROSS_COMPILE=i686-w64-mingw32- +# + +include(../common/g++-win32.conf) + +# modifications to g++-win32.conf + +QMAKE_CC = $$(OE_QMAKE_CC) +QMAKE_CFLAGS += -fno-keep-inline-dllexport $$(OE_QMAKE_CFLAGS) +QMAKE_CFLAGS_WARN_ON += -Wextra + +QMAKE_CXX = $$(OE_QMAKE_CXX) +QMAKE_CXXFLAGS += -fno-keep-inline-dllexport +QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON + +QMAKE_LINK = $$(OE_QMAKE_LINK) +QMAKE_LINK_C = $$(OE_QMAKE_CC) +QMAKE_LFLAGS = $$(OE_QMAKE_LDFLAGS) + +QMAKE_LIB = $$(OE_QMAKE_AR) -rc +QMAKE_RC = $$(RC) + +QMAKE_STRIP = $$(OE_QMAKE_STRIP) + +load(qt_config) diff --git a/mkspecs/win32-g++-oe/qplatformdefs.h b/mkspecs/win32-g++-oe/qplatformdefs.h new file mode 100644 index 0000000000..9d63527955 --- /dev/null +++ b/mkspecs/win32-g++-oe/qplatformdefs.h @@ -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 "../win32-g++/qplatformdefs.h"