From 31142378774c3aa6f4c137441e23c89b15355a31 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 29 Jun 2016 11:39:27 +0200 Subject: Call arch test through the new qmake based configure system Detect host and target architecture from within qmake, and set QT_ARCH accordingly. Change-Id: I30255f88c7645d197bd07355a1dff02b377cbbe8 Reviewed-by: Oswald Buddenhagen --- configure.json | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) (limited to 'configure.json') diff --git a/configure.json b/configure.json index 87fd5d7190..440e6a6b6a 100644 --- a/configure.json +++ b/configure.json @@ -200,6 +200,20 @@ }, "tests": { + "architecture": { + "description": "target architecture", + "type": "architecture", + "test": "arch", + "log": "arch" + }, + "host_architecture": { + "description": "host architecture", + "type": "architecture", + "test": "arch", + "host": true, + "pro": "arch_host.pro", + "log": "arch" + }, "GNUmake": { "description": "GNU make", "type": "gnumake" @@ -933,7 +947,7 @@ "description": "Verbose configure output", "autoDetect": false, "output": [ "verbose" ], - "priority": -3 + "priority": -4 }, "shared": { @@ -946,7 +960,7 @@ { "type": "publicQtConfig", "negative": true, "name": "static" }, { "type": "publicConfig", "negative": true, "name": "static" } ], - "priority": -2 + "priority": -3 }, "cross_compile": { "description": "Cross compiling", @@ -955,13 +969,24 @@ }, "compiler-flags": { "output": [ "compilerFlags" ], - "priority": -2 + "priority": -3 }, "gcc-sysroot": { "output": [ "gccSysroot" ], "condition": "input.sysroot != ''", + "priority": -3 + }, + "use_gold_linker": { + "description": "Using gold linker", + "condition": "tests.use_gold_linker", + "output": [ "privateConfig", "useGoldLinker" ], "priority": -2 }, + "architecture": { + "description": "Architecture", + "output": [ "architecture" ], + "priority": -1 + }, "pkg-config": { "description": "Using pkg-config", "autoDetect": "!config.darwin", @@ -972,12 +997,6 @@ ], "priority": -1 }, - "use_gold_linker": { - "description": "Using gold linker", - "condition": "tests.use_gold_linker", - "output": [ "privateConfig", "useGoldLinker" ], - "priority": -1 - }, "developer-build": { "description": "Developer build", -- cgit v1.2.3