-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lionkor-commandline] Add new port (#23471)
* [commandline] Add new port * Fix formating * Fix deps * Update versions * Remove redudant build * Update commandline.json * Update portfile.cmake * Update commandline.json * Ban osx * Update commandline.json * Update ports/commandline/add-install.patch Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * Update ports/commandline/portfile.cmake Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * Fixes * Update commandline.json * Rename commandline.json to lionkor-commandline.json * Update baseline.json * Update vcpkg.json * Rename ports/commandline/vcpkg.json to ports/lionkor-commandline/vcpkg.json * Rename ports/commandline/portfile.cmake to ports/lionkor-commandline/portfile.cmake * Rename ports/commandline/add-install.patch to ports/lionkor-commandline/add-install.patch * Update baseline.json * version Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
- Loading branch information
1 parent
5630040
commit 95641c8
Showing
5 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY) | ||
|
||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO lionkor/commandline | ||
REF 4a8000d6b767263a79c589fcc74099a4454e07a9 | ||
SHA512 81ee2716b7048e51d26f75033be7a6d3a1aec9bfef833ad067112b26144023dfad8f5f8d145b4162dba2de3ad09de223dbe9143cf9e2f5f5102374d3412aebf7 | ||
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "lionkor-commandline", | ||
"version-semver": "1.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", | ||
"dependencies": [ | ||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true | ||
}, | ||
{ | ||
"name": "vcpkg-cmake-config", | ||
"host": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"versions": [ | ||
{ | ||
"git-tree": "857618e8e62e8395973a0c48c61c837877b65fac", | ||
"version-semver": "1.0.0", | ||
"port-version": 0 | ||
} | ||
] | ||
} |