HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pxr.h
Go to the documentation of this file.
1 //
2 // Copyright 2016 Pixar
3 //
4 // Licensed under the Apache License, Version 2.0 (the "Apache License")
5 // with the following modification; you may not use this file except in
6 // compliance with the Apache License and the following modification to it:
7 // Section 6. Trademarks. is deleted and replaced with:
8 //
9 // 6. Trademarks. This License does not grant permission to use the trade
10 // names, trademarks, service marks, or product names of the Licensor
11 // and its affiliates, except as required to comply with Section 4(c) of
12 // the License and to reproduce the content of the NOTICE file.
13 //
14 // You may obtain a copy of the Apache License at
15 //
16 // http://www.apache.org/licenses/LICENSE-2.0
17 //
18 // Unless required by applicable law or agreed to in writing, software
19 // distributed under the Apache License with the above modification is
20 // distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21 // KIND, either express or implied. See the Apache License for the specific
22 // language governing permissions and limitations under the Apache License.
23 //
24 #ifndef PXR_H
25 #define PXR_H
26 
27 /// \file pxr/pxr.h
28 
29 // A few defines specific to how Houdini uses USD
30 #ifndef NDEBUG
31  #ifndef _DEBUG
32  #define _DEBUG
33  #endif
34  #ifndef TBB_USE_DEBUG
35  #define TBB_USE_DEBUG 1
36  #endif
37  #ifndef BUILD_OPTLEVEL_DEV
38  #define BUILD_OPTLEVEL_DEV
39  #endif
40 #else
41  #ifndef TBB_USE_DEBUG
42  #define TBB_USE_DEBUG 0
43  #endif
44  #ifndef BUILD_OPTLEVEL_OPT
45  #define BUILD_OPTLEVEL_OPT
46  #endif
47 #endif
48 #ifndef TF_NO_GNU_EXT
49  #define TF_NO_GNU_EXT
50 #endif
51 #ifndef BUILD_COMPONENT_SRC_PREFIX
52  #define BUILD_COMPONENT_SRC_PREFIX ""
53 #endif
54 #ifndef PXR_PYTHON_SUPPORT_ENABLED
55  #define PXR_PYTHON_SUPPORT_ENABLED
56 #endif
57 
58 #define PXR_PACKAGE_URL "https://github.com/sideeffects/USD.git"
59 #define PXR_PACKAGE_REVISION "aa001af6a76279594bbe0bcd3cac2e1bb316873f"
60 
61 #define PXR_MAJOR_VERSION 0
62 #define PXR_MINOR_VERSION 23
63 #define PXR_PATCH_VERSION 8
64 
65 #define PXR_VERSION 2308
66 
67 #define PXR_USE_NAMESPACES 1
68 
69 #if PXR_USE_NAMESPACES
70 
71 #define PXR_NS pxr
72 #define PXR_INTERNAL_NS pxrInternal_v0_23__pxrReserved__
73 #define PXR_NS_GLOBAL ::PXR_NS
74 
75 namespace PXR_INTERNAL_NS { }
76 
77 // The root level namespace for all source in the USD distribution.
78 namespace PXR_NS {
79  using namespace PXR_INTERNAL_NS;
80 }
81 
82 #if defined(MBSD)
83 #define PXR_NAMESPACE_OPEN_SCOPE \
84  _Pragma("GCC visibility push(default)") \
85  namespace PXR_INTERNAL_NS {
86 #define PXR_NAMESPACE_CLOSE_SCOPE \
87  } \
88  _Pragma("GCC visibility pop")
89 #else
90 #define PXR_NAMESPACE_OPEN_SCOPE namespace PXR_INTERNAL_NS {
91 #define PXR_NAMESPACE_CLOSE_SCOPE }
92 #endif
93 
94 #define PXR_NAMESPACE_USING_DIRECTIVE using namespace PXR_NS;
95 
96 #else
97 
98 #define PXR_NS
99 #define PXR_NS_GLOBAL
100 #define PXR_NAMESPACE_OPEN_SCOPE
101 #define PXR_NAMESPACE_CLOSE_SCOPE
102 #define PXR_NAMESPACE_USING_DIRECTIVE
103 
104 #endif // PXR_USE_NAMESPACES
105 
106 #if 1
107 #define PXR_PYTHON_SUPPORT_ENABLED
108 #endif
109 
110 #if 1
111 #define PXR_PREFER_SAFETY_OVER_SPEED
112 #endif
113 
114 #ifdef PXR_FORCE_PYTHON_SUPPORT_DISABLED
115 #undef PXR_PYTHON_SUPPORT_ENABLED
116 #endif
117 
118 #endif //PXR_H
#define PXR_NS
Definition: pxr.h:71
#define PXR_INTERNAL_NS
Definition: pxr.h:72