 |
XMP Toolkit SDK
6.0.0
|
Go to the documentation of this file. 1 #ifndef __XMP_Environment_h__
2 #define __XMP_Environment_h__ 1
34 #if defined ( MAC_ENV ) && !defined (IOS_ENV)
36 #if 0 // ! maybe someday - ! MAC_ENV
37 #error "MAC_ENV must be defined so that \"#if MAC_ENV\" is true"
40 #if defined ( WIN_ENV ) || defined ( UNIX_ENV ) || defined ( ANDROID_ENV )
41 #error "XMP environment error - must define only one of MAC_ENV, WIN_ENV, UNIX_ENV or ANDROID_ENV"
44 #define XMP_MacBuild 1
45 #define XMP_WinBuild 0
46 #define XMP_UNIXBuild 0
47 #define XMP_iOSBuild 0
49 #define XMP_AndroidBuild 0
51 #elif defined ( WIN_ENV )
53 #if 0 // ! maybe someday - ! WIN_ENV
54 #error "WIN_ENV must be defined so that \"#if WIN_ENV\" is true"
57 #if defined ( MAC_ENV ) || defined ( UNIX_ENV ) || defined ( IOS_ENV ) || defined ( ANDROID_ENV )
58 #error "XMP environment error - must define only one of MAC_ENV (or IOS_ENV), WIN_ENV, UNIX_ENV, ANDROID_ENV"
61 #define XMP_MacBuild 0
62 #define XMP_WinBuild 1
63 #define XMP_UNIXBuild 0
64 #define XMP_iOSBuild 0
65 #if defined ( WIN_UNIVERSAL_ENV)
70 #define XMP_AndroidBuild 0
72 #elif defined ( UNIX_ENV ) && !defined (ANDROID_ENV)
74 #if 0 // ! maybe someday - ! UNIX_ENV
75 #error "UNIX_ENV must be defined so that \"#if UNIX_ENV\" is true"
78 #if defined ( MAC_ENV ) || defined ( WIN_ENV ) || defined ( IOS_ENV ) || defined ( ANDROID_ENV )
79 #error "XMP environment error - must define only one of MAC_ENV (or IOS_ENV), WIN_ENV, UNIX_ENV, ANDROID_ENV"
82 #define XMP_MacBuild 0
83 #define XMP_WinBuild 0
84 #define XMP_UNIXBuild 1
85 #define XMP_iOSBuild 0
88 #define XMP_AndroidBuild 0
90 #elif defined ( IOS_ENV )
92 #if 0 // ! maybe someday - ! IOS_ENV
93 #error "IOS_ENV must be defined so that \"#if IOS_ENV\" is true"
96 #if defined ( WIN_ENV ) || defined ( UNIX_ENV ) || defined ( ANDROID_ENV )
97 #error "XMP environment error - must define only one of IOS_ENV, WIN_ENV, UNIX_ENV, ANDROID_ENV"
100 #define XMP_MacBuild 0
101 #define XMP_WinBuild 0
102 #define XMP_UNIXBuild 0
103 #define XMP_iOSBuild 1
107 #define XMP_AndroidBuild 0
109 #elif defined ( ANDROID_ENV )
111 #if 0 // ! maybe someday - ! UNIX_ENV
112 #error "ANDROID_ENV must be defined so that \"#if ANDROID_ENV\" is true"
115 #if defined ( MAC_ENV ) || defined ( WIN_ENV ) || defined ( IOS_ENV )
116 #error "XMP environment error - must define only one of MAC_ENV (or IOS_ENV), WIN_ENV, UNIX_ENV, ANDROID_ENV"
119 #define XMP_MacBuild 0
120 #define XMP_WinBuild 0
121 #define XMP_UNIXBuild 0
122 #define XMP_iOSBuild 0
123 #define XMP_AndroidBuild 1
127 #error "XMP environment error - must define one of MAC_ENV, WIN_ENV, UNIX_ENV , ANDROID_ENV or IOS_ENV"
135 #if defined ( DEBUG )
136 #if defined ( NDEBUG )
137 #error "XMP environment error - both DEBUG and NDEBUG are defined"
139 #define XMP_DebugBuild 1
142 #if defined ( NDEBUG )
143 #define XMP_DebugBuild 0
146 #ifndef XMP_DebugBuild
147 #define XMP_DebugBuild 0
154 #ifndef DISABLE_SERIALIZED_IMPORT_EXPORT
155 #define DISABLE_SERIALIZED_IMPORT_EXPORT 0
159 #if _WIN64 || defined(_LP64)
170 #define XMP_HELPER_DLL_IMPORT __attribute__((visibility("default")))
171 #define XMP_HELPER_DLL_EXPORT __attribute__((visibility("default")))
172 #define XMP_HELPER_DLL_PRIVATE __attribute__((visibility("hidden")))
180 #define XMP_HELPER_DLL_IMPORT
181 #define XMP_HELPER_DLL_EXPORT
182 #define XMP_HELPER_DLL_PRIVATE
183 #define APICALL __stdcall
189 #if (XMP_UNIXBuild) | (XMP_AndroidBuild)
190 #define XMP_HELPER_DLL_IMPORT
191 #define XMP_HELPER_DLL_EXPORT __attribute__ ((visibility ("default")))
192 #define XMP_HELPER_DLL_PRIVATE __attribute__ ((visibility ("hidden")))
200 #include <TargetConditionals.h>
202 #define XMP_IOS_ARM 1
204 #define XMP_IOS_ARM 0
206 #define XMP_HELPER_DLL_IMPORT __attribute__((visibility("default")))
207 #define XMP_HELPER_DLL_EXPORT __attribute__((visibility("default")))
208 #define XMP_HELPER_DLL_PRIVATE __attribute__((visibility("hidden")))
214 #if (XMP_DynamicBuild)
215 #define XMP_PUBLIC XMP_HELPER_DLL_EXPORT
216 #define XMP_PRIVATE XMP_HELPER_DLL_PRIVATE
217 #elif (XMP_StaticBuild)
221 #define XMP_PUBLIC XMP_HELPER_DLL_IMPORT
222 #define XMP_PRIVATE XMP_HELPER_DLL_PRIVATE
225 #endif // __XMP_Environment_h__