Skip to content

Commit

Permalink
[libwandio] Add new port (#8683)
Browse files Browse the repository at this point in the history
* [libwandio] Add new port

* Update ci.baseline.txt
  • Loading branch information
NancyLi1013 authored and dan-shaw committed Jan 10, 2020
1 parent ef0e878 commit 1990d4b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ports/libwandio/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Source: libwandio
Version: 4.2.1
Homepage: https://github.com/wanduow/wandio
Description: C library for simple and efficient file IO.
27 changes: 27 additions & 0 deletions ports/libwandio/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
vcpkg_fail_port_install(MESSAGE "${PORT} currently only supports Linux and Mac platform" ON_TARGET "Windows")

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO wanduow/wandio
REF 012b646e7ba7ab191a5a2206488adfac493fcdc6
SHA512 e94a82038902c34933c4256f8bd4d7ef3f2cf32fea46f8e31a25df34cc90d3a275ff56d3bc9892aca0c85e6d875e696f96a836cc1444fe165db8364331e6e77d
HEAD_REF master
)

vcpkg_configure_make(
SOURCE_PATH ${SOURCE_PATH}
AUTOCONFIG
)

vcpkg_install_make()

if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
endif()

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)

vcpkg_copy_pdbs()

file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
6 changes: 6 additions & 0 deletions scripts/ci.baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,12 @@ libvpx:arm64-windows=fail
libvpx:arm-uwp=fail
libvpx:x64-linux=fail
libvpx:x64-osx=fail
libwandio:x86-windows=fail
libwandio:x64-windows=fail
libwandio:x64-windows-static=fail
libwandio:x64-uwp=fail
libwandio:arm64-windows=fail
libwandio:arm-uwp=fail
libwebsockets:arm-uwp=fail
libwebsockets:x64-uwp=fail
libxmp-lite:x64-linux=fail
Expand Down

0 comments on commit 1990d4b

Please sign in to comment.