[vcpkg baseline][rbdl-orb/rbdl/ptex] file conflicts, skip rbdl-orb in CI testing (#19453)

* [vcpkg baseline][rbdl-orb/rbdl] file conflicts, skip rbdl-orb in Ci testing

* [ptex] Add DISABLE_PARALLEL_CONFIGURE

* Update the baseline version

* Add missing quotes

* Update the baseline version
This commit is contained in:
Phoebe 2021-08-10 00:07:37 +08:00 committed by GitHub
parent 7893cbb48a
commit e1e7daf3ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 92 additions and 51 deletions

View File

@ -1,7 +0,0 @@
Source: ptex
Version: 2.3.2
Port-Version: 2
Homepage: https://github.com/wdas/ptex
Description: Per-Face Texture Mapping for Production Rendering.
Build-Depends: zlib
Supports: !uwp

View File

@ -21,29 +21,29 @@ else()
set(BUILD_STATIC_LIB ON)
endif()
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
OPTIONS
-DPTEX_VER=v${PTEX_VER}
-DPTEX_BUILD_SHARED_LIBS=${BUILD_SHARED_LIB}
-DPTEX_BUILD_STATIC_LIBS=${BUILD_STATIC_LIB}
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/Ptex)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/Ptex)
vcpkg_copy_pdbs()
foreach(HEADER PtexHalf.h Ptexture.h)
file(READ ${CURRENT_PACKAGES_DIR}/include/${HEADER} PTEX_HEADER)
file(READ "${CURRENT_PACKAGES_DIR}/include/${HEADER}" PTEX_HEADER)
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
string(REPLACE "ifndef PTEX_STATIC" "if 1" PTEX_HEADER "${PTEX_HEADER}")
else()
string(REPLACE "ifndef PTEX_STATIC" "if 0" PTEX_HEADER "${PTEX_HEADER}")
endif()
file(WRITE ${CURRENT_PACKAGES_DIR}/include/${HEADER} "${PTEX_HEADER}")
file(WRITE "${CURRENT_PACKAGES_DIR}/include/${HEADER}" "${PTEX_HEADER}")
endforeach()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
# Handle copyright
file(INSTALL ${SOURCE_PATH}/src/doc/License.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${SOURCE_PATH}/src/doc/License.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

19
ports/ptex/vcpkg.json Normal file
View File

@ -0,0 +1,19 @@
{
"name": "ptex",
"version": "2.3.2",
"port-version": 3,
"description": "Per-Face Texture Mapping for Production Rendering.",
"homepage": "https://github.com/wdas/ptex",
"supports": "!uwp",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
},
"zlib"
]
}

View File

@ -1,3 +1,7 @@
if (EXISTS "${CURRENT_INSTALLED_DIR}/share/rbdl/copyright")
message(FATAL_ERROR "${PORT} conflict with rbdl, please remove rbdl before install ${PORT}.")
endif()
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" RBDL_STATIC)
vcpkg_from_github(
@ -20,7 +24,7 @@ if(NOT EXISTS "${SOURCE_PATH}/addons/urdfreader/thirdparty/urdfparser/CMakeLists
endif()
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DRBDL_BUILD_STATIC=${RBDL_STATIC}
-DRBDL_BUILD_ADDON_LUAMODEL=ON
@ -31,10 +35,8 @@ vcpkg_cmake_configure(
vcpkg_cmake_install()
# # Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
# # Remove duplicated include directory
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_copy_pdbs()
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,6 +1,7 @@
{
"name": "rbdl-orb",
"version": "3.0.0",
"port-version": 1,
"description": "Rigid Body Dynamics Library - ORB",
"homepage": "https://github.com/orb-hd/rbdl-orb",
"dependencies": [
@ -10,10 +11,6 @@
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -1,6 +0,0 @@
Source: rbdl
Version: 2.6.0
Port-Version: 0
Homepage: https://github.com/rbdl/rbdl
Description: Rigid Body Dynamics Library
Build-Depends: eigen3

View File

@ -1,9 +1,9 @@
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
set(RBDL_STATIC ON)
else()
set(RBDL_STATIC OFF)
if (EXISTS "${CURRENT_INSTALLED_DIR}/share/rbdl-orb/copyright")
message(FATAL_ERROR "${PORT} conflict with rbdl-orb, please remove rbdl-orb before install ${PORT}.")
endif()
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" RBDL_STATIC)
vcpkg_from_github(ARCHIVE
OUT_SOURCE_PATH SOURCE_PATH
REPO rbdl/rbdl
@ -14,19 +14,16 @@ vcpkg_from_github(ARCHIVE
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA # Disable this option if project cannot be built with Ninja
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DRBDL_BUILD_STATIC=${RBDL_STATIC}
)
vcpkg_install_cmake()
vcpkg_cmake_install()
# # Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
# # Remove duplicated include directory
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_copy_pdbs()
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

14
ports/rbdl/vcpkg.json Normal file
View File

@ -0,0 +1,14 @@
{
"name": "rbdl",
"version": "2.6.0",
"port-version": 1,
"description": "Rigid Body Dynamics Library",
"homepage": "https://github.com/rbdl/rbdl",
"dependencies": [
"eigen3",
{
"name": "vcpkg-cmake",
"host": true
}
]
}

View File

@ -1325,6 +1325,16 @@ rapidstring:x86-windows=fail
raylib:arm64-windows=fail
raylib:arm-uwp=fail
raylib:x64-uwp=fail
# file conflicts with rbdl
rbdl-orb:x86-windows=skip
rbdl-orb:x64-windows=skip
rbdl-orb:x64-windows-static=skip
rbdl-orb:x64-windows-static-md=skip
rbdl-orb:x64-uwp=skip
rbdl-orb:arm-uwp=skip
rbdl-orb:arm64-windows=skip
rbdl-orb:x64-linux=skip
rbdl-orb:x64-osx=skip
readline:arm-uwp=fail
readline:x64-uwp=fail
readline-win32:arm-uwp=fail

View File

@ -5102,7 +5102,7 @@
},
"ptex": {
"baseline": "2.3.2",
"port-version": 2
"port-version": 3
},
"pthread": {
"baseline": "3.0.0",
@ -5530,11 +5530,11 @@
},
"rbdl": {
"baseline": "2.6.0",
"port-version": 0
"port-version": 1
},
"rbdl-orb": {
"baseline": "3.0.0",
"port-version": 0
"port-version": 1
},
"re2": {
"baseline": "2020-10-01",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c524a2ab1940315d3481e9fbf745425caf5b7c15",
"version": "2.3.2",
"port-version": 3
},
{
"git-tree": "e4ee03f1ba1d9c807b8baee1bd3b1089e71476ca",
"version-string": "2.3.2",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "5850c6901f4123803184bfe9b6e587af9350331a",
"version": "3.0.0",
"port-version": 1
},
{
"git-tree": "d475aade9be86281a6db741ee68e30a23d0f16d3",
"version": "3.0.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "44606d1a4e33112ca45274e823041ad877e62623",
"version": "2.6.0",
"port-version": 1
},
{
"git-tree": "c2823f8341acd1e564485661989fb3780a6b4a2a",
"version-string": "2.6.0",