|
1 |
| -/**************************************************************************** |
2 |
| -** |
3 |
| -** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). |
4 |
| -** Copyright (C) 2012 Intel Corporation |
5 |
| -** Contact: http://www.qt-project.org/legal |
6 |
| -** |
7 |
| -** This file is part of the FOO module of the Qt Toolkit. |
8 |
| -** |
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 Digia. For licensing terms and |
15 |
| -** conditions see http://qt.digia.com/licensing. For further information |
16 |
| -** use the contact form at http://qt.digia.com/contact-us. |
17 |
| -** |
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 as published by the Free Software |
21 |
| -** Foundation and appearing in the file LICENSE.LGPL included in the |
22 |
| -** packaging of this file. Please review the following information to |
23 |
| -** ensure the GNU Lesser General Public License version 2.1 requirements |
24 |
| -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
25 |
| -** |
26 |
| -** In addition, as a special exception, Digia gives you certain additional |
27 |
| -** rights. These rights are described in the Digia Qt LGPL Exception |
28 |
| -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
29 |
| -** |
30 |
| -** GNU General Public License Usage |
31 |
| -** Alternatively, this file may be used under the terms of the GNU |
32 |
| -** General Public License version 3.0 as published by the Free Software |
33 |
| -** Foundation and appearing in the file LICENSE.GPL included in the |
34 |
| -** packaging of this file. Please review the following information to |
35 |
| -** ensure the GNU General Public License version 3.0 requirements will be |
36 |
| -** met: http://www.gnu.org/copyleft/gpl.html. |
37 |
| -** |
38 |
| -** |
39 |
| -** $QT_END_LICENSE$ |
40 |
| -** |
41 |
| -****************************************************************************/ |
| 1 | +/****************************************************************************** |
| 2 | + QtAV: Media play library based on Qt and FFmpeg |
| 3 | + Copyright (C) 2012-2016 Wang Bin <[email protected]> |
| 4 | +
|
| 5 | +* This file is part of QtAV |
| 6 | +
|
| 7 | + This library is free software; you can redistribute it and/or |
| 8 | + modify it under the terms of the GNU Lesser General Public |
| 9 | + License as published by the Free Software Foundation; either |
| 10 | + version 2.1 of the License, or (at your option) any later version. |
| 11 | +
|
| 12 | + This library is distributed in the hope that it will be useful, |
| 13 | + but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | + Lesser General Public License for more details. |
| 16 | +
|
| 17 | + You should have received a copy of the GNU Lesser General Public |
| 18 | + License along with this library; if not, write to the Free Software |
| 19 | + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | +******************************************************************************/ |
| 21 | +// change from qtbase/config.tests/arch/arch.cpp |
42 | 22 |
|
43 | 23 | #define QGLOBAL_H
|
44 | 24 | #include "qprocessordetection.h"
|
45 | 25 |
|
46 | 26 | /* vc: arm, mips, sh, x86, x86_64, ia64*/
|
47 | 27 | #if defined(Q_PROCESSOR_ALPHA)
|
48 |
| -#warning "ARCH=alpha" |
49 |
| -#elif defined(Q_PROCESSOR_ARM_32) |
| 28 | +#warning "ARCH*=alpha" |
| 29 | +#define ARCH_DETECTED |
| 30 | +#endif |
| 31 | +#if defined(Q_PROCESSOR_ARM_32) |
50 | 32 | #ifdef _MSC_VER
|
51 |
| -#pragma message ("ARCH=arm") |
| 33 | +#pragma message ("ARCH*=arm") |
52 | 34 | #else
|
53 |
| -#warning "ARCH=arm" |
| 35 | +#warning "ARCH*=arm" |
54 | 36 | #endif /*_MSC_VER*/
|
55 |
| -#elif defined(Q_PROCESSOR_ARM_64) |
| 37 | +#define ARCH_DETECTED |
| 38 | +#endif |
| 39 | +#if defined(Q_PROCESSOR_ARM_64) |
56 | 40 | #ifdef _MSC_VER
|
57 |
| -#pragma message ("ARCH=arm64") |
| 41 | +#pragma message ("ARCH*=arm64") |
58 | 42 | #else
|
59 |
| -#warning "ARCH=arm64" |
| 43 | +#warning "ARCH*=arm64" |
60 | 44 | #endif /*_MSC_VER*/
|
61 |
| -#elif defined(Q_PROCESSOR_ARM) |
| 45 | +#define ARCH_DETECTED |
| 46 | +#endif |
| 47 | +#if defined(Q_PROCESSOR_ARM) |
62 | 48 | #ifdef _MSC_VER
|
63 |
| -#pragma message ("ARCH=arm") |
| 49 | +#pragma message ("ARCH*=arm") |
64 | 50 | #else
|
65 |
| -#warning "ARCH=arm" |
| 51 | +#warning "ARCH*=arm" |
66 | 52 | #endif /*_MSC_VER*/
|
67 |
| -#elif defined(Q_PROCESSOR_AVR32) |
68 |
| -#warning "ARCH=avr32" |
69 |
| -#elif defined(Q_PROCESSOR_BLACKFIN) |
70 |
| -#warning "ARCH=bfin" |
71 |
| -#elif defined(Q_PROCESSOR_X86_32) |
| 53 | +#define ARCH_DETECTED |
| 54 | +#endif |
| 55 | +#if defined(Q_PROCESSOR_AVR32) |
| 56 | +#warning "ARCH*=avr32" |
| 57 | +#define ARCH_DETECTED |
| 58 | +#endif |
| 59 | +#if defined(Q_PROCESSOR_BLACKFIN) |
| 60 | +#warning "ARCH*=bfin" |
| 61 | +#define ARCH_DETECTED |
| 62 | +#endif |
| 63 | +#if defined(Q_PROCESSOR_X86_32) |
72 | 64 | #ifdef _MSC_VER
|
73 |
| -#pragma message ("ARCH=x86") |
| 65 | +#pragma message ("ARCH*=x86") |
74 | 66 | #else
|
75 |
| -#warning "ARCH=x86" |
| 67 | +#warning "ARCH*=x86" |
76 | 68 | #endif /*_MSC_VER*/
|
77 |
| -#elif defined(Q_PROCESSOR_X86_64) |
| 69 | +#define ARCH_DETECTED |
| 70 | +#endif |
| 71 | +#if defined(Q_PROCESSOR_X86_64) |
78 | 72 | #ifdef _MSC_VER
|
79 |
| -#pragma message ("ARCH=x86_64") |
| 73 | +#pragma message ("ARCH*=x86_64") |
80 | 74 | #else
|
81 |
| -#warning "ARCH=x86_64" |
| 75 | +#warning "ARCH*=x86_64" |
82 | 76 | #endif /*_MSC_VER*/
|
83 |
| -#elif defined(Q_PROCESSOR_IA64) |
| 77 | +#define ARCH_DETECTED |
| 78 | +#endif |
| 79 | +#if defined(Q_PROCESSOR_IA64) |
84 | 80 | #ifdef _MSC_VER
|
85 |
| -#pragma message ("ARCH=ia64") |
| 81 | +#pragma message ("ARCH*=ia64") |
86 | 82 | #else
|
87 |
| -#warning "ARCH=ia64" |
| 83 | +#warning "ARCH*=ia64" |
88 | 84 | #endif /*_MSC_VER*/
|
89 |
| -#elif defined(Q_PROCESSOR_MIPS) |
| 85 | +#define ARCH_DETECTED |
| 86 | +#endif |
| 87 | +#if defined(Q_PROCESSOR_MIPS) |
90 | 88 | #ifdef _MSC_VER
|
91 |
| -#pragma message ("ARCH=mips") |
| 89 | +#pragma message ("ARCH*=mips") |
92 | 90 | #else
|
93 |
| -#warning "ARCH=mips" |
| 91 | +#warning "ARCH*=mips" |
94 | 92 | #endif /*_MSC_VER*/
|
95 |
| -#elif defined(Q_PROCESSOR_POWER) |
96 |
| -#warning "ARCH=power" |
97 |
| -#elif defined(Q_PROCESSOR_S390) |
98 |
| -#warning "ARCH=s390" |
99 |
| -#elif defined(Q_PROCESSOR_SH) |
| 93 | +#define ARCH_DETECTED |
| 94 | +#endif |
| 95 | +#if defined(Q_PROCESSOR_POWER) |
| 96 | +#warning "ARCH*=power" |
| 97 | +#define ARCH_DETECTED |
| 98 | +#endif |
| 99 | +#if defined(Q_PROCESSOR_S390) |
| 100 | +#warning "ARCH*=s390" |
| 101 | +#define ARCH_DETECTED |
| 102 | +#endif |
| 103 | +#if defined(Q_PROCESSOR_SH) |
100 | 104 | #ifdef _MSC_VER
|
101 |
| -#pragma message ("ARCH=sh") |
| 105 | +#pragma message ("ARCH*=sh") |
102 | 106 | #else
|
103 |
| -#warning "ARCH=sh" |
| 107 | +#warning "ARCH*=sh" |
104 | 108 | #endif /*_MSC_VER*/
|
105 |
| -#elif defined(Q_PROCESSOR_SPARC) |
106 |
| -#warning "ARCH=sparc" |
107 |
| -#else |
| 109 | +#define ARCH_DETECTED |
| 110 | +#endif |
| 111 | +#if defined(Q_PROCESSOR_SPARC) |
| 112 | +#warning "ARCH*=sparc" |
| 113 | +#define ARCH_DETECTED |
| 114 | +#endif |
| 115 | +#ifndef ARCH_DETECTED |
108 | 116 | #warning "ARCH=unknown"
|
109 | 117 | #endif
|
110 | 118 |
|
|
0 commit comments