early-access version 2853
This commit is contained in:
31
externals/vcpkg/ports/pystring/CMakeLists.txt
vendored
Executable file
31
externals/vcpkg/ports/pystring/CMakeLists.txt
vendored
Executable file
@@ -0,0 +1,31 @@
|
||||
cmake_minimum_required(VERSION 3.12)
|
||||
project(pystring CXX)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
||||
add_library(pystring pystring.cpp)
|
||||
target_include_directories(
|
||||
pystring
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
install(
|
||||
TARGETS pystring
|
||||
EXPORT pystring-config
|
||||
)
|
||||
|
||||
if(NOT DISABLE_INSTALL_HEADERS)
|
||||
install(FILES pystring.h DESTINATION include/pystring)
|
||||
endif()
|
||||
|
||||
install(
|
||||
EXPORT pystring-config
|
||||
NAMESPACE pystring::
|
||||
DESTINATION share/pystring
|
||||
)
|
22
externals/vcpkg/ports/pystring/portfile.cmake
vendored
Executable file
22
externals/vcpkg/ports/pystring/portfile.cmake
vendored
Executable file
@@ -0,0 +1,22 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO imageworks/pystring
|
||||
REF v1.1.3
|
||||
SHA512 a46bb2e96d6eb351a4a8097cde46ac2877d28e88f9e57e0ac36c42e8fc8543517c4be70306a01e2f88a891fc53c612494aeb37f47a200d94b8e1b050ed16eff6
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
18
externals/vcpkg/ports/pystring/vcpkg.json
vendored
Executable file
18
externals/vcpkg/ports/pystring/vcpkg.json
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "pystring",
|
||||
"version-semver": "1.1.3",
|
||||
"port-version": 5,
|
||||
"description": "Pystring is a collection of C++ functions which match the interface and behavior of python's string class methods using std::string",
|
||||
"homepage": "https://github.com/imageworks/pystring",
|
||||
"license": "LGPL-2.1-only",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user