Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 18 additions & 8 deletions ports/recast/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
cmake_minimum_required(VERSION 3.8)
project(recast)

include_directories(
DebugUtils/Include
Detour/Include
DetourCrowd/Include
DetourTileCache/Include
Recast/Include
)

set(SRC
DebugUtils/Source/DebugDraw.cpp
DebugUtils/Source/DetourDebugDraw.cpp
Expand Down Expand Up @@ -42,12 +34,30 @@ set(SRC

add_library(recast ${SRC})

target_include_directories(
recast PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/DebugUtils/Include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/Detour/Include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/DetourCrowd/Include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/DetourTileCache/Include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/Recast/Include>
$<INSTALL_INTERFACE:include>
$<INSTALL_INTERFACE:include/Detour/Include>
$<INSTALL_INTERFACE:include/DetourCrowd/Include>
$<INSTALL_INTERFACE:include/DetourTileCache/Include>
$<INSTALL_INTERFACE:include/Recast/Include>
$<INSTALL_INTERFACE:include/DebugUtils/Include>
)

install(
TARGETS recast
EXPORT unofficial-recast-config
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)

install(EXPORT unofficial-recast-config DESTINATION share/unofficial-recast)

if(NOT DISABLE_INSTALL_HEADERS)
install(DIRECTORY DebugUtils/Include/ DESTINATION include/recast/DebugUtils)
install(DIRECTORY Detour/Include/ DESTINATION include/recast/Detour)
Expand Down
4 changes: 0 additions & 4 deletions ports/recast/CONTROL

This file was deleted.

12 changes: 7 additions & 5 deletions ports/recast/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@ vcpkg_from_github(
HEAD_REF master
)

file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")

vcpkg_configure_cmake(
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
)

vcpkg_install_cmake()
vcpkg_cmake_install()

file(INSTALL ${SOURCE_PATH}/License.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/recast RENAME copyright)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-recast CONFIG_PATH share/unofficial-recast)

vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)

file(INSTALL "${SOURCE_PATH}/License.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
17 changes: 17 additions & 0 deletions ports/recast/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "recast",
"version": "1.5.1",
"port-version": 4,
"description": "Navigation-mesh Toolset for Games",
"homepage": "https://github.com/recastnavigation/recastnavigation",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
8 changes: 4 additions & 4 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3539,8 +3539,8 @@
"libsigcpp-3": {
"baseline": "3.0.3",
"port-version": 1
},
"libsmb2": {
},
"libsmb2": {
"baseline": "2021-04-29",
"port-version": 0
},
Expand Down Expand Up @@ -5469,8 +5469,8 @@
"port-version": 1
},
"recast": {
"baseline": "1.5.1-3",
"port-version": 0
"baseline": "1.5.1",
"port-version": 4
},
"redis-plus-plus": {
"baseline": "1.2.3",
Expand Down
5 changes: 5 additions & 0 deletions versions/r-/recast.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "2f34af0b398b4c37f0cdf3fcd8dc9db965e4dd5e",
"version": "1.5.1",
"port-version": 4
},
{
"git-tree": "41f8cc06fc981d330671b88e08d02de55934155c",
"version-string": "1.5.1-3",
Expand Down