pxr-boost-dev 0.25.2__cp313-cp313-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-config.cmake +38 -0
- pxr-boost/cmake/pxr-boost-targets-release.cmake +19 -0
- pxr-boost/cmake/pxr-boost-targets.cmake +107 -0
- pxr-boost/include/pxr/boost/python/arg_from_python.hpp +69 -0
- pxr-boost/include/pxr/boost/python/args.hpp +154 -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 +48 -0
- pxr-boost/include/pxr/boost/python/call_method.hpp +48 -0
- pxr-boost/include/pxr/boost/python/cast.hpp +112 -0
- pxr-boost/include/pxr/boost/python/class.hpp +567 -0
- pxr-boost/include/pxr/boost/python/class_fwd.hpp +31 -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 +141 -0
- pxr-boost/include/pxr/boost/python/converter/pytype_object_mgr_traits.hpp +49 -0
- pxr-boost/include/pxr/boost/python/converter/registered.hpp +113 -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 +74 -0
- pxr-boost/include/pxr/boost/python/converter/shared_ptr_to_python.hpp +35 -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 +21 -0
- pxr-boost/include/pxr/boost/python/detail/borrowed_ptr.hpp +86 -0
- pxr-boost/include/pxr/boost/python/detail/caller.hpp +287 -0
- pxr-boost/include/pxr/boost/python/detail/config.hpp +82 -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 +281 -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 +34 -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 +78 -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 +25 -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 +19 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/at.hpp +36 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/bool.hpp +22 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/eval_if.hpp +31 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/front.hpp +27 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/identity.hpp +20 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/if.hpp +22 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/int.hpp +19 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/not.hpp +19 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/or.hpp +19 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/pop_front.hpp +27 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/push_front.hpp +27 -0
- pxr-boost/include/pxr/boost/python/detail/mpl2/size.hpp +27 -0
- pxr-boost/include/pxr/boost/python/detail/mpl_lambda.hpp +17 -0
- pxr-boost/include/pxr/boost/python/detail/msvc_typeinfo.hpp +92 -0
- pxr-boost/include/pxr/boost/python/detail/none.hpp +26 -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/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 +56 -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 +93 -0
- pxr-boost/include/pxr/boost/python/detail/string_literal.hpp +45 -0
- pxr-boost/include/pxr/boost/python/detail/target.hpp +49 -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 +95 -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 +34 -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 +254 -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 +61 -0
- pxr-boost/include/pxr/boost/python/exception_translator.hpp +39 -0
- pxr-boost/include/pxr/boost/python/exec.hpp +73 -0
- pxr-boost/include/pxr/boost/python/extract.hpp +263 -0
- pxr-boost/include/pxr/boost/python/handle.hpp +234 -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 +32 -0
- pxr-boost/include/pxr/boost/python/init.hpp +423 -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 +285 -0
- pxr-boost/include/pxr/boost/python/make_function.hpp +159 -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 +85 -0
- pxr-boost/include/pxr/boost/python/noncopyable.hpp +21 -0
- pxr-boost/include/pxr/boost/python/object/add_to_namespace.hpp +30 -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 +303 -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 +88 -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 +70 -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 +164 -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 +112 -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 +486 -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 +131 -0
- pxr-boost/include/pxr/boost/python/raw_function.hpp +68 -0
- pxr-boost/include/pxr/boost/python/ref.hpp +42 -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 +55 -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 +148 -0
- pxr-boost/include/pxr/boost/python/slice.hpp +284 -0
- pxr-boost/include/pxr/boost/python/slice_nil.hpp +51 -0
- pxr-boost/include/pxr/boost/python/ssize_t.hpp +35 -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/container_utils.hpp +60 -0
- pxr-boost/include/pxr/boost/python/suite/indexing_suite.hpp +301 -0
- pxr-boost/include/pxr/boost/python/suite/indexing_suite_detail.hpp +757 -0
- pxr-boost/include/pxr/boost/python/suite/map_indexing_suite.hpp +188 -0
- pxr-boost/include/pxr/boost/python/suite/vector_indexing_suite.hpp +248 -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 +177 -0
- pxr-boost/include/pxr/boost/python/tuple.hpp +92 -0
- pxr-boost/include/pxr/boost/python/type.hpp +24 -0
- pxr-boost/include/pxr/boost/python/type_id.hpp +206 -0
- pxr-boost/include/pxr/boost/python/type_list.hpp +19 -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 +85 -0
- pxr-boost/lib/PxrBoostPython.dll +0 -0
- pxr-boost/lib/PxrBoostPython.lib +0 -0
- pxr_boost_dev-0.25.2.dist-info/METADATA +35 -0
- pxr_boost_dev-0.25.2.dist-info/RECORD +236 -0
- pxr_boost_dev-0.25.2.dist-info/WHEEL +5 -0
- pxr_boost_dev-0.25.2.dist-info/licenses/LICENSE.txt +209 -0
- pxr_boost_dev-0.25.2.dist-info/licenses/NOTICE.txt +8 -0
|
@@ -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,107 @@
|
|
|
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...3.29)
|
|
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
|
+
if(_IMPORT_PREFIX STREQUAL "/")
|
|
54
|
+
set(_IMPORT_PREFIX "")
|
|
55
|
+
endif()
|
|
56
|
+
|
|
57
|
+
# Create imported target pxr::boost-python
|
|
58
|
+
add_library(pxr::boost-python SHARED IMPORTED)
|
|
59
|
+
|
|
60
|
+
set_target_properties(pxr::boost-python PROPERTIES
|
|
61
|
+
INTERFACE_COMPILE_DEFINITIONS "PXR_BOOST_PYTHON_NO_PY_SIGNATURES"
|
|
62
|
+
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/pxr-boost/include"
|
|
63
|
+
INTERFACE_LINK_LIBRARIES "Python::Module"
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
# Load information for each installed configuration.
|
|
67
|
+
file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/pxr-boost-targets-*.cmake")
|
|
68
|
+
foreach(_cmake_config_file IN LISTS _cmake_config_files)
|
|
69
|
+
include("${_cmake_config_file}")
|
|
70
|
+
endforeach()
|
|
71
|
+
unset(_cmake_config_file)
|
|
72
|
+
unset(_cmake_config_files)
|
|
73
|
+
|
|
74
|
+
# Cleanup temporary variables.
|
|
75
|
+
set(_IMPORT_PREFIX)
|
|
76
|
+
|
|
77
|
+
# Loop over all imported files and verify that they actually exist
|
|
78
|
+
foreach(_cmake_target IN LISTS _cmake_import_check_targets)
|
|
79
|
+
if(CMAKE_VERSION VERSION_LESS "3.28"
|
|
80
|
+
OR NOT DEFINED _cmake_import_check_xcframework_for_${_cmake_target}
|
|
81
|
+
OR NOT IS_DIRECTORY "${_cmake_import_check_xcframework_for_${_cmake_target}}")
|
|
82
|
+
foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
|
|
83
|
+
if(NOT EXISTS "${_cmake_file}")
|
|
84
|
+
message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
|
|
85
|
+
\"${_cmake_file}\"
|
|
86
|
+
but this file does not exist. Possible reasons include:
|
|
87
|
+
* The file was deleted, renamed, or moved to another location.
|
|
88
|
+
* An install or uninstall procedure did not complete successfully.
|
|
89
|
+
* The installation package was faulty and contained
|
|
90
|
+
\"${CMAKE_CURRENT_LIST_FILE}\"
|
|
91
|
+
but not all the files it references.
|
|
92
|
+
")
|
|
93
|
+
endif()
|
|
94
|
+
endforeach()
|
|
95
|
+
endif()
|
|
96
|
+
unset(_cmake_file)
|
|
97
|
+
unset("_cmake_import_check_files_for_${_cmake_target}")
|
|
98
|
+
endforeach()
|
|
99
|
+
unset(_cmake_target)
|
|
100
|
+
unset(_cmake_import_check_targets)
|
|
101
|
+
|
|
102
|
+
# This file does not depend on other imported targets which have
|
|
103
|
+
# been exported from the same project but in a separate export set.
|
|
104
|
+
|
|
105
|
+
# Commands beyond this point should not need to know the version.
|
|
106
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
|
107
|
+
cmake_policy(POP)
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// Copyright 2024 Pixar
|
|
2
|
+
// Licensed under the terms set forth in the LICENSE.txt file available at
|
|
3
|
+
// https://openusd.org/license.
|
|
4
|
+
//
|
|
5
|
+
// Copyright David Abrahams 2002.
|
|
6
|
+
// Distributed under the Boost Software License, Version 1.0. (See
|
|
7
|
+
// accompanying file LICENSE_1_0.txt or copy at
|
|
8
|
+
// http://www.boost.org/LICENSE_1_0.txt)
|
|
9
|
+
//
|
|
10
|
+
// Modified by Jeremy Retailleau.
|
|
11
|
+
|
|
12
|
+
#ifndef PXR_BOOST_PYTHON_ARG_FROM_PYTHON_HPP
|
|
13
|
+
# define PXR_BOOST_PYTHON_ARG_FROM_PYTHON_HPP
|
|
14
|
+
|
|
15
|
+
# include "./detail/prefix.hpp"
|
|
16
|
+
# include "./converter/arg_from_python.hpp"
|
|
17
|
+
|
|
18
|
+
namespace pxr { namespace boost { 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::python
|
|
68
|
+
|
|
69
|
+
#endif // PXR_BOOST_PYTHON_ARG_FROM_PYTHON_HPP
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
// Copyright 2024 Pixar
|
|
2
|
+
// Licensed under the terms set forth in the LICENSE.txt file available at
|
|
3
|
+
// https://openusd.org/license.
|
|
4
|
+
//
|
|
5
|
+
// Copyright David Abrahams 2002.
|
|
6
|
+
// Distributed under the Boost Software License, Version 1.0. (See
|
|
7
|
+
// accompanying file LICENSE_1_0.txt or copy at
|
|
8
|
+
// http://www.boost.org/LICENSE_1_0.txt)
|
|
9
|
+
//
|
|
10
|
+
// Modified by Jeremy Retailleau.
|
|
11
|
+
|
|
12
|
+
#ifndef PXR_BOOST_PYTHON_ARGS_HPP
|
|
13
|
+
# define PXR_BOOST_PYTHON_ARGS_HPP
|
|
14
|
+
|
|
15
|
+
# include "./detail/prefix.hpp"
|
|
16
|
+
|
|
17
|
+
# include "./args_fwd.hpp"
|
|
18
|
+
# include "./detail/preprocessor.hpp"
|
|
19
|
+
# include "./detail/type_list.hpp"
|
|
20
|
+
# include "./detail/type_traits.hpp"
|
|
21
|
+
|
|
22
|
+
# include "./object_core.hpp"
|
|
23
|
+
|
|
24
|
+
# include "./detail/mpl2/bool.hpp"
|
|
25
|
+
|
|
26
|
+
# include <cstddef>
|
|
27
|
+
# include <algorithm>
|
|
28
|
+
|
|
29
|
+
namespace pxr { namespace boost { 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::python
|
|
153
|
+
|
|
154
|
+
# endif // PXR_BOOST_PYTHON_ARGS_HPP
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// Copyright 2024 Pixar
|
|
2
|
+
// Licensed under the terms set forth in the LICENSE.txt file available at
|
|
3
|
+
// https://openusd.org/license.
|
|
4
|
+
//
|
|
5
|
+
// Copyright David Abrahams 2002.
|
|
6
|
+
// Distributed under the Boost Software License, Version 1.0. (See
|
|
7
|
+
// accompanying file LICENSE_1_0.txt or copy at
|
|
8
|
+
// http://www.boost.org/LICENSE_1_0.txt)
|
|
9
|
+
//
|
|
10
|
+
// Modified by Jeremy Retailleau.
|
|
11
|
+
|
|
12
|
+
#ifndef PXR_BOOST_PYTHON_ARGS_FWD_HPP
|
|
13
|
+
# define PXR_BOOST_PYTHON_ARGS_FWD_HPP
|
|
14
|
+
|
|
15
|
+
# include "./detail/prefix.hpp"
|
|
16
|
+
|
|
17
|
+
# include "./handle.hpp"
|
|
18
|
+
# include <cstddef>
|
|
19
|
+
# include <utility>
|
|
20
|
+
|
|
21
|
+
namespace pxr { namespace boost { 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::python
|
|
57
|
+
|
|
58
|
+
#endif // PXR_BOOST_PYTHON_ARGS_FWD_HPP
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// Copyright 2024 Pixar
|
|
2
|
+
// Licensed under the terms set forth in the LICENSE.txt file available at
|
|
3
|
+
// https://openusd.org/license.
|
|
4
|
+
//
|
|
5
|
+
// Copyright David Abrahams 2002.
|
|
6
|
+
// Distributed under the Boost Software License, Version 1.0. (See
|
|
7
|
+
// accompanying file LICENSE_1_0.txt or copy at
|
|
8
|
+
// http://www.boost.org/LICENSE_1_0.txt)
|
|
9
|
+
//
|
|
10
|
+
// Modified by Jeremy Retailleau.
|
|
11
|
+
|
|
12
|
+
#ifndef PXR_BOOST_PYTHON_BACK_REFERENCE_HPP
|
|
13
|
+
# define PXR_BOOST_PYTHON_BACK_REFERENCE_HPP
|
|
14
|
+
|
|
15
|
+
# include "./detail/prefix.hpp"
|
|
16
|
+
|
|
17
|
+
# include "./object_fwd.hpp"
|
|
18
|
+
# include "./detail/dependent.hpp"
|
|
19
|
+
# include "./detail/raw_pyobject.hpp"
|
|
20
|
+
|
|
21
|
+
namespace pxr { namespace boost { 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::python
|
|
77
|
+
|
|
78
|
+
#endif // PXR_BOOST_PYTHON_BACK_REFERENCE_HPP
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Copyright 2024 Pixar
|
|
2
|
+
// Licensed under the terms set forth in the LICENSE.txt file available at
|
|
3
|
+
// https://openusd.org/license.
|
|
4
|
+
//
|
|
5
|
+
// Copyright David Abrahams 2002.
|
|
6
|
+
// Distributed under the Boost Software License, Version 1.0. (See
|
|
7
|
+
// accompanying file LICENSE_1_0.txt or copy at
|
|
8
|
+
// http://www.boost.org/LICENSE_1_0.txt)
|
|
9
|
+
//
|
|
10
|
+
// Modified by Jeremy Retailleau.
|
|
11
|
+
|
|
12
|
+
#ifndef PXR_BOOST_PYTHON_BASE_TYPE_TRAITS_HPP
|
|
13
|
+
# define PXR_BOOST_PYTHON_BASE_TYPE_TRAITS_HPP
|
|
14
|
+
|
|
15
|
+
# include "./detail/prefix.hpp"
|
|
16
|
+
|
|
17
|
+
namespace pxr { namespace boost { namespace python {
|
|
18
|
+
|
|
19
|
+
namespace detail
|
|
20
|
+
{
|
|
21
|
+
struct unspecialized {};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Derive from unspecialized so we can detect whether traits are
|
|
25
|
+
// specialized
|
|
26
|
+
template <class T> struct base_type_traits
|
|
27
|
+
: detail::unspecialized
|
|
28
|
+
{};
|
|
29
|
+
|
|
30
|
+
template <>
|
|
31
|
+
struct base_type_traits<PyObject>
|
|
32
|
+
{
|
|
33
|
+
typedef PyObject type;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
template <>
|
|
37
|
+
struct base_type_traits<PyTypeObject>
|
|
38
|
+
{
|
|
39
|
+
typedef PyObject type;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
template <>
|
|
43
|
+
struct base_type_traits<PyMethodObject>
|
|
44
|
+
{
|
|
45
|
+
typedef PyObject type;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
}}} // namespace pxr::boost::python
|
|
49
|
+
|
|
50
|
+
#endif // PXR_BOOST_PYTHON_BASE_TYPE_TRAITS_HPP
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// Copyright 2024 Pixar
|
|
2
|
+
// Licensed under the terms set forth in the LICENSE.txt file available at
|
|
3
|
+
// https://openusd.org/license.
|
|
4
|
+
//
|
|
5
|
+
// Copyright David Abrahams 2002.
|
|
6
|
+
// Distributed under the Boost Software License, Version 1.0. (See
|
|
7
|
+
// accompanying file LICENSE_1_0.txt or copy at
|
|
8
|
+
// http://www.boost.org/LICENSE_1_0.txt)
|
|
9
|
+
//
|
|
10
|
+
// Modified by Jeremy Retailleau.
|
|
11
|
+
|
|
12
|
+
#ifndef PXR_BOOST_PYTHON_BASES_HPP
|
|
13
|
+
# define PXR_BOOST_PYTHON_BASES_HPP
|
|
14
|
+
|
|
15
|
+
# include "./detail/prefix.hpp"
|
|
16
|
+
# include "./detail/type_list.hpp"
|
|
17
|
+
# include "./detail/type_traits.hpp"
|
|
18
|
+
# include "./detail/mpl2/if.hpp"
|
|
19
|
+
# include "./detail/mpl2/bool.hpp"
|
|
20
|
+
|
|
21
|
+
namespace pxr { namespace boost { namespace python {
|
|
22
|
+
|
|
23
|
+
// A type list for specifying bases
|
|
24
|
+
template <typename... Base>
|
|
25
|
+
struct bases : detail::type_list<Base...>::type
|
|
26
|
+
{};
|
|
27
|
+
|
|
28
|
+
namespace detail
|
|
29
|
+
{
|
|
30
|
+
template <class T> struct specifies_bases
|
|
31
|
+
: detail::mpl2::false_
|
|
32
|
+
{
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
template <class... Base>
|
|
36
|
+
struct specifies_bases< bases< Base... > >
|
|
37
|
+
: detail::mpl2::true_
|
|
38
|
+
{
|
|
39
|
+
};
|
|
40
|
+
template <class T, class Prev = bases<> >
|
|
41
|
+
struct select_bases
|
|
42
|
+
: detail::mpl2::if_<
|
|
43
|
+
specifies_bases<T>
|
|
44
|
+
, T
|
|
45
|
+
, Prev
|
|
46
|
+
>
|
|
47
|
+
{
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
}}} // namespace pxr::boost::python
|
|
51
|
+
|
|
52
|
+
#endif // PXR_BOOST_PYTHON_BASES_HPP
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Copyright 2024 Pixar
|
|
2
|
+
// Licensed under the terms set forth in the LICENSE.txt file available at
|
|
3
|
+
// https://openusd.org/license.
|
|
4
|
+
//
|
|
5
|
+
// Copyright David Abrahams 2002.
|
|
6
|
+
// Distributed under the Boost Software License, Version 1.0. (See
|
|
7
|
+
// accompanying file LICENSE_1_0.txt or copy at
|
|
8
|
+
// http://www.boost.org/LICENSE_1_0.txt)
|
|
9
|
+
//
|
|
10
|
+
// Modified by Jeremy Retailleau.
|
|
11
|
+
|
|
12
|
+
#ifndef PXR_BOOST_PYTHON_BORROWED_HPP
|
|
13
|
+
# define PXR_BOOST_PYTHON_BORROWED_HPP
|
|
14
|
+
|
|
15
|
+
# include "./detail/prefix.hpp"
|
|
16
|
+
# include "./detail/borrowed_ptr.hpp"
|
|
17
|
+
|
|
18
|
+
namespace pxr { namespace boost { namespace python {
|
|
19
|
+
|
|
20
|
+
template <class T>
|
|
21
|
+
inline python::detail::borrowed<T>* borrowed(T* p)
|
|
22
|
+
{
|
|
23
|
+
return (detail::borrowed<T>*)p;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
}}} // namespace pxr::boost::python
|
|
27
|
+
|
|
28
|
+
#endif // PXR_BOOST_PYTHON_BORROWED_HPP
|