-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathInfoPlist.h
110 lines (100 loc) · 2.82 KB
/
InfoPlist.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/*
* InfoPlist.h
* R
*
* Created by Simon Urbanek on 10/23/08.
* Copyright 2008-2021 R Foundation for Statistical Computing. All rights reserved.
*
*/
/* GUI version as shown in infos e.g. 1.27-devel */
#define GUI_VER 1.80
/* R postfix used to denote release versions of GUI - set to R release version (e.g. 2.8.0) or to anything that will be shown in between R and GUI (e.g. - or for Mac) */
#define R_RELEASE 4.4.1
/* NOTE: unfortunately it is NOT possible to rely on MAC_OS_X_VERSION_MIN_REQUIRED,
because Xcode's Info.plist processing does NOT include flags that are passed to
regular compilation so it does NOT respect the macOS Deployment Target project
setting. */
#ifndef MIN_VER
#define MIN_VER __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
#endif
#if RELEASE_CFG
/* for release config just auto-detect the SDK used */
/* we cannot use Availability.h because of the odd processing Xcode uses here! */
#if MIN_VER >= 110000
#ifdef __x86_64__
#define CFG_NAME Big Sur Intel build
#elif defined __arm64__
#define CFG_NAME Big Sur ARM build
#else
#define CFG_NAME Big Sur build
#endif
#define MIN_VERSION 11.0
/* For reasons listed above (the min version is wrong)
we drop down to high-sierra for 10.13-10.15
If Apple ever fixes this issue in Xcode we may re-enable it
#elif MIN_VER >= 1015
#define CFG_NAME Catalina build
#define MIN_VERSION 10.15
#elif MIN_VER >= 1014
#define CFG_NAME Mojave build
#define MIN_VERSION 10.14
*/
#elif MIN_VER >= 101300
#define CFG_NAME High Sierra build
#define MIN_VERSION 10.13
#elif MIN_VER >= 101200
#define CFG_NAME Sierra build
#define MIN_VERSION 10.12
#elif MIN_VER >= 101100
#define CFG_NAME El Capitan build
#define MIN_VERSION 10.11
#elif MIN_VER >= 101000
#define CFG_NAME Yosemite build
#define MIN_VERSION 10.10
#elif MIN_VER >= 109000
#define CFG_NAME Mavericks build
#define MIN_VERSION 10.9
#elif MIN_VER >= 108000
#define CFG_NAME Mountain Lion build
#define MIN_VERSION 10.8
#elif MIN_VER >= 107000
#define CFG_NAME Lion build
#define MIN_VERSION 10.7
#elif MIN_VER >= 106000
#define CFG_NAME Snow Leopard build
#define MIN_VERSION 10.6
#else /* don't bother with the real name if older - just if it's 64-bit or not */
#if __LP64__
#define CFG_NAME 64-bit build
#else
#define CFG_NAME 32-bit build
#endif
#endif /* older SDK */
#endif /* RELEASE_CFG */
#if LEOPARD_CFG
#define CFG_NAME Leopard build 32-bit
#endif
#if SNOWLEOPARD_CFG
#define CFG_NAME Snow Leopard build
#endif
#if LEOPARD64_CFG
#define CFG_NAME Leopard build 64-bit
#endif
#if DEPLOY_CFG || DEPLOYMENT_CFG
#define CFG_NAME Tiger build 32-bit
#endif
#if DEPLOY64_CFG
#define CFG_NAME Tiger build 64-bit
#endif
#if DEBUG_CFG
#define CFG_NAME Debug build
#endif
#if DEVELOPMENT_CFG
#define CFG_NAME Development build
#endif
#ifndef CFG_NAME
#define CFG_NAME unknown
#endif
#ifndef MIN_VERSION
#define MIN_VERSION 10.0
#endif