early-access version 2853
This commit is contained in:
19
externals/vcpkg/ports/sol2/fix-namespace.patch
vendored
Executable file
19
externals/vcpkg/ports/sol2/fix-namespace.patch
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
diff --git a/cmake/sol2-config.cmake.in b/cmake/sol2-config.cmake.in
|
||||
index 70c448d..7965bc6 100644
|
||||
--- a/cmake/sol2-config.cmake.in
|
||||
+++ b/cmake/sol2-config.cmake.in
|
||||
@@ -26,11 +26,11 @@ include("${CMAKE_CURRENT_LIST_DIR}/sol2-targets.cmake")
|
||||
|
||||
MESSAGE(STATUS ${CMAKE_CURRENT_LIST_DIR})
|
||||
|
||||
-if (TARGET sol2)
|
||||
+if (TARGET sol2::sol2)
|
||||
get_target_property(SOL2_INCLUDE_DIRS
|
||||
- sol2 INTERFACE_INCLUDE_DIRECTORIES)
|
||||
+ sol2::sol2 INTERFACE_INCLUDE_DIRECTORIES)
|
||||
set_and_check(SOL2_INCLUDE_DIRS "${SOL2_INCLUDE_DIRS}")
|
||||
- set(SOL2_LIBRARIES sol2)
|
||||
+ set(SOL2_LIBRARIES sol2::sol2)
|
||||
endif()
|
||||
|
||||
if(TARGET sol2_single)
|
||||
29
externals/vcpkg/ports/sol2/portfile.cmake
vendored
Executable file
29
externals/vcpkg/ports/sol2/portfile.cmake
vendored
Executable file
@@ -0,0 +1,29 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO ThePhD/sol2
|
||||
REF v3.2.2
|
||||
SHA512 e5a739b37aea7150f141f6a003c2689dd33155feed5bb3cf2569abbfe9f0062eacdaaf346be523d627f0e491b35e68822c80e1117fa09ece8c9d8d5af09fdbec
|
||||
HEAD_REF develop
|
||||
PATCHES fix-namespace.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/sol2)
|
||||
|
||||
file(
|
||||
REMOVE_RECURSE
|
||||
${CURRENT_PACKAGES_DIR}/debug
|
||||
${CURRENT_PACKAGES_DIR}/lib
|
||||
${CURRENT_PACKAGES_DIR}/include
|
||||
)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/single/include/sol DESTINATION ${CURRENT_PACKAGES_DIR}/include/)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
|
||||
vcpkg_fixup_pkgconfig()
|
||||
13
externals/vcpkg/ports/sol2/vcpkg.json
vendored
Executable file
13
externals/vcpkg/ports/sol2/vcpkg.json
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "sol2",
|
||||
"version-string": "3.2.2",
|
||||
"port-version": 2,
|
||||
"description": "Sol v2.0 - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great",
|
||||
"homepage": "https://github.com/ThePhD/sol2",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "lua",
|
||||
"platform": "windows"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user