XMP Toolkit SDK  6.0.0
XMPCoreDefines.h
Go to the documentation of this file.
1 #ifndef XMPCoreDefines_h__
2 #define XMPCoreDefines_h__ 1
3 
4 // =================================================================================================
5 // Copyright 2014 Adobe
6 // All Rights Reserved.
7 //
8 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
9 // of the Adobe license agreement accompanying it. If you have received this file from a source other
10 // than Adobe, then your use, modification, or distribution of it requires the prior written permission
11 // of Adobe.
12 // =================================================================================================
13 
14 // =================================================================================================
15 // XMPCoreDefines.h - Common Defines for XMP Core component
16 // ================================================================
17 //
18 // This header defines common definitions to be used in XMP Core component.
19 //
20 // =================================================================================================
21 
22 // =================================================================================================
23 // All Platform Settings
24 // ===========================
26 
27 #ifndef ENABLE_CPP_DOM_MODEL
28 // =================================================================================================
29 // Macintosh Specific Settings
30 // ===========================
31 #if XMP_MacBuild
32  #define ENABLE_CPP_DOM_MODEL 0
33 #endif
34 
35 // =================================================================================================
36 // IOS Specific Settings
37 // ===========================
38 #if XMP_iOSBuild
39  #define ENABLE_CPP_DOM_MODEL 0
40 #endif
41 
42 // =================================================================================================
43 // Windows Specific Settings
44 // =========================
45 #if XMP_WinBuild
46  #define ENABLE_CPP_DOM_MODEL 0
47 #endif
48 
49 // =================================================================================================
50 // UNIX Specific Settings
51 // ======================
52 #if XMP_UNIXBuild
53 #define ENABLE_CPP_DOM_MODEL 0
54 #endif
55 
56 // =================================================================================================
57 // Android Specific Settings
58 // ======================
59 #if XMP_AndroidBuild
60 #define ENABLE_CPP_DOM_MODEL 0
61 #endif
62 
63 #endif // ENABLE_CPP_DOM_MODEL
64 
65 #ifndef ENABLE_CPP_DOM_MODEL
66  #define ENABLE_CPP_DOM_MODEL 0
67 #endif
68 
69 #if ENABLE_CPP_DOM_MODEL
70 
71  #if SOURCE_COMPILING_XMP_ALL
72  #define SOURCE_COMPILING_XMPCORE_LIB 1
73  #endif
74 
75  #ifndef SOURCE_COMPILING_XMPCORE_LIB
76  #define SOURCE_COMPILING_XMPCORE_LIB 0
77  #endif
78 
79  #ifndef BUILDING_XMPCORE_LIB
80  #define BUILDING_XMPCORE_LIB 0
81  #endif
82 
83  #if BUILDING_XMPCORE_LIB
84  #if !BUILDING_XMPCORE_AS_STATIC && !BUILDING_XMPCORE_AS_DYNAMIC
85  #error "Define either BUILDING_XMPCORE_AS_STATIC as 1 or BUILDING_XMPCORE_AS_DYNAMIC as 1"
86  #endif
87  #endif
88 
89  #ifndef LINKING_XMPCORE_LIB
90  #define LINKING_XMPCORE_LIB 1
91  #endif
92 
93  namespace AdobeXMPCore {};
94 #endif // ENABLE_CPP_DOM_MODEL
95 
96 #endif // XMPCoreDefines_h__
AdobeXMPCore
Definition: IArrayNode.h:18
XMPCommonDefines.h