diff options
Diffstat (limited to 'vcpkg/ports/sol2')
| -rw-r--r-- | vcpkg/ports/sol2/header-only.patch | 13 | ||||
| -rw-r--r-- | vcpkg/ports/sol2/portfile.cmake | 19 | ||||
| -rw-r--r-- | vcpkg/ports/sol2/vcpkg.json | 17 |
3 files changed, 49 insertions, 0 deletions
diff --git a/vcpkg/ports/sol2/header-only.patch b/vcpkg/ports/sol2/header-only.patch new file mode 100644 index 0000000..06f6fac --- /dev/null +++ b/vcpkg/ports/sol2/header-only.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 120dd38..0b069dc 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -174,7 +174,7 @@ else() + endif() + + # # # Tests, Examples and other CI suites that come with sol2 +-if (sol2-is-top-level-project) ++if (0) + # # # General project output locations + if (CMAKE_SIZEOF_VOID_P EQUAL 4) + set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/x86/lib") diff --git a/vcpkg/ports/sol2/portfile.cmake b/vcpkg/ports/sol2/portfile.cmake new file mode 100644 index 0000000..ce5cb48 --- /dev/null +++ b/vcpkg/ports/sol2/portfile.cmake @@ -0,0 +1,19 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO ThePhD/sol2 + REF "v${VERSION}" + SHA512 5a6ec7e16dae05ad6abea02842f62db8f64935eda438d67b2c264cbee80cee6d82200bd060387c6df837fe9f212dbe22b2772af34df1ce8bd43296dd9429558d + HEAD_REF develop + PATCHES + header-only.patch +) + +set(VCPKG_BUILD_TYPE release) # header-only +vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}") +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/sol2) +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") diff --git a/vcpkg/ports/sol2/vcpkg.json b/vcpkg/ports/sol2/vcpkg.json new file mode 100644 index 0000000..d49dfc6 --- /dev/null +++ b/vcpkg/ports/sol2/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "sol2", + "version": "3.5.0", + "description": "Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance", + "homepage": "https://github.com/ThePhD/sol2", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |