pxr-boost-dev 26.8__cp315-cp315-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pxr-boost/cmake/pxr-boost/pxr-boost-config-version.cmake +43 -0
- pxr-boost/cmake/pxr-boost/pxr-boost-config.cmake +38 -0
- pxr-boost/cmake/pxr-boost/pxr-boost-targets-release.cmake +19 -0
- pxr-boost/cmake/pxr-boost/pxr-boost-targets.cmake +124 -0
- pxr-boost/include/pxr/boost/python/arg_from_python.hpp +69 -0
- pxr-boost/include/pxr/boost/python/args.hpp +155 -0
- pxr-boost/include/pxr/boost/python/args_fwd.hpp +58 -0
- pxr-boost/include/pxr/boost/python/back_reference.hpp +78 -0
- pxr-boost/include/pxr/boost/python/base_type_traits.hpp +50 -0
- pxr-boost/include/pxr/boost/python/bases.hpp +52 -0
- pxr-boost/include/pxr/boost/python/borrowed.hpp +28 -0
- pxr-boost/include/pxr/boost/python/call.hpp +49 -0
- pxr-boost/include/pxr/boost/python/call_method.hpp +49 -0
- pxr-boost/include/pxr/boost/python/cast.hpp +112 -0
- pxr-boost/include/pxr/boost/python/class.hpp +569 -0
- pxr-boost/include/pxr/boost/python/class_fwd.hpp +31 -0
- pxr-boost/include/pxr/boost/python/common.hpp +13 -0
- pxr-boost/include/pxr/boost/python/converter/arg_from_python.hpp +342 -0
- pxr-boost/include/pxr/boost/python/converter/arg_to_python.hpp +265 -0
- pxr-boost/include/pxr/boost/python/converter/arg_to_python_base.hpp +32 -0
- pxr-boost/include/pxr/boost/python/converter/as_to_python_function.hpp +57 -0
- pxr-boost/include/pxr/boost/python/converter/builtin_converters.hpp +197 -0
- pxr-boost/include/pxr/boost/python/converter/constructor_function.hpp +24 -0
- pxr-boost/include/pxr/boost/python/converter/context_result_converter.hpp +24 -0
- pxr-boost/include/pxr/boost/python/converter/convertible_function.hpp +21 -0
- pxr-boost/include/pxr/boost/python/converter/from_python.hpp +48 -0
- pxr-boost/include/pxr/boost/python/converter/implicit.hpp +53 -0
- pxr-boost/include/pxr/boost/python/converter/obj_mgr_arg_from_python.hpp +135 -0
- pxr-boost/include/pxr/boost/python/converter/object_manager.hpp +163 -0
- pxr-boost/include/pxr/boost/python/converter/pointer_type_id.hpp +75 -0
- pxr-boost/include/pxr/boost/python/converter/pyobject_traits.hpp +53 -0
- pxr-boost/include/pxr/boost/python/converter/pyobject_type.hpp +47 -0
- pxr-boost/include/pxr/boost/python/converter/pytype_function.hpp +148 -0
- pxr-boost/include/pxr/boost/python/converter/pytype_object_mgr_traits.hpp +49 -0
- pxr-boost/include/pxr/boost/python/converter/registered.hpp +114 -0
- pxr-boost/include/pxr/boost/python/converter/registered_pointee.hpp +37 -0
- pxr-boost/include/pxr/boost/python/converter/registrations.hpp +100 -0
- pxr-boost/include/pxr/boost/python/converter/registry.hpp +63 -0
- pxr-boost/include/pxr/boost/python/converter/return_from_python.hpp +166 -0
- pxr-boost/include/pxr/boost/python/converter/rvalue_from_python_data.hpp +157 -0
- pxr-boost/include/pxr/boost/python/converter/shared_ptr_deleter.hpp +29 -0
- pxr-boost/include/pxr/boost/python/converter/shared_ptr_from_python.hpp +75 -0
- pxr-boost/include/pxr/boost/python/converter/shared_ptr_to_python.hpp +36 -0
- pxr-boost/include/pxr/boost/python/converter/to_python_function_type.hpp +26 -0
- pxr-boost/include/pxr/boost/python/copy_const_reference.hpp +50 -0
- pxr-boost/include/pxr/boost/python/copy_non_const_reference.hpp +50 -0
- pxr-boost/include/pxr/boost/python/data_members.hpp +302 -0
- pxr-boost/include/pxr/boost/python/def.hpp +121 -0
- pxr-boost/include/pxr/boost/python/def_visitor.hpp +78 -0
- pxr-boost/include/pxr/boost/python/default_call_policies.hpp +96 -0
- pxr-boost/include/pxr/boost/python/detail/aix_init_module.hpp +34 -0
- pxr-boost/include/pxr/boost/python/detail/api_placeholder.hpp +22 -0
- pxr-boost/include/pxr/boost/python/detail/borrowed_ptr.hpp +86 -0
- pxr-boost/include/pxr/boost/python/detail/caller.hpp +288 -0
- pxr-boost/include/pxr/boost/python/detail/config.hpp +94 -0
- pxr-boost/include/pxr/boost/python/detail/construct.hpp +43 -0
- pxr-boost/include/pxr/boost/python/detail/convertible.hpp +45 -0
- pxr-boost/include/pxr/boost/python/detail/copy_ctor_mutates_rhs.hpp +27 -0
- pxr-boost/include/pxr/boost/python/detail/cv_category.hpp +44 -0
- pxr-boost/include/pxr/boost/python/detail/dealloc.hpp +25 -0
- pxr-boost/include/pxr/boost/python/detail/decorated_type_id.hpp +108 -0
- pxr-boost/include/pxr/boost/python/detail/decref_guard.hpp +28 -0
- pxr-boost/include/pxr/boost/python/detail/def_helper.hpp +192 -0
- pxr-boost/include/pxr/boost/python/detail/def_helper_fwd.hpp +24 -0
- pxr-boost/include/pxr/boost/python/detail/defaults_def.hpp +281 -0
- pxr-boost/include/pxr/boost/python/detail/defaults_gen.hpp +280 -0
- pxr-boost/include/pxr/boost/python/detail/dependent.hpp +34 -0
- pxr-boost/include/pxr/boost/python/detail/destroy.hpp +69 -0
- pxr-boost/include/pxr/boost/python/detail/enable_if.hpp +16 -0
- pxr-boost/include/pxr/boost/python/detail/exception_handler.hpp +54 -0
- pxr-boost/include/pxr/boost/python/detail/force_instantiate.hpp +25 -0
- pxr-boost/include/pxr/boost/python/detail/get_pointer.hpp +35 -0
- pxr-boost/include/pxr/boost/python/detail/if_else.hpp +87 -0
- pxr-boost/include/pxr/boost/python/detail/indirect_traits.hpp +169 -0
- pxr-boost/include/pxr/boost/python/detail/integer_cast.hpp +80 -0
- pxr-boost/include/pxr/boost/python/detail/invoke.hpp +86 -0
- pxr-boost/include/pxr/boost/python/detail/is_auto_ptr.hpp +26 -0
- pxr-boost/include/pxr/boost/python/detail/is_shared_ptr.hpp +26 -0
- pxr-boost/include/pxr/boost/python/detail/is_wrapper.hpp +36 -0
- pxr-boost/include/pxr/boost/python/detail/is_xxx.hpp +27 -0
- pxr-boost/include/pxr/boost/python/detail/make_keyword_range_fn.hpp +79 -0
- pxr-boost/include/pxr/boost/python/detail/map_entry.hpp +50 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/and.hpp +18 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/at.hpp +35 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/bool.hpp +21 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/eval_if.hpp +30 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/front.hpp +26 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/identity.hpp +19 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/if.hpp +21 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/int.hpp +18 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/not.hpp +18 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/or.hpp +18 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/pop_front.hpp +26 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/push_front.hpp +26 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/size.hpp +26 -0
- pxr-boost/include/pxr/boost/python/detail/mpl_lambda.hpp +17 -0
- pxr-boost/include/pxr/boost/python/detail/msvc_typeinfo.hpp +91 -0
- pxr-boost/include/pxr/boost/python/detail/none.hpp +27 -0
- pxr-boost/include/pxr/boost/python/detail/not_specified.hpp +21 -0
- pxr-boost/include/pxr/boost/python/detail/nullary_function_adaptor.hpp +38 -0
- pxr-boost/include/pxr/boost/python/detail/operator_id.hpp +70 -0
- pxr-boost/include/pxr/boost/python/detail/overloads_fwd.hpp +25 -0
- pxr-boost/include/pxr/boost/python/detail/pointee.hpp +42 -0
- pxr-boost/include/pxr/boost/python/detail/prefix.hpp +23 -0
- pxr-boost/include/pxr/boost/python/detail/preprocessor.hpp +31 -0
- pxr-boost/include/pxr/boost/python/detail/pymutex.hpp +110 -0
- pxr-boost/include/pxr/boost/python/detail/python_type.hpp +44 -0
- pxr-boost/include/pxr/boost/python/detail/raw_pyobject.hpp +39 -0
- pxr-boost/include/pxr/boost/python/detail/referent_storage.hpp +57 -0
- pxr-boost/include/pxr/boost/python/detail/result.hpp +57 -0
- pxr-boost/include/pxr/boost/python/detail/scope.hpp +23 -0
- pxr-boost/include/pxr/boost/python/detail/sfinae.hpp +16 -0
- pxr-boost/include/pxr/boost/python/detail/signature.hpp +94 -0
- pxr-boost/include/pxr/boost/python/detail/string_literal.hpp +45 -0
- pxr-boost/include/pxr/boost/python/detail/target.hpp +50 -0
- pxr-boost/include/pxr/boost/python/detail/translate_exception.hpp +52 -0
- pxr-boost/include/pxr/boost/python/detail/type_list.hpp +17 -0
- pxr-boost/include/pxr/boost/python/detail/type_list_impl.hpp +27 -0
- pxr-boost/include/pxr/boost/python/detail/type_traits.hpp +97 -0
- pxr-boost/include/pxr/boost/python/detail/unwind_type.hpp +179 -0
- pxr-boost/include/pxr/boost/python/detail/unwrap_type_id.hpp +38 -0
- pxr-boost/include/pxr/boost/python/detail/unwrap_wrapper.hpp +41 -0
- pxr-boost/include/pxr/boost/python/detail/value_arg.hpp +33 -0
- pxr-boost/include/pxr/boost/python/detail/value_is_shared_ptr.hpp +35 -0
- pxr-boost/include/pxr/boost/python/detail/value_is_xxx.hpp +38 -0
- pxr-boost/include/pxr/boost/python/detail/void_ptr.hpp +42 -0
- pxr-boost/include/pxr/boost/python/detail/void_return.hpp +32 -0
- pxr-boost/include/pxr/boost/python/detail/wrap_python.hpp +253 -0
- pxr-boost/include/pxr/boost/python/detail/wrapper_base.hpp +96 -0
- pxr-boost/include/pxr/boost/python/dict.hpp +159 -0
- pxr-boost/include/pxr/boost/python/docstring_options.hpp +137 -0
- pxr-boost/include/pxr/boost/python/enum.hpp +115 -0
- pxr-boost/include/pxr/boost/python/errors.hpp +62 -0
- pxr-boost/include/pxr/boost/python/exception_translator.hpp +39 -0
- pxr-boost/include/pxr/boost/python/exec.hpp +70 -0
- pxr-boost/include/pxr/boost/python/extract.hpp +263 -0
- pxr-boost/include/pxr/boost/python/handle.hpp +235 -0
- pxr-boost/include/pxr/boost/python/handle_fwd.hpp +23 -0
- pxr-boost/include/pxr/boost/python/has_back_reference.hpp +31 -0
- pxr-boost/include/pxr/boost/python/implicit.hpp +43 -0
- pxr-boost/include/pxr/boost/python/import.hpp +29 -0
- pxr-boost/include/pxr/boost/python/init.hpp +422 -0
- pxr-boost/include/pxr/boost/python/instance_holder.hpp +71 -0
- pxr-boost/include/pxr/boost/python/iterator.hpp +142 -0
- pxr-boost/include/pxr/boost/python/list.hpp +155 -0
- pxr-boost/include/pxr/boost/python/long.hpp +75 -0
- pxr-boost/include/pxr/boost/python/lvalue_from_pytype.hpp +124 -0
- pxr-boost/include/pxr/boost/python/make_constructor.hpp +287 -0
- pxr-boost/include/pxr/boost/python/make_function.hpp +160 -0
- pxr-boost/include/pxr/boost/python/manage_new_object.hpp +48 -0
- pxr-boost/include/pxr/boost/python/module.hpp +20 -0
- pxr-boost/include/pxr/boost/python/module_init.hpp +152 -0
- pxr-boost/include/pxr/boost/python/noncopyable.hpp +22 -0
- pxr-boost/include/pxr/boost/python/object/add_to_namespace.hpp +32 -0
- pxr-boost/include/pxr/boost/python/object/class.hpp +70 -0
- pxr-boost/include/pxr/boost/python/object/class_detail.hpp +26 -0
- pxr-boost/include/pxr/boost/python/object/class_metadata.hpp +304 -0
- pxr-boost/include/pxr/boost/python/object/class_wrapper.hpp +67 -0
- pxr-boost/include/pxr/boost/python/object/enum_base.hpp +43 -0
- pxr-boost/include/pxr/boost/python/object/find_instance.hpp +28 -0
- pxr-boost/include/pxr/boost/python/object/forward.hpp +103 -0
- pxr-boost/include/pxr/boost/python/object/function.hpp +93 -0
- pxr-boost/include/pxr/boost/python/object/function_doc_signature.hpp +43 -0
- pxr-boost/include/pxr/boost/python/object/function_handle.hpp +52 -0
- pxr-boost/include/pxr/boost/python/object/function_object.hpp +47 -0
- pxr-boost/include/pxr/boost/python/object/inheritance.hpp +136 -0
- pxr-boost/include/pxr/boost/python/object/inheritance_query.hpp +24 -0
- pxr-boost/include/pxr/boost/python/object/instance.hpp +54 -0
- pxr-boost/include/pxr/boost/python/object/iterator.hpp +230 -0
- pxr-boost/include/pxr/boost/python/object/iterator_core.hpp +24 -0
- pxr-boost/include/pxr/boost/python/object/life_support.hpp +23 -0
- pxr-boost/include/pxr/boost/python/object/make_holder.hpp +71 -0
- pxr-boost/include/pxr/boost/python/object/make_instance.hpp +92 -0
- pxr-boost/include/pxr/boost/python/object/make_ptr_instance.hpp +79 -0
- pxr-boost/include/pxr/boost/python/object/pickle_support.hpp +131 -0
- pxr-boost/include/pxr/boost/python/object/pointer_holder.hpp +165 -0
- pxr-boost/include/pxr/boost/python/object/py_function.hpp +178 -0
- pxr-boost/include/pxr/boost/python/object/stl_iterator_core.hpp +34 -0
- pxr-boost/include/pxr/boost/python/object/value_holder.hpp +113 -0
- pxr-boost/include/pxr/boost/python/object/value_holder_fwd.hpp +23 -0
- pxr-boost/include/pxr/boost/python/object.hpp +34 -0
- pxr-boost/include/pxr/boost/python/object_attributes.hpp +123 -0
- pxr-boost/include/pxr/boost/python/object_core.hpp +496 -0
- pxr-boost/include/pxr/boost/python/object_fwd.hpp +25 -0
- pxr-boost/include/pxr/boost/python/object_items.hpp +93 -0
- pxr-boost/include/pxr/boost/python/object_operators.hpp +145 -0
- pxr-boost/include/pxr/boost/python/object_protocol.hpp +87 -0
- pxr-boost/include/pxr/boost/python/object_protocol_core.hpp +60 -0
- pxr-boost/include/pxr/boost/python/object_slices.hpp +153 -0
- pxr-boost/include/pxr/boost/python/opaque_pointer_converter.hpp +191 -0
- pxr-boost/include/pxr/boost/python/operators.hpp +353 -0
- pxr-boost/include/pxr/boost/python/other.hpp +57 -0
- pxr-boost/include/pxr/boost/python/overloads.hpp +20 -0
- pxr-boost/include/pxr/boost/python/override.hpp +106 -0
- pxr-boost/include/pxr/boost/python/pointee.hpp +48 -0
- pxr-boost/include/pxr/boost/python/proxy.hpp +105 -0
- pxr-boost/include/pxr/boost/python/ptr.hpp +70 -0
- pxr-boost/include/pxr/boost/python/pure_virtual.hpp +132 -0
- pxr-boost/include/pxr/boost/python/raw_function.hpp +68 -0
- pxr-boost/include/pxr/boost/python/ref.hpp +44 -0
- pxr-boost/include/pxr/boost/python/refcount.hpp +50 -0
- pxr-boost/include/pxr/boost/python/reference_existing_object.hpp +53 -0
- pxr-boost/include/pxr/boost/python/register_ptr_to_python.hpp +38 -0
- pxr-boost/include/pxr/boost/python/return_arg.hpp +116 -0
- pxr-boost/include/pxr/boost/python/return_by_value.hpp +37 -0
- pxr-boost/include/pxr/boost/python/return_internal_reference.hpp +50 -0
- pxr-boost/include/pxr/boost/python/return_opaque_pointer.hpp +54 -0
- pxr-boost/include/pxr/boost/python/return_value_policy.hpp +28 -0
- pxr-boost/include/pxr/boost/python/scope.hpp +84 -0
- pxr-boost/include/pxr/boost/python/self.hpp +40 -0
- pxr-boost/include/pxr/boost/python/signature.hpp +149 -0
- pxr-boost/include/pxr/boost/python/slice.hpp +285 -0
- pxr-boost/include/pxr/boost/python/slice_nil.hpp +62 -0
- pxr-boost/include/pxr/boost/python/ssize_t.hpp +36 -0
- pxr-boost/include/pxr/boost/python/stl_iterator.hpp +92 -0
- pxr-boost/include/pxr/boost/python/str.hpp +429 -0
- pxr-boost/include/pxr/boost/python/suite/indexing/container_utils.hpp +62 -0
- pxr-boost/include/pxr/boost/python/suite/indexing/detail/indexing_suite_detail.hpp +764 -0
- pxr-boost/include/pxr/boost/python/suite/indexing/indexing_suite.hpp +302 -0
- pxr-boost/include/pxr/boost/python/suite/indexing/map_indexing_suite.hpp +189 -0
- pxr-boost/include/pxr/boost/python/suite/indexing/vector_indexing_suite.hpp +249 -0
- pxr-boost/include/pxr/boost/python/tag.hpp +25 -0
- pxr-boost/include/pxr/boost/python/to_python_converter.hpp +102 -0
- pxr-boost/include/pxr/boost/python/to_python_indirect.hpp +106 -0
- pxr-boost/include/pxr/boost/python/to_python_value.hpp +178 -0
- pxr-boost/include/pxr/boost/python/tuple.hpp +92 -0
- pxr-boost/include/pxr/boost/python/type.hpp +25 -0
- pxr-boost/include/pxr/boost/python/type_id.hpp +206 -0
- pxr-boost/include/pxr/boost/python/type_list.hpp +21 -0
- pxr-boost/include/pxr/boost/python/with_custodian_and_ward.hpp +128 -0
- pxr-boost/include/pxr/boost/python/wrapper.hpp +42 -0
- pxr-boost/include/pxr/boost/python.hpp +86 -0
- pxr-boost/lib/PxrBoostPython.dll +0 -0
- pxr-boost/lib/PxrBoostPython.lib +0 -0
- pxr_boost_dev-26.8.dist-info/METADATA +36 -0
- pxr_boost_dev-26.8.dist-info/RECORD +239 -0
- pxr_boost_dev-26.8.dist-info/WHEEL +5 -0
- pxr_boost_dev-26.8.dist-info/licenses/LICENSE.txt +209 -0
- pxr_boost_dev-26.8.dist-info/licenses/NOTICE.txt +12 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# This is a basic version file for the Config-mode of find_package().
|
|
2
|
+
# It is used by write_basic_package_version_file() as input file for configure_file()
|
|
3
|
+
# to create a version-file which can be installed along a config.cmake file.
|
|
4
|
+
#
|
|
5
|
+
# The created file sets PACKAGE_VERSION_EXACT if the current version string and
|
|
6
|
+
# the requested version string are exactly the same and it sets
|
|
7
|
+
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version.
|
|
8
|
+
# The variable CVF_VERSION must be set before calling configure_file().
|
|
9
|
+
|
|
10
|
+
set(PACKAGE_VERSION "0.26.8")
|
|
11
|
+
|
|
12
|
+
if (PACKAGE_FIND_VERSION_RANGE)
|
|
13
|
+
# Package version must be in the requested version range
|
|
14
|
+
if ((PACKAGE_FIND_VERSION_RANGE_MIN STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MIN)
|
|
15
|
+
OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_GREATER PACKAGE_FIND_VERSION_MAX)
|
|
16
|
+
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_GREATER_EQUAL PACKAGE_FIND_VERSION_MAX)))
|
|
17
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
|
18
|
+
else()
|
|
19
|
+
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
|
20
|
+
endif()
|
|
21
|
+
else()
|
|
22
|
+
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
|
|
23
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
|
24
|
+
else()
|
|
25
|
+
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
|
26
|
+
if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
|
|
27
|
+
set(PACKAGE_VERSION_EXACT TRUE)
|
|
28
|
+
endif()
|
|
29
|
+
endif()
|
|
30
|
+
endif()
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
|
|
34
|
+
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "")
|
|
35
|
+
return()
|
|
36
|
+
endif()
|
|
37
|
+
|
|
38
|
+
# check that the installed version has the same 32/64bit-ness as the one which is currently searching:
|
|
39
|
+
if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8")
|
|
40
|
+
math(EXPR installedBits "8 * 8")
|
|
41
|
+
set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
|
|
42
|
+
set(PACKAGE_VERSION_UNSUITABLE TRUE)
|
|
43
|
+
endif()
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
include(CMakeFindDependencyMacro)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
|
|
5
|
+
####### Any changes to this file will be overwritten by the next CMake run ####
|
|
6
|
+
####### The input file was pxr-boost-config.cmake.in ########
|
|
7
|
+
|
|
8
|
+
get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
|
|
9
|
+
|
|
10
|
+
macro(set_and_check _var _file)
|
|
11
|
+
set(${_var} "${_file}")
|
|
12
|
+
if(NOT EXISTS "${_file}")
|
|
13
|
+
message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
|
|
14
|
+
endif()
|
|
15
|
+
endmacro()
|
|
16
|
+
|
|
17
|
+
macro(check_required_components _NAME)
|
|
18
|
+
foreach(comp ${${_NAME}_FIND_COMPONENTS})
|
|
19
|
+
if(NOT ${_NAME}_${comp}_FOUND)
|
|
20
|
+
if(${_NAME}_FIND_REQUIRED_${comp})
|
|
21
|
+
set(${_NAME}_FOUND FALSE)
|
|
22
|
+
endif()
|
|
23
|
+
endif()
|
|
24
|
+
endforeach()
|
|
25
|
+
endmacro()
|
|
26
|
+
|
|
27
|
+
####################################################################################
|
|
28
|
+
|
|
29
|
+
if(DEFINED ENV{CIBUILDWHEEL})
|
|
30
|
+
find_dependency(Python REQUIRED COMPONENTS Interpreter Development.Module)
|
|
31
|
+
if(NOT TARGET Python::Python)
|
|
32
|
+
add_library(Python::Python ALIAS Python::Module)
|
|
33
|
+
endif()
|
|
34
|
+
else()
|
|
35
|
+
find_dependency(Python REQUIRED COMPONENTS Interpreter Development)
|
|
36
|
+
endif()
|
|
37
|
+
|
|
38
|
+
include(${CMAKE_CURRENT_LIST_DIR}/pxr-boost-targets.cmake)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#----------------------------------------------------------------
|
|
2
|
+
# Generated CMake target import file for configuration "Release".
|
|
3
|
+
#----------------------------------------------------------------
|
|
4
|
+
|
|
5
|
+
# Commands may need to know the format version.
|
|
6
|
+
set(CMAKE_IMPORT_FILE_VERSION 1)
|
|
7
|
+
|
|
8
|
+
# Import target "pxr::boost-python" for configuration "Release"
|
|
9
|
+
set_property(TARGET pxr::boost-python APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
|
10
|
+
set_target_properties(pxr::boost-python PROPERTIES
|
|
11
|
+
IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/pxr-boost/lib/PxrBoostPython.lib"
|
|
12
|
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/pxr-boost/lib/PxrBoostPython.dll"
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
list(APPEND _cmake_import_check_targets pxr::boost-python )
|
|
16
|
+
list(APPEND _cmake_import_check_files_for_pxr::boost-python "${_IMPORT_PREFIX}/pxr-boost/lib/PxrBoostPython.lib" "${_IMPORT_PREFIX}/pxr-boost/lib/PxrBoostPython.dll" )
|
|
17
|
+
|
|
18
|
+
# Commands beyond this point should not need to know the version.
|
|
19
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# Generated by CMake
|
|
2
|
+
|
|
3
|
+
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
|
|
4
|
+
message(FATAL_ERROR "CMake >= 2.8.12 required")
|
|
5
|
+
endif()
|
|
6
|
+
if(CMAKE_VERSION VERSION_LESS "2.8.12")
|
|
7
|
+
message(FATAL_ERROR "CMake >= 2.8.12 required")
|
|
8
|
+
endif()
|
|
9
|
+
cmake_policy(PUSH)
|
|
10
|
+
cmake_policy(VERSION 2.8.12...4.0)
|
|
11
|
+
#----------------------------------------------------------------
|
|
12
|
+
# Generated CMake target import file.
|
|
13
|
+
#----------------------------------------------------------------
|
|
14
|
+
|
|
15
|
+
# Commands may need to know the format version.
|
|
16
|
+
set(CMAKE_IMPORT_FILE_VERSION 1)
|
|
17
|
+
|
|
18
|
+
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
|
|
19
|
+
set(_cmake_targets_defined "")
|
|
20
|
+
set(_cmake_targets_not_defined "")
|
|
21
|
+
set(_cmake_expected_targets "")
|
|
22
|
+
foreach(_cmake_expected_target IN ITEMS pxr::boost-python)
|
|
23
|
+
list(APPEND _cmake_expected_targets "${_cmake_expected_target}")
|
|
24
|
+
if(TARGET "${_cmake_expected_target}")
|
|
25
|
+
list(APPEND _cmake_targets_defined "${_cmake_expected_target}")
|
|
26
|
+
else()
|
|
27
|
+
list(APPEND _cmake_targets_not_defined "${_cmake_expected_target}")
|
|
28
|
+
endif()
|
|
29
|
+
endforeach()
|
|
30
|
+
unset(_cmake_expected_target)
|
|
31
|
+
if(_cmake_targets_defined STREQUAL _cmake_expected_targets)
|
|
32
|
+
unset(_cmake_targets_defined)
|
|
33
|
+
unset(_cmake_targets_not_defined)
|
|
34
|
+
unset(_cmake_expected_targets)
|
|
35
|
+
unset(CMAKE_IMPORT_FILE_VERSION)
|
|
36
|
+
cmake_policy(POP)
|
|
37
|
+
return()
|
|
38
|
+
endif()
|
|
39
|
+
if(NOT _cmake_targets_defined STREQUAL "")
|
|
40
|
+
string(REPLACE ";" ", " _cmake_targets_defined_text "${_cmake_targets_defined}")
|
|
41
|
+
string(REPLACE ";" ", " _cmake_targets_not_defined_text "${_cmake_targets_not_defined}")
|
|
42
|
+
message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_cmake_targets_defined_text}\nTargets not yet defined: ${_cmake_targets_not_defined_text}\n")
|
|
43
|
+
endif()
|
|
44
|
+
unset(_cmake_targets_defined)
|
|
45
|
+
unset(_cmake_targets_not_defined)
|
|
46
|
+
unset(_cmake_expected_targets)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# Compute the installation prefix relative to this file.
|
|
50
|
+
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
51
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
52
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
53
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
54
|
+
if(_IMPORT_PREFIX STREQUAL "/")
|
|
55
|
+
set(_IMPORT_PREFIX "")
|
|
56
|
+
endif()
|
|
57
|
+
|
|
58
|
+
# Create imported target pxr::boost-python
|
|
59
|
+
add_library(pxr::boost-python SHARED IMPORTED)
|
|
60
|
+
|
|
61
|
+
set_target_properties(pxr::boost-python PROPERTIES
|
|
62
|
+
INTERFACE_COMPILE_DEFINITIONS "PXR_BOOST_PYTHON_NO_PY_SIGNATURES"
|
|
63
|
+
INTERFACE_COMPILE_FEATURES "cxx_std_17"
|
|
64
|
+
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/pxr-boost/include"
|
|
65
|
+
INTERFACE_LINK_LIBRARIES "Python::Module"
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
if(NOT CMAKE_VERSION VERSION_LESS "3.23.0")
|
|
69
|
+
target_sources(pxr::boost-python
|
|
70
|
+
INTERFACE
|
|
71
|
+
FILE_SET "public_headers"
|
|
72
|
+
TYPE "HEADERS"
|
|
73
|
+
BASE_DIRS "${_IMPORT_PREFIX}/pxr-boost/include"
|
|
74
|
+
FILES "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/common.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/arg_from_python.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/args.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/args_fwd.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/back_reference.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/base_type_traits.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/bases.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/borrowed.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/call.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/call_method.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/cast.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/class.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/class_fwd.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/copy_const_reference.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/copy_non_const_reference.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/data_members.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/def.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/def_visitor.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/default_call_policies.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/dict.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/docstring_options.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/enum.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/errors.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/exception_translator.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/exec.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/extract.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/handle.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/handle_fwd.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/has_back_reference.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/implicit.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/import.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/init.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/instance_holder.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/iterator.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/list.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/long.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/lvalue_from_pytype.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/make_constructor.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/make_function.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/manage_new_object.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/module.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/module_init.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/noncopyable.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object_attributes.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object_core.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object_fwd.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object_items.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object_operators.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object_protocol.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object_protocol_core.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object_slices.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/opaque_pointer_converter.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/operators.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/other.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/overloads.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/override.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/pointee.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/proxy.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/ptr.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/pure_virtual.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/raw_function.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/ref.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/refcount.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/reference_existing_object.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/register_ptr_to_python.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/return_arg.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/return_by_value.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/return_internal_reference.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/return_opaque_pointer.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/return_value_policy.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/scope.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/self.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/signature.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/slice.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/slice_nil.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/ssize_t.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/stl_iterator.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/str.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/tag.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/to_python_converter.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/to_python_indirect.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/to_python_value.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/tuple.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/type.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/type_id.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/type_list.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/with_custodian_and_ward.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/wrapper.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/arg_from_python.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/arg_to_python.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/arg_to_python_base.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/as_to_python_function.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/builtin_converters.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/constructor_function.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/context_result_converter.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/convertible_function.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/from_python.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/implicit.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/obj_mgr_arg_from_python.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/object_manager.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/pointer_type_id.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/pyobject_traits.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/pyobject_type.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/pytype_function.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/pytype_object_mgr_traits.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/registered.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/registered_pointee.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/registrations.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/registry.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/return_from_python.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/rvalue_from_python_data.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/shared_ptr_deleter.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/shared_ptr_from_python.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/shared_ptr_to_python.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/converter/to_python_function_type.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/aix_init_module.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/api_placeholder.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/borrowed_ptr.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/caller.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/config.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/construct.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/convertible.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/copy_ctor_mutates_rhs.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/cv_category.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/dealloc.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/decorated_type_id.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/decref_guard.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/def_helper.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/def_helper_fwd.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/defaults_def.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/defaults_gen.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/dependent.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/destroy.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/enable_if.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/exception_handler.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/force_instantiate.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/get_pointer.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/if_else.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/indirect_traits.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/integer_cast.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/invoke.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/is_auto_ptr.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/is_shared_ptr.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/is_wrapper.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/is_xxx.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/make_keyword_range_fn.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/map_entry.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/mpl_lambda.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/msvc_typeinfo.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/none.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/not_specified.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/nullary_function_adaptor.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/operator_id.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/overloads_fwd.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/pointee.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/prefix.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/preprocessor.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/pymutex.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/python_type.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/raw_pyobject.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/referent_storage.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/result.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/scope.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/sfinae.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/signature.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/string_literal.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/target.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/translate_exception.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/type_list.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/type_list_impl.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/type_traits.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/unwind_type.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/unwrap_type_id.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/unwrap_wrapper.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/value_arg.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/value_is_shared_ptr.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/value_is_xxx.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/void_ptr.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/void_return.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/wrap_python.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/wrapper_base.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/mpl2/and.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/mpl2/at.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/mpl2/bool.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/mpl2/eval_if.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/mpl2/front.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/mpl2/identity.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/mpl2/if.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/mpl2/int.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/mpl2/not.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/mpl2/or.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/mpl2/pop_front.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/mpl2/push_front.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/detail/mpl2/size.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/add_to_namespace.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/class.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/class_detail.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/class_metadata.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/class_wrapper.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/enum_base.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/find_instance.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/forward.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/function.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/function_doc_signature.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/function_handle.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/function_object.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/inheritance.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/inheritance_query.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/instance.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/iterator.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/iterator_core.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/life_support.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/make_holder.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/make_instance.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/make_ptr_instance.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/pickle_support.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/pointer_holder.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/py_function.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/stl_iterator_core.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/value_holder.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/object/value_holder_fwd.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/suite/indexing/container_utils.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/suite/indexing/indexing_suite.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/suite/indexing/map_indexing_suite.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/suite/indexing/vector_indexing_suite.hpp" "${_IMPORT_PREFIX}/pxr-boost/include/pxr/boost/python/suite/indexing/detail/indexing_suite_detail.hpp"
|
|
75
|
+
)
|
|
76
|
+
else()
|
|
77
|
+
set_property(TARGET pxr::boost-python
|
|
78
|
+
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
|
|
79
|
+
"${_IMPORT_PREFIX}/pxr-boost/include"
|
|
80
|
+
)
|
|
81
|
+
endif()
|
|
82
|
+
|
|
83
|
+
# Load information for each installed configuration.
|
|
84
|
+
file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/pxr-boost-targets-*.cmake")
|
|
85
|
+
foreach(_cmake_config_file IN LISTS _cmake_config_files)
|
|
86
|
+
include("${_cmake_config_file}")
|
|
87
|
+
endforeach()
|
|
88
|
+
unset(_cmake_config_file)
|
|
89
|
+
unset(_cmake_config_files)
|
|
90
|
+
|
|
91
|
+
# Cleanup temporary variables.
|
|
92
|
+
set(_IMPORT_PREFIX)
|
|
93
|
+
|
|
94
|
+
# Loop over all imported files and verify that they actually exist
|
|
95
|
+
foreach(_cmake_target IN LISTS _cmake_import_check_targets)
|
|
96
|
+
if(CMAKE_VERSION VERSION_LESS "3.28"
|
|
97
|
+
OR NOT DEFINED _cmake_import_check_xcframework_for_${_cmake_target}
|
|
98
|
+
OR NOT IS_DIRECTORY "${_cmake_import_check_xcframework_for_${_cmake_target}}")
|
|
99
|
+
foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
|
|
100
|
+
if(NOT EXISTS "${_cmake_file}")
|
|
101
|
+
message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
|
|
102
|
+
\"${_cmake_file}\"
|
|
103
|
+
but this file does not exist. Possible reasons include:
|
|
104
|
+
* The file was deleted, renamed, or moved to another location.
|
|
105
|
+
* An install or uninstall procedure did not complete successfully.
|
|
106
|
+
* The installation package was faulty and contained
|
|
107
|
+
\"${CMAKE_CURRENT_LIST_FILE}\"
|
|
108
|
+
but not all the files it references.
|
|
109
|
+
")
|
|
110
|
+
endif()
|
|
111
|
+
endforeach()
|
|
112
|
+
endif()
|
|
113
|
+
unset(_cmake_file)
|
|
114
|
+
unset("_cmake_import_check_files_for_${_cmake_target}")
|
|
115
|
+
endforeach()
|
|
116
|
+
unset(_cmake_target)
|
|
117
|
+
unset(_cmake_import_check_targets)
|
|
118
|
+
|
|
119
|
+
# This file does not depend on other imported targets which have
|
|
120
|
+
# been exported from the same project but in a separate export set.
|
|
121
|
+
|
|
122
|
+
# Commands beyond this point should not need to know the version.
|
|
123
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
|
124
|
+
cmake_policy(POP)
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2024 Pixar
|
|
3
|
+
// Licensed under the terms set forth in the LICENSE.txt file available at
|
|
4
|
+
// https://openusd.org/license.
|
|
5
|
+
//
|
|
6
|
+
// Copyright David Abrahams 2002.
|
|
7
|
+
// Distributed under the Boost Software License, Version 1.0. (See
|
|
8
|
+
// accompanying file LICENSE_1_0.txt or copy at
|
|
9
|
+
// http://www.boost.org/LICENSE_1_0.txt)
|
|
10
|
+
#ifndef PXR_EXTERNAL_BOOST_PYTHON_ARG_FROM_PYTHON_HPP
|
|
11
|
+
# define PXR_EXTERNAL_BOOST_PYTHON_ARG_FROM_PYTHON_HPP
|
|
12
|
+
|
|
13
|
+
#include <pxr/boost/python/common.hpp>
|
|
14
|
+
|
|
15
|
+
# include <pxr/boost/python/detail/prefix.hpp>
|
|
16
|
+
# include <pxr/boost/python/converter/arg_from_python.hpp>
|
|
17
|
+
|
|
18
|
+
namespace PXR_BOOST_NAMESPACE { namespace python {
|
|
19
|
+
|
|
20
|
+
template <class T>
|
|
21
|
+
struct arg_from_python
|
|
22
|
+
: converter::select_arg_from_python<
|
|
23
|
+
T
|
|
24
|
+
>::type
|
|
25
|
+
{
|
|
26
|
+
typedef typename converter::select_arg_from_python<
|
|
27
|
+
T
|
|
28
|
+
>::type base;
|
|
29
|
+
|
|
30
|
+
arg_from_python(PyObject*);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
// specialization for PyObject*
|
|
34
|
+
template <>
|
|
35
|
+
struct arg_from_python<PyObject*>
|
|
36
|
+
{
|
|
37
|
+
typedef PyObject* result_type;
|
|
38
|
+
|
|
39
|
+
arg_from_python(PyObject* p) : m_source(p) {}
|
|
40
|
+
bool convertible() const { return true; }
|
|
41
|
+
PyObject* operator()() const { return m_source; }
|
|
42
|
+
private:
|
|
43
|
+
PyObject* m_source;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
template <>
|
|
47
|
+
struct arg_from_python<PyObject* const&>
|
|
48
|
+
{
|
|
49
|
+
typedef PyObject* const& result_type;
|
|
50
|
+
|
|
51
|
+
arg_from_python(PyObject* p) : m_source(p) {}
|
|
52
|
+
bool convertible() const { return true; }
|
|
53
|
+
PyObject*const& operator()() const { return m_source; }
|
|
54
|
+
private:
|
|
55
|
+
PyObject* m_source;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
//
|
|
59
|
+
// implementations
|
|
60
|
+
//
|
|
61
|
+
template <class T>
|
|
62
|
+
inline arg_from_python<T>::arg_from_python(PyObject* source)
|
|
63
|
+
: base(source)
|
|
64
|
+
{
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
}} // namespace PXR_BOOST_NAMESPACE::python
|
|
68
|
+
|
|
69
|
+
#endif // PXR_EXTERNAL_BOOST_PYTHON_ARG_FROM_PYTHON_HPP
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2024 Pixar
|
|
3
|
+
// Licensed under the terms set forth in the LICENSE.txt file available at
|
|
4
|
+
// https://openusd.org/license.
|
|
5
|
+
//
|
|
6
|
+
// Copyright David Abrahams 2002.
|
|
7
|
+
// Distributed under the Boost Software License, Version 1.0. (See
|
|
8
|
+
// accompanying file LICENSE_1_0.txt or copy at
|
|
9
|
+
// http://www.boost.org/LICENSE_1_0.txt)
|
|
10
|
+
#ifndef PXR_EXTERNAL_BOOST_PYTHON_ARGS_HPP
|
|
11
|
+
# define PXR_EXTERNAL_BOOST_PYTHON_ARGS_HPP
|
|
12
|
+
|
|
13
|
+
#include <pxr/boost/python/common.hpp>
|
|
14
|
+
|
|
15
|
+
# include <pxr/boost/python/detail/prefix.hpp>
|
|
16
|
+
|
|
17
|
+
# include <pxr/boost/python/args_fwd.hpp>
|
|
18
|
+
# include <pxr/boost/python/detail/preprocessor.hpp>
|
|
19
|
+
# include <pxr/boost/python/detail/type_list.hpp>
|
|
20
|
+
# include <pxr/boost/python/detail/type_traits.hpp>
|
|
21
|
+
|
|
22
|
+
# include <pxr/boost/python/object_core.hpp>
|
|
23
|
+
|
|
24
|
+
# include <pxr/boost/python/detail/mpl2/bool.hpp>
|
|
25
|
+
|
|
26
|
+
# include <cstddef>
|
|
27
|
+
# include <algorithm>
|
|
28
|
+
|
|
29
|
+
namespace PXR_BOOST_NAMESPACE { namespace python {
|
|
30
|
+
|
|
31
|
+
typedef detail::keywords<1> arg;
|
|
32
|
+
typedef arg arg_; // gcc 2.96 workaround
|
|
33
|
+
|
|
34
|
+
namespace detail
|
|
35
|
+
{
|
|
36
|
+
template <std::size_t nkeywords>
|
|
37
|
+
struct keywords_base
|
|
38
|
+
{
|
|
39
|
+
static constexpr std::size_t size = nkeywords;
|
|
40
|
+
|
|
41
|
+
keyword_range range() const
|
|
42
|
+
{
|
|
43
|
+
return keyword_range(elements, elements + nkeywords);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
keyword elements[nkeywords];
|
|
47
|
+
|
|
48
|
+
keywords<nkeywords+1>
|
|
49
|
+
operator,(python::arg const &k) const;
|
|
50
|
+
|
|
51
|
+
keywords<nkeywords + 1>
|
|
52
|
+
operator,(char const *name) const;
|
|
53
|
+
|
|
54
|
+
template <class... Name>
|
|
55
|
+
void set_elements(Name... name)
|
|
56
|
+
{
|
|
57
|
+
static_assert(sizeof...(Name) == nkeywords, "Must supply all keywords");
|
|
58
|
+
|
|
59
|
+
size_t i = 0;
|
|
60
|
+
([this, &i](char const* n) { elements[i++].name = n; }(name), ...);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
template <std::size_t nkeywords>
|
|
65
|
+
struct keywords : keywords_base<nkeywords>
|
|
66
|
+
{
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
template <>
|
|
70
|
+
struct keywords<1> : keywords_base<1>
|
|
71
|
+
{
|
|
72
|
+
explicit keywords(char const *name)
|
|
73
|
+
{
|
|
74
|
+
elements[0].name = name;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
template <class T>
|
|
78
|
+
python::arg& operator=(T const& value)
|
|
79
|
+
{
|
|
80
|
+
object z(value);
|
|
81
|
+
elements[0].default_value = handle<>(python::borrowed(object(value).ptr()));
|
|
82
|
+
return *this;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
operator detail::keyword const&() const
|
|
86
|
+
{
|
|
87
|
+
return elements[0];
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
template <std::size_t nkeywords>
|
|
92
|
+
inline
|
|
93
|
+
keywords<nkeywords+1>
|
|
94
|
+
keywords_base<nkeywords>::operator,(python::arg const &k) const
|
|
95
|
+
{
|
|
96
|
+
keywords<nkeywords> const& l = *static_cast<keywords<nkeywords> const*>(this);
|
|
97
|
+
python::detail::keywords<nkeywords+1> res;
|
|
98
|
+
std::copy(l.elements, l.elements+nkeywords, res.elements);
|
|
99
|
+
res.elements[nkeywords] = k.elements[0];
|
|
100
|
+
return res;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
template <std::size_t nkeywords>
|
|
104
|
+
inline
|
|
105
|
+
keywords<nkeywords + 1>
|
|
106
|
+
keywords_base<nkeywords>::operator,(char const *name) const
|
|
107
|
+
{
|
|
108
|
+
return this->operator,(python::arg(name));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
template<typename T>
|
|
112
|
+
struct is_keywords
|
|
113
|
+
{
|
|
114
|
+
static constexpr bool value = false;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
template<std::size_t nkeywords>
|
|
118
|
+
struct is_keywords<keywords<nkeywords> >
|
|
119
|
+
{
|
|
120
|
+
static constexpr bool value = true;
|
|
121
|
+
};
|
|
122
|
+
template <class T>
|
|
123
|
+
struct is_reference_to_keywords
|
|
124
|
+
{
|
|
125
|
+
static constexpr bool is_ref = detail::is_reference<T>::value;
|
|
126
|
+
typedef typename detail::remove_reference<T>::type deref;
|
|
127
|
+
typedef typename detail::remove_cv<deref>::type key_t;
|
|
128
|
+
static constexpr bool is_key = is_keywords<key_t>::value;
|
|
129
|
+
static constexpr bool value = (is_ref & is_key);
|
|
130
|
+
|
|
131
|
+
typedef detail::mpl2::bool_<value> type;
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
inline detail::keywords<1> args(char const* name)
|
|
136
|
+
{
|
|
137
|
+
return detail::keywords<1>(name);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
template <class... Name>
|
|
141
|
+
inline detail::keywords<sizeof...(Name)> args(Name... name)
|
|
142
|
+
{
|
|
143
|
+
static_assert(
|
|
144
|
+
(std::is_convertible_v<Name, char const*> && ...),
|
|
145
|
+
"Arguments must be char const*");
|
|
146
|
+
|
|
147
|
+
detail::keywords<sizeof...(Name)> result;
|
|
148
|
+
result.set_elements(name...);
|
|
149
|
+
return result;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
}} // namespace PXR_BOOST_NAMESPACE::python
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
# endif // PXR_EXTERNAL_BOOST_PYTHON_ARGS_HPP
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2024 Pixar
|
|
3
|
+
// Licensed under the terms set forth in the LICENSE.txt file available at
|
|
4
|
+
// https://openusd.org/license.
|
|
5
|
+
//
|
|
6
|
+
// Copyright David Abrahams 2002.
|
|
7
|
+
// Distributed under the Boost Software License, Version 1.0. (See
|
|
8
|
+
// accompanying file LICENSE_1_0.txt or copy at
|
|
9
|
+
// http://www.boost.org/LICENSE_1_0.txt)
|
|
10
|
+
#ifndef PXR_EXTERNAL_BOOST_PYTHON_ARGS_FWD_HPP
|
|
11
|
+
# define PXR_EXTERNAL_BOOST_PYTHON_ARGS_FWD_HPP
|
|
12
|
+
|
|
13
|
+
#include <pxr/boost/python/common.hpp>
|
|
14
|
+
|
|
15
|
+
# include <pxr/boost/python/detail/prefix.hpp>
|
|
16
|
+
|
|
17
|
+
# include <pxr/boost/python/handle.hpp>
|
|
18
|
+
# include <cstddef>
|
|
19
|
+
# include <utility>
|
|
20
|
+
|
|
21
|
+
namespace PXR_BOOST_NAMESPACE { namespace python {
|
|
22
|
+
|
|
23
|
+
namespace detail
|
|
24
|
+
{
|
|
25
|
+
struct keyword
|
|
26
|
+
{
|
|
27
|
+
keyword(char const* name_=0)
|
|
28
|
+
: name(name_)
|
|
29
|
+
{}
|
|
30
|
+
|
|
31
|
+
char const* name;
|
|
32
|
+
handle<> default_value;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
template <std::size_t nkeywords = 0> struct keywords;
|
|
36
|
+
|
|
37
|
+
typedef std::pair<keyword const*, keyword const*> keyword_range;
|
|
38
|
+
|
|
39
|
+
template <>
|
|
40
|
+
struct keywords<0>
|
|
41
|
+
{
|
|
42
|
+
static constexpr std::size_t size = 0;
|
|
43
|
+
static keyword_range range() { return keyword_range(); }
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
namespace error
|
|
47
|
+
{
|
|
48
|
+
template <int keywords, int function_args>
|
|
49
|
+
struct more_keywords_than_function_arguments
|
|
50
|
+
{
|
|
51
|
+
typedef char too_many_keywords[keywords > function_args ? -1 : 1];
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
}} // namespace PXR_BOOST_NAMESPACE::python
|
|
57
|
+
|
|
58
|
+
#endif // PXR_EXTERNAL_BOOST_PYTHON_ARGS_FWD_HPP
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2024 Pixar
|
|
3
|
+
// Licensed under the terms set forth in the LICENSE.txt file available at
|
|
4
|
+
// https://openusd.org/license.
|
|
5
|
+
//
|
|
6
|
+
// Copyright David Abrahams 2002.
|
|
7
|
+
// Distributed under the Boost Software License, Version 1.0. (See
|
|
8
|
+
// accompanying file LICENSE_1_0.txt or copy at
|
|
9
|
+
// http://www.boost.org/LICENSE_1_0.txt)
|
|
10
|
+
#ifndef PXR_EXTERNAL_BOOST_PYTHON_BACK_REFERENCE_HPP
|
|
11
|
+
# define PXR_EXTERNAL_BOOST_PYTHON_BACK_REFERENCE_HPP
|
|
12
|
+
|
|
13
|
+
#include <pxr/boost/python/common.hpp>
|
|
14
|
+
|
|
15
|
+
# include <pxr/boost/python/detail/prefix.hpp>
|
|
16
|
+
|
|
17
|
+
# include <pxr/boost/python/object_fwd.hpp>
|
|
18
|
+
# include <pxr/boost/python/detail/dependent.hpp>
|
|
19
|
+
# include <pxr/boost/python/detail/raw_pyobject.hpp>
|
|
20
|
+
|
|
21
|
+
namespace PXR_BOOST_NAMESPACE { namespace python {
|
|
22
|
+
|
|
23
|
+
template <class T>
|
|
24
|
+
struct back_reference
|
|
25
|
+
{
|
|
26
|
+
private: // types
|
|
27
|
+
typedef typename detail::dependent<object,T>::type source_t;
|
|
28
|
+
public:
|
|
29
|
+
typedef T type;
|
|
30
|
+
|
|
31
|
+
back_reference(PyObject*, T);
|
|
32
|
+
source_t const& source() const;
|
|
33
|
+
T get() const;
|
|
34
|
+
private:
|
|
35
|
+
source_t m_source;
|
|
36
|
+
T m_value;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
template<typename T>
|
|
40
|
+
class is_back_reference
|
|
41
|
+
{
|
|
42
|
+
public:
|
|
43
|
+
static constexpr bool value = false;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
template<typename T>
|
|
47
|
+
class is_back_reference<back_reference<T> >
|
|
48
|
+
{
|
|
49
|
+
public:
|
|
50
|
+
static constexpr bool value = true;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
//
|
|
55
|
+
// implementations
|
|
56
|
+
//
|
|
57
|
+
template <class T>
|
|
58
|
+
back_reference<T>::back_reference(PyObject* p, T x)
|
|
59
|
+
: m_source(detail::borrowed_reference(p))
|
|
60
|
+
, m_value(x)
|
|
61
|
+
{
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
template <class T>
|
|
65
|
+
typename back_reference<T>::source_t const& back_reference<T>::source() const
|
|
66
|
+
{
|
|
67
|
+
return m_source;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
template <class T>
|
|
71
|
+
T back_reference<T>::get() const
|
|
72
|
+
{
|
|
73
|
+
return m_value;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
}} // namespace PXR_BOOST_NAMESPACE::python
|
|
77
|
+
|
|
78
|
+
#endif // PXR_EXTERNAL_BOOST_PYTHON_BACK_REFERENCE_HPP
|