OpenShot Library | libopenshot-audio
0.2.0
juce_TargetPlatform.h
1
2
/** @weakgroup juce_core-system
3
* @{
4
*/
5
/*
6
==============================================================================
7
8
This file is part of the JUCE library.
9
Copyright (c) 2017 - ROLI Ltd.
10
11
JUCE is an open source library subject to commercial or open-source
12
licensing.
13
14
The code included in this file is provided under the terms of the ISC license
15
http://www.isc.org/downloads/software-support-policy/isc-license. Permission
16
To use, copy, modify, and/or distribute this software for any purpose with or
17
without fee is hereby granted provided that the above copyright notice and
18
this permission notice appear in all copies.
19
20
JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
21
EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
22
DISCLAIMED.
23
24
==============================================================================
25
*/
26
27
#pragma once
28
29
//==============================================================================
30
/* This file figures out which platform is being built, and defines some macros
31
that the rest of the code can use for OS-specific compilation.
32
33
Macros that will be set here are:
34
35
- One of JUCE_WINDOWS, JUCE_MAC JUCE_LINUX, JUCE_IOS, JUCE_ANDROID, etc.
36
- Either JUCE_32BIT or JUCE_64BIT, depending on the architecture.
37
- Either JUCE_LITTLE_ENDIAN or JUCE_BIG_ENDIAN.
38
- Either JUCE_INTEL or JUCE_ARM
39
- Either JUCE_GCC or JUCE_CLANG or JUCE_MSVC
40
*/
41
42
//==============================================================================
43
#ifdef JUCE_APP_CONFIG_HEADER
44
#include JUCE_APP_CONFIG_HEADER
45
#elif ! defined (JUCE_GLOBAL_MODULE_SETTINGS_INCLUDED)
46
/*
47
Most projects will contain a global header file containing various settings that
48
should be applied to all the code in your project. If you use the projucer, it'll
49
set up a global header file for you automatically, but if you're doing things manually,
50
you may want to set the JUCE_APP_CONFIG_HEADER macro with the name of a file to include,
51
or just include one before all the module cpp files, in which you set
52
JUCE_GLOBAL_MODULE_SETTINGS_INCLUDED=1 to silence this error.
53
(Or if you don't need a global header, then you can just define JUCE_GLOBAL_MODULE_SETTINGS_INCLUDED
54
globally to avoid this error).
55
56
Note for people who hit this error when trying to compile a JUCE project created by
57
a pre-v4.2 version of the Introjucer/Projucer, it's very easy to fix: just re-save
58
your project with the latest version of the Projucer, and it'll magically fix this!
59
*/
60
#error "No global header file was included!"
61
#endif
62
63
//==============================================================================
64
#if defined (_WIN32) || defined (_WIN64)
65
#define JUCE_WIN32 1
66
#define JUCE_WINDOWS 1
67
#elif defined (JUCE_ANDROID)
68
#undef JUCE_ANDROID
69
#define JUCE_ANDROID 1
70
#elif defined (__FreeBSD__) || (__OpenBSD__)
71
#define JUCE_BSD 1
72
#elif defined (LINUX) || defined (__linux__)
73
#define JUCE_LINUX 1
74
#elif defined (__APPLE_CPP__) || defined (__APPLE_CC__)
75
#include <CoreFoundation/CoreFoundation.h>
// (needed to find out what platform we're using)
76
#include "../native/juce_mac_ClangBugWorkaround.h"
77
78
#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
79
#define JUCE_IPHONE 1
80
#define JUCE_IOS 1
81
#else
82
#define JUCE_MAC 1
83
#endif
84
#else
85
#error "Unknown platform!"
86
#endif
87
88
//==============================================================================
89
#if JUCE_WINDOWS
90
#ifdef _MSC_VER
91
#ifdef _WIN64
92
#define JUCE_64BIT 1
93
#else
94
#define JUCE_32BIT 1
95
#endif
96
#endif
97
98
#ifdef _DEBUG
99
#define JUCE_DEBUG 1
100
#endif
101
102
#ifdef __MINGW32__
103
#define JUCE_MINGW 1
104
#ifdef __MINGW64__
105
#define JUCE_64BIT 1
106
#else
107
#define JUCE_32BIT 1
108
#endif
109
#endif
110
111
/** If defined, this indicates that the processor is little-endian. */
112
#define JUCE_LITTLE_ENDIAN 1
113
114
#define JUCE_INTEL 1
115
#endif
116
117
//==============================================================================
118
#if JUCE_MAC || JUCE_IOS
119
120
#if defined (DEBUG) || defined (_DEBUG) || ! (defined (NDEBUG) || defined (_NDEBUG))
121
#define JUCE_DEBUG 1
122
#endif
123
124
#if ! (defined (DEBUG) || defined (_DEBUG) || defined (NDEBUG) || defined (_NDEBUG))
125
#warning "Neither NDEBUG or DEBUG has been defined - you should set one of these to make it clear whether this is a release build,"
126
#endif
127
128
#ifdef __LITTLE_ENDIAN__
129
#define JUCE_LITTLE_ENDIAN 1
130
#else
131
#define JUCE_BIG_ENDIAN 1
132
#endif
133
134
#ifdef __LP64__
135
#define JUCE_64BIT 1
136
#else
137
#define JUCE_32BIT 1
138
#endif
139
140
#if defined (__ppc__) || defined (__ppc64__)
141
#error "PowerPC is no longer supported by JUCE!"
142
#elif defined (__arm__) || defined (__arm64__)
143
#define JUCE_ARM 1
144
#else
145
#define JUCE_INTEL 1
146
#endif
147
148
#if JUCE_MAC && MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5
149
#error "Building for OSX 10.4 is no longer supported!"
150
#endif
151
152
#if JUCE_MAC && ! defined (MAC_OS_X_VERSION_10_6)
153
#error "To build with 10.5 compatibility, use a later SDK and set the deployment target to 10.5"
154
#endif
155
#endif
156
157
//==============================================================================
158
#if JUCE_LINUX || JUCE_ANDROID
159
160
#ifdef _DEBUG
161
#define JUCE_DEBUG 1
162
#endif
163
164
// Allow override for big-endian Linux platforms
165
#if defined (__LITTLE_ENDIAN__) || ! defined (JUCE_BIG_ENDIAN)
166
#define JUCE_LITTLE_ENDIAN 1
167
#undef JUCE_BIG_ENDIAN
168
#else
169
#undef JUCE_LITTLE_ENDIAN
170
#define JUCE_BIG_ENDIAN 1
171
#endif
172
173
#if defined (__LP64__) || defined (_LP64) || defined (__arm64__)
174
#define JUCE_64BIT 1
175
#else
176
#define JUCE_32BIT 1
177
#endif
178
179
#if defined (__arm__) || defined (__arm64__) || defined (__aarch64__)
180
#define JUCE_ARM 1
181
#elif __MMX__ || __SSE__ || __amd64__
182
#define JUCE_INTEL 1
183
#endif
184
#endif
185
186
//==============================================================================
187
// Compiler type macros.
188
189
#ifdef __clang__
190
#define JUCE_CLANG 1
191
192
#elif defined (__GNUC__)
193
#define JUCE_GCC 1
194
195
#elif defined (_MSC_VER)
196
#define JUCE_MSVC 1
197
198
#else
199
#error unknown compiler
200
#endif
201
202
/** @}*/
juce_core
system
juce_TargetPlatform.h
Generated on Mon Jun 29 2020 19:03:32 for OpenShot Library | libopenshot-audio by
1.9.7