mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
[raylib] remove broken wrapper, port already installs cmake config (#22875)
* [raylib] remove broken wrapper, port already installs cmake config * fix references * add license * fix references
This commit is contained in:
parent
8518284c18
commit
ea22dd11cf
@ -58,12 +58,7 @@ vcpkg_cmake_install()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_cmake_config_fixup(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
|
||||
)
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
${CURRENT_PACKAGES_DIR}/debug/include
|
||||
@ -78,7 +73,4 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
)
|
||||
endif()
|
||||
|
||||
configure_file(${CMAKE_CURRENT_LIST_DIR}/usage ${CURRENT_PACKAGES_DIR}/share/${PORT}/usage @ONLY)
|
||||
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
||||
|
||||
vcpkg_fixup_pkgconfig()
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
@ -1,5 +0,0 @@
|
||||
The package @PORT@:@TARGET_TRIPLET@ provides CMake targets:
|
||||
|
||||
find_package(@PORT@ CONFIG REQUIRED)
|
||||
target_include_directories(main PRIVATE ${RAYLIB_INCLUDE_DIRS})
|
||||
target_link_libraries(main PRIVATE ${RAYLIB_LIBRARIES})
|
@ -1,11 +0,0 @@
|
||||
include(SelectLibraryConfigurations)
|
||||
|
||||
find_path(RAYLIB_INCLUDE_DIR raylib.h)
|
||||
|
||||
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)
|
||||
|
||||
set(RAYLIB_INCLUDE_DIRS ${RAYLIB_INCLUDE_DIR})
|
||||
set(RAYLIB_LIBRARIES ${RAYLIB_LIBRARY})
|
@ -1,9 +1,10 @@
|
||||
{
|
||||
"name": "raylib",
|
||||
"version-semver": "4.0.0",
|
||||
"port-version": 1,
|
||||
"port-version": 2,
|
||||
"description": "A simple and easy-to-use library to enjoy videogames programming",
|
||||
"homepage": "https://github.com/raysan5/raylib",
|
||||
"license": "Zlib",
|
||||
"supports": "!(arm | uwp)",
|
||||
"dependencies": [
|
||||
{
|
||||
|
@ -5990,7 +5990,7 @@
|
||||
},
|
||||
"raylib": {
|
||||
"baseline": "4.0.0",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"rbdl": {
|
||||
"baseline": "2.6.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "94a36f9f2d45dcba0e7ee689b5d58ad11bc4a4b9",
|
||||
"version-semver": "4.0.0",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "4ab1c8406a740fce2da5e0844b10aea89850d044",
|
||||
"version-semver": "4.0.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user