Quellcode durchsuchen

Converted pybind11 to 3p package source. (#55)

* Converted pybind11 to 3p package source.
* Update pybind11 to rev3

Signed-off-by: lawsonamzn <[email protected]>
Chris Galvan vor 3 Jahren
Ursprung
Commit
7a0ba4dba2

+ 2 - 0
package-system/.gitignore

@@ -23,3 +23,5 @@ SPIRVCross-*
 tiff-*
 v-hacd-*
 zlib-*
+pybind11-multiplatform
+

+ 24 - 0
package-system/pybind11/Findpybind11.cmake

@@ -0,0 +1,24 @@
+#
+# Copyright (c) Contributors to the Open 3D Engine Project.
+# For complete copyright and license terms please see the LICENSE at the root of this distribution.
+#
+# SPDX-License-Identifier: Apache-2.0 OR MIT
+#
+
+# this file actually ingests the library and defines targets.
+set(TARGET_WITH_NAMESPACE "3rdParty::pybind11")
+if (TARGET ${TARGET_WITH_NAMESPACE})
+    return()
+endif()
+
+set(LIB_NAME "pybind11")
+set(${LIB_NAME}_INCLUDE_DIR ${CMAKE_CURRENT_LIST_DIR}/pybind11/include)
+add_library(${TARGET_WITH_NAMESPACE} INTERFACE IMPORTED GLOBAL)
+
+ly_target_include_system_directories(TARGET ${TARGET_WITH_NAMESPACE} INTERFACE ${${LIB_NAME}_INCLUDE_DIR})
+
+if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+    target_compile_options(3rdParty::pybind11 INTERFACE -fsized-deallocation)
+endif()
+
+set(${LIB_NAME}_FOUND True)

+ 21 - 0
package-system/pybind11/build_config.json

@@ -0,0 +1,21 @@
+{
+    "git_url":"https://github.com/pybind/pybind11",
+    "git_tag":"v2.4.3",
+    "git_commit":"80d452484c5409444b0ec19383faa84bb7a4d351",
+    "package_name":"pybind11",
+    "package_version":"2.4.3-rev3",
+    "package_url":"https://github.com/pybind/pybind11",
+    "package_license":"BSD-3-Clause",
+    "package_license_file":"pybind11/LICENSE",
+    "cmake_find_source":"Findpybind11.cmake",
+    "cmake_find_target":"Findpybind11.cmake",
+    "Platforms":{
+        "Windows": {
+            "multiplatform":{
+                "cmake_generate_args": [
+                    "-DPYBIND11_TEST=0"
+                ]
+            }
+        }
+    }
+}

+ 2 - 1
package_build_list_host_windows.json

@@ -42,6 +42,7 @@
         "RapidJSON-1.1.0-rev1-multiplatform": "Scripts/extras/pull_and_build_from_git.py ../../package-system/RapidJSON --platform-name multiplatform --package-root ../../package-system",
         "v-hacd-2.3-1a49edf-rev1-windows": "package-system/v-hacd/build_package_image.py --platform-name windows",
         "python-3.7.10-rev2-windows": "package-system/python/build_package_image.py",
+        "pybind11-2.4.3-rev3-multiplatform": "Scripts/extras/pull_and_build_from_git.py ../../package-system/pybind11 --platform-name multiplatform --package-root ../../package-system --clean",
         "mikkelsen-1.0.0.4-windows": "package-system/mikkelsen/build_package_image.py",
         "mikkelsen-1.0.0.4-android": "package-system/mikkelsen/build_package_image.py --platform android",
         "qt-5.15.2-rev4-windows": "Scripts/extras/pull_and_build_from_git.py ../../package-system/Qt --platform-name Windows --package-root ../../package-system --clean",
@@ -77,7 +78,7 @@
     "tiff-4.2.0.14-windows": "package-system/tiff-windows",
     "lux_core-2.2-rev5-multiplatform": "package-system/luxcore-multiplatform",
     "python-3.7.10-rev1-windows": "package-system/python/win_x64/package",
-    "pybind11-2.4.3-rev1-multiplatform": "package-system/pybind11-multiplatform",
+    "pybind11-2.4.3-rev3-multiplatform": "package-system/pybind11-multiplatform",
     "alembic-1.7.11-rev3-multiplatform": "package-system/alembic-multiplatform",
     "hdf5-1.0.11-rev2-multiplatform": "package-system/hdf5-multiplatform",
     "ilmbase-2.3.0-rev4-multiplatform": "package-system/ilmbase-multiplatform",