mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 20:46:49 +08:00
[forge] improve port (#28972)
This commit is contained in:
parent
c60b65d099
commit
0390768d54
@ -1,6 +1,3 @@
|
||||
if(NOT VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
||||
message(FATAL_ERROR "This port currently only supports x64 architecture")
|
||||
endif()
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
@ -10,28 +7,28 @@ vcpkg_from_github(
|
||||
HEAD_REF master
|
||||
PATCHES cmake_config.patch
|
||||
)
|
||||
file(REMOVE ${SOURCE_PATH}/CMakeModules/FindOpenGL.cmake)
|
||||
file(REMOVE "${SOURCE_PATH}/CMakeModules/FindOpenGL.cmake")
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DFG_BUILD_DOCS=OFF
|
||||
-DFG_BUILD_EXAMPLES=OFF
|
||||
-DFG_INSTALL_BIN_DIR=bin
|
||||
-DFG_INSTALL_CMAKE_DIR=share/Forge
|
||||
-DFG_INSTALL_CMAKE_DIR=share/forge
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH share/Forge TARGET_PATH share/Forge)
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup()
|
||||
|
||||
file(GLOB DLLS ${CURRENT_PACKAGES_DIR}/bin/* ${CURRENT_PACKAGES_DIR}/debug/bin/*)
|
||||
list(FILTER DLLS EXCLUDE REGEX "forge\\.dll\$")
|
||||
file(REMOVE_RECURSE
|
||||
${CURRENT_PACKAGES_DIR}/debug/include
|
||||
${CURRENT_PACKAGES_DIR}/debug/share
|
||||
${CURRENT_PACKAGES_DIR}/debug/examples
|
||||
${CURRENT_PACKAGES_DIR}/examples
|
||||
${CURRENT_PACKAGES_DIR}/debug/forge/examples
|
||||
${CURRENT_PACKAGES_DIR}/forge/examples
|
||||
${DLLS}
|
||||
)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/.github/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
file(INSTALL "${SOURCE_PATH}/.github/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
@ -1,9 +1,11 @@
|
||||
{
|
||||
"name": "forge",
|
||||
"version-semver": "1.0.8",
|
||||
"port-version": 1,
|
||||
"description": "An OpenGL interop library that can be used with ArrayFire or any other application using CUDA or OpenCL compute backend.",
|
||||
"homepage": "https://github.com/arrayfire/forge",
|
||||
"supports": "x64",
|
||||
"license": "BSD-3-Clause",
|
||||
"supports": "!(windows & (arm | uwp))",
|
||||
"dependencies": [
|
||||
"boost-functional",
|
||||
{
|
||||
@ -14,6 +16,14 @@
|
||||
"freetype",
|
||||
"glad",
|
||||
"glfw3",
|
||||
"glm"
|
||||
"glm",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -2454,7 +2454,7 @@
|
||||
},
|
||||
"forge": {
|
||||
"baseline": "1.0.8",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"foxi": {
|
||||
"baseline": "2021-12-01",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "780a8dc57ae2360af3705b400bc96b03914ef45a",
|
||||
"version-semver": "1.0.8",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "d67247c4d974ea6d75d0918865db0c7842a5ec66",
|
||||
"version-semver": "1.0.8",
|
||||
|
Loading…
Reference in New Issue
Block a user