Skip to content

Commit

Permalink
[raylib] Fix usage (#15935)
Browse files Browse the repository at this point in the history
* [raylib] Fix usage

* Update ports/raylib/CONTROL

* Update versions

* Update versions/r-/raylib.json
  • Loading branch information
NancyLi1013 committed Feb 2, 2021
1 parent 8ad8ba7 commit d4ba955
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions ports/raylib/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Source: raylib
Version: 3.5.0
Port-Version: 1
Description: A simple and easy-to-use library to enjoy videogames programming
Homepage: https://github.com/raysan5/raylib
Supports: !(arm|uwp)
Expand Down
6 changes: 6 additions & 0 deletions ports/raylib/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ vcpkg_copy_pdbs()

vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})

configure_file(
${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake
${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake
@ONLY
)

file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/debug/include
${CURRENT_PACKAGES_DIR}/debug/share
Expand Down
4 changes: 2 additions & 2 deletions ports/raylib/vcpkg-cmake-wrapper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ include(SelectLibraryConfigurations)

find_path(RAYLIB_INCLUDE_DIR raylib.h)

find_library(RAYLIB_LIBRARY_DEBUG NAMES raylib libraylib NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug" NO_DEFAULT_PATH REQUIRED)
find_library(RAYLIB_LIBRARY_RELEASE NAMES raylib libraylib NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" NO_DEFAULT_PATH REQUIRED)
find_library(RAYLIB_LIBRARY_DEBUG NAMES raylib libraylib raylib_static NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug" NO_DEFAULT_PATH REQUIRED)
find_library(RAYLIB_LIBRARY_RELEASE NAMES raylib libraylib raylib_static NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" NO_DEFAULT_PATH REQUIRED)

select_library_configurations(RAYLIB)

Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5006,7 +5006,7 @@
},
"raylib": {
"baseline": "3.5.0",
"port-version": 0
"port-version": 1
},
"rbdl": {
"baseline": "2.6.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/r-/raylib.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "b517bb75982839f879e33ed72c13ba824f7f7547",
"version-string": "3.5.0",
"port-version": 1
},
{
"git-tree": "5f584abef9d068dcada1382034eac435d75fd21d",
"version-string": "3.5.0",
Expand Down

0 comments on commit d4ba955

Please sign in to comment.