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 "804ca88bb2fd77cd72d9b0089f5ac1387a98aaee"
60 
61 #define PXR_MAJOR_VERSION 0
62 #define PXR_MINOR_VERSION 19
63 #define PXR_PATCH_VERSION 11
64 
65 #define PXR_VERSION 1911
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_19__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 #define PXR_NAMESPACE_OPEN_SCOPE namespace PXR_INTERNAL_NS {
83 #define PXR_NAMESPACE_CLOSE_SCOPE }
84 #define PXR_NAMESPACE_USING_DIRECTIVE using namespace PXR_NS;
85 
86 #else
87 
88 #define PXR_NS
89 #define PXR_NS_GLOBAL
90 #define PXR_NAMESPACE_OPEN_SCOPE
91 #define PXR_NAMESPACE_CLOSE_SCOPE
92 #define PXR_NAMESPACE_USING_DIRECTIVE
93 
94 #endif // PXR_USE_NAMESPACES
95 
96 #if 1
97 #define PXR_PYTHON_SUPPORT_ENABLED
98 #endif
99 
100 #endif //PXR_H
#define PXR_NS
Definition: pxr.h:71
#define PXR_INTERNAL_NS
Definition: pxr.h:72