mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 20:23:02 +08:00
[TinyNPY] Add new port (#7393)
* [TinyNPY] new port * expose type and order * fix linux/mac
This commit is contained in:
parent
7352fab1e4
commit
8157d8503c
4
ports/tinynpy/CONTROL
Normal file
4
ports/tinynpy/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: tinynpy
|
||||
Version: 1.0.0-2
|
||||
Build-Depends: zlib
|
||||
Description: tiny C++ loader/exporter of python numpy array NPY/NPZ files
|
30
ports/tinynpy/portfile.cmake
Normal file
30
ports/tinynpy/portfile.cmake
Normal file
@ -0,0 +1,30 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO cdcseacave/TinyNPY
|
||||
REF 721a498ebff5ba537a136c9df330158f5c85c00c
|
||||
SHA512 c22382306ed7c33b147a93093cfb1217504e6dee8172b1684c0519e3b95bb3ac7ed48de7c6b6759db5187ce85301880702e28e08f149f369dbc630e5b646a06a
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC_LIBS)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DBUILD_STATIC_LIBS=${BUILD_STATIC_LIBS}
|
||||
-DBUILD_DEMO=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/TinyNPY")
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/tinynpy RENAME copyright)
|
Loading…
Reference in New Issue
Block a user