mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 08:23:07 +08:00
[blitz] no absolute paths (#21708)
This commit is contained in:
parent
e54a86b184
commit
84216277df
@ -10,27 +10,32 @@ vcpkg_from_github(
|
|||||||
|
|
||||||
vcpkg_find_acquire_program(PYTHON2)
|
vcpkg_find_acquire_program(PYTHON2)
|
||||||
get_filename_component(PYTHON2_DIR "${PYTHON2}" DIRECTORY)
|
get_filename_component(PYTHON2_DIR "${PYTHON2}" DIRECTORY)
|
||||||
vcpkg_add_to_path(${PYTHON2_DIR})
|
vcpkg_add_to_path("${PYTHON2_DIR}")
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_cmake_configure(
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
SOURCE_PATH "${SOURCE_PATH}"
|
||||||
PREFER_NINJA
|
OPTIONS
|
||||||
-DBUILD_DOC=OFF
|
-DBUILD_DOC=OFF
|
||||||
-DBUILD_TESTING=OFF
|
-DBUILD_TESTING=OFF
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_install_cmake()
|
vcpkg_cmake_install()
|
||||||
|
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||||
|
|
||||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
||||||
|
|
||||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake)
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake)
|
||||||
|
vcpkg_fixup_pkgconfig()
|
||||||
|
|
||||||
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/blitz/matbops.h" "${SOURCE_PATH}" "")
|
||||||
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/blitz/matuops.h" "${SOURCE_PATH}" "")
|
||||||
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/blitz/mathfunc.h" "${SOURCE_PATH}" "")
|
||||||
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/blitz/promote-old.h" "${SOURCE_PATH}" "")
|
||||||
|
|
||||||
# Handle copyright
|
# Handle copyright
|
||||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||||
vcpkg_fixup_pkgconfig()
|
|
||||||
|
@ -1,8 +1,18 @@
|
|||||||
{
|
{
|
||||||
"name": "blitz",
|
"name": "blitz",
|
||||||
"version-string": "2020-03-25",
|
"version-string": "2020-03-25",
|
||||||
"port-version": 2,
|
"port-version": 3,
|
||||||
"description": "Blitz++ is a C++ template class library that provides high-performance multidimensional array containers for scientific computing.",
|
"description": "Blitz++ is a C++ template class library that provides high-performance multidimensional array containers for scientific computing.",
|
||||||
"homepage": "https://github.com/blitzpp/blitz",
|
"homepage": "https://github.com/blitzpp/blitz",
|
||||||
"supports": "!(arm | arm64 | uwp)"
|
"supports": "!(arm | arm64 | uwp)",
|
||||||
|
"dependencies": [
|
||||||
|
{
|
||||||
|
"name": "vcpkg-cmake",
|
||||||
|
"host": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "vcpkg-cmake-config",
|
||||||
|
"host": true
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "ddf54a36a0fa345a482b66d648778c13f0008eeb",
|
||||||
|
"version-string": "2020-03-25",
|
||||||
|
"port-version": 3
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "6f6a860240cf01fea1a9f90f6970dec75980a1d1",
|
"git-tree": "6f6a860240cf01fea1a9f90f6970dec75980a1d1",
|
||||||
"version-string": "2020-03-25",
|
"version-string": "2020-03-25",
|
||||||
|
@ -502,7 +502,7 @@
|
|||||||
},
|
},
|
||||||
"blitz": {
|
"blitz": {
|
||||||
"baseline": "2020-03-25",
|
"baseline": "2020-03-25",
|
||||||
"port-version": 2
|
"port-version": 3
|
||||||
},
|
},
|
||||||
"blosc": {
|
"blosc": {
|
||||||
"baseline": "1.18.1",
|
"baseline": "1.18.1",
|
||||||
|
Loading…
Reference in New Issue
Block a user