mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-23 23:49:06 +08:00
[libcred] Add new port (#41204)
Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>
This commit is contained in:
parent
cb0934f1da
commit
c1f1fb3128
17
ports/libcred/disable_tests.patch
Normal file
17
ports/libcred/disable_tests.patch
Normal file
@ -0,0 +1,17 @@
|
||||
diff --git a/meson.build b/meson.build
|
||||
index 4de2473..d49a42a 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -56,8 +56,8 @@ endif
|
||||
|
||||
install_headers('include/libcred.hpp')
|
||||
|
||||
-executable('ex1', ['example/ex1.cpp'], link_with: credhelperlib, include_directories: ['include'])
|
||||
-executable('ex2', ['example/ex2.cpp'], link_with: credhelperlib, include_directories: ['include'])
|
||||
+#executable('ex1', ['example/ex1.cpp'], link_with: credhelperlib, include_directories: ['include'])
|
||||
+#executable('ex2', ['example/ex2.cpp'], link_with: credhelperlib, include_directories: ['include'])
|
||||
|
||||
-testexe = executable('testexe', ['test/test.cpp'], link_with: credhelperlib, include_directories: ['include'])
|
||||
-test('test1', testexe)
|
||||
+#testexe = executable('testexe', ['test/test.cpp'], link_with: credhelperlib, include_directories: ['include'])
|
||||
+#test('test1', testexe)
|
21
ports/libcred/portfile.cmake
Normal file
21
ports/libcred/portfile.cmake
Normal file
@ -0,0 +1,21 @@
|
||||
if (VCPKG_TARGET_IS_WINDOWS)
|
||||
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
||||
endif()
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO mamba-org/libcred
|
||||
REF ${VERSION}
|
||||
SHA512 77470b552cafc2506f9f1be56a2cd7aa412a4b568120037bf730273b5cc7c4dbabebb0abb6b192e3aef69912c6b5721d9e80b0cae0059f4fe814a5c0a8f3dcfb
|
||||
HEAD_REF main
|
||||
PATCHES
|
||||
disable_tests.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_meson(SOURCE_PATH "${SOURCE_PATH}")
|
||||
vcpkg_install_meson()
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
||||
|
||||
vcpkg_fixup_pkgconfig()
|
||||
vcpkg_copy_pdbs()
|
22
ports/libcred/vcpkg.json
Normal file
22
ports/libcred/vcpkg.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "libcred",
|
||||
"version": "1.0.0",
|
||||
"description": "a cross-platform credentials helper library",
|
||||
"homepage": "https://github.com/mamba-org/libcred",
|
||||
"license": "MIT",
|
||||
"supports": "!osx & !uwp & !arm & !(windows & staticcrt) & !android",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "glib",
|
||||
"platform": "linux"
|
||||
},
|
||||
{
|
||||
"name": "libsecret",
|
||||
"platform": "linux"
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-tool-meson",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
@ -4372,6 +4372,10 @@
|
||||
"baseline": "1.0",
|
||||
"port-version": 2
|
||||
},
|
||||
"libcred": {
|
||||
"baseline": "1.0.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"libcroco": {
|
||||
"baseline": "0.6.13",
|
||||
"port-version": 7
|
||||
|
9
versions/l-/libcred.json
Normal file
9
versions/l-/libcred.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "fc969f90949113fa71a044b18b520590400ef352",
|
||||
"version": "1.0.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user