mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-15 00:48:01 +08:00
[basisu] Fix x64-linux-dynamic build, switch to vcpkg_cmake_configure (#25662)
Co-authored-by: Osyotr <8740768+Osyotr@users.noreply.github.com>
This commit is contained in:
parent
e3316f695b
commit
60e22b44bf
@ -7,34 +7,19 @@ vcpkg_from_github(
|
||||
PATCHES fix-addostream.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DBUILD_TESTS=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
#vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/basisu)
|
||||
if (WIN32)
|
||||
set(TOOL_NAME basisu_tool.exe)
|
||||
else()
|
||||
set(TOOL_NAME basisu_tool)
|
||||
endif()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
file(COPY ${CURRENT_PACKAGES_DIR}/bin/${TOOL_NAME} DESTINATION ${CURRENT_PACKAGES_DIR}/tools/basisu)
|
||||
|
||||
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/basisu)
|
||||
|
||||
# Remove unnecessary files
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/bin/${TOOL_NAME})
|
||||
file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/${TOOL_NAME})
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
endif()
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_copy_tools(TOOL_NAMES "basisu_tool" AUTO_CLEAN)
|
||||
|
||||
# Remove unnecessary files
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
@ -1,10 +1,15 @@
|
||||
{
|
||||
"name": "basisu",
|
||||
"version-string": "1.11",
|
||||
"port-version": 5,
|
||||
"version": "1.11",
|
||||
"port-version": 6,
|
||||
"description": "Basis Universal is a supercompressed GPU texture and video compression format that outputs a highly compressed intermediate file format (.basis) that can be quickly transcoded to a wide variety of GPU texture compression formats.",
|
||||
"homepage": "https://github.com/BinomialLLC/basis_universal",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": [
|
||||
"lodepng"
|
||||
"lodepng",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "8552deb382fab18170488ffdf05fdd50dd3e2d99",
|
||||
"version": "1.11",
|
||||
"port-version": 6
|
||||
},
|
||||
{
|
||||
"git-tree": "70d762c5a7350879f47429ea6275ba34f1c0f449",
|
||||
"version-string": "1.11",
|
||||
|
@ -402,7 +402,7 @@
|
||||
},
|
||||
"basisu": {
|
||||
"baseline": "1.11",
|
||||
"port-version": 5
|
||||
"port-version": 6
|
||||
},
|
||||
"bcg729": {
|
||||
"baseline": "1.1.1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user