early-access version 2853
This commit is contained in:
10
externals/vcpkg/ports/lionkor-commandline/add-install.patch
vendored
Executable file
10
externals/vcpkg/ports/lionkor-commandline/add-install.patch
vendored
Executable file
@@ -0,0 +1,10 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index b4db57c..7ace55c 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -22,3 +22,5 @@ if(BUILD_EXAMPLES)
|
||||
target_link_libraries(test commandline)
|
||||
endif()
|
||||
|
||||
+set_target_properties(commandline PROPERTIES PUBLIC_HEADER "commandline.h")
|
||||
+install(TARGETS commandline RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib PUBLIC_HEADER DESTINATION include)
|
24
externals/vcpkg/ports/lionkor-commandline/portfile.cmake
vendored
Executable file
24
externals/vcpkg/ports/lionkor-commandline/portfile.cmake
vendored
Executable file
@@ -0,0 +1,24 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO lionkor/commandline
|
||||
REF 01434c11aaf82d37a126dc70f5aa02cc523dbbb4
|
||||
SHA512 fb9554c07d13aa4c5d84f8288ad39e67ab302da4b286172e0f8fbc22b351234a83fb60f1c085a238d10477a379fded32302338cbddbe7ee0fdda54c6c4a75593
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
add-install.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DBUILD_EXAMPLES=OFF
|
||||
)
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
18
externals/vcpkg/ports/lionkor-commandline/vcpkg.json
vendored
Executable file
18
externals/vcpkg/ports/lionkor-commandline/vcpkg.json
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "lionkor-commandline",
|
||||
"version-semver": "2.0.0",
|
||||
"description": "A C++ commandline for use in servers and chat software. Provides very simple asynchronous input/output.",
|
||||
"homepage": "https://github.com/lionkor/commandline/",
|
||||
"license": "MIT",
|
||||
"supports": "!osx & !uwp",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user