Skip to content

Commit

Permalink
Clean up QT_QPA_DEFAULT_PLATFORM handling
Browse files Browse the repository at this point in the history
This is now centralized in configure.pri except where it explicitly
needs to be overridden.

Change-Id: If829d6b5eecf9a5fc403d0a0600d12c9e5781525
Reviewed-by: Oswald Buddenhagen <[email protected]>
  • Loading branch information
jakepetroules committed Oct 5, 2016
1 parent fd7e00a commit 12bc984
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 13 deletions.
2 changes: 0 additions & 2 deletions mkspecs/android-clang/qplatformdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
#ifndef QPLATFORMDEFS_H
#define QPLATFORMDEFS_H

#define QT_QPA_DEFAULT_PLATFORM_NAME "android"

// Get Qt defines/settings

#include "qglobal.h"
Expand Down
2 changes: 0 additions & 2 deletions mkspecs/android-g++/qplatformdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
#ifndef QPLATFORMDEFS_H
#define QPLATFORMDEFS_H

#define QT_QPA_DEFAULT_PLATFORM_NAME "android"

// Get Qt defines/settings

#include "qglobal.h"
Expand Down
2 changes: 0 additions & 2 deletions mkspecs/common/ios/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# Common build settings for all iOS configurations
#

QT_QPA_DEFAULT_PLATFORM = ios

QMAKE_XCODE_CODE_SIGN_IDENTITY = "iPhone Developer"

# iOS build tools
Expand Down
3 changes: 0 additions & 3 deletions mkspecs/common/qcc-base-qnx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ include(qcc-base.conf)

QMAKE_PLATFORM = qnx $$QMAKE_PLATFORM

#Choose qnx QPA Plugin as default
QT_QPA_DEFAULT_PLATFORM = qnx

QMAKE_LFLAGS_SHLIB += -shared
QMAKE_LFLAGS_PLUGIN += $$QMAKE_LFLAGS_SHLIB
QMAKE_LFLAGS_SONAME += -Wl,-soname,
Expand Down
3 changes: 0 additions & 3 deletions mkspecs/haiku-g++/qmake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ QMAKE_PLATFORM = haiku

include(../common/unix.conf)

# Choose haiku QPA Plugin as default
QT_QPA_DEFAULT_PLATFORM = haiku

QMAKE_LIBS =
QMAKE_INCDIR =
QMAKE_LIBDIR =
Expand Down
4 changes: 3 additions & 1 deletion src/gui/configure.pri
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ defineTest(qtConfTest_qpaDefaultPlatform) {
else: win32: name = windows
else: android: name = android
else: macos: name = cocoa
else: ios: name = ios
else: if(ios|tvos): name = ios
else: watchos: name = minimal
else: qnx: name = qnx
else: integrity: name = integrityfb
else: haiku: name = haiku
else: name = xcb

$${1}.value = $$name
Expand Down

0 comments on commit 12bc984

Please sign in to comment.