mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 17:41:09 +08:00
[sdl2-gfx] Fix build error on non windows (#10575)
* [sdl2-gfx] Fix build error on non windows * Update as review suggestions * Updated to support osx
This commit is contained in:
parent
27cb5f14c1
commit
56738de192
@ -24,7 +24,9 @@ target_include_directories(${PROJECT_NAME} PUBLIC
|
||||
$<INSTALL_INTERFACE:include/SDL2>
|
||||
)
|
||||
|
||||
target_compile_definitions(${PROJECT_NAME} PRIVATE ${SDL_GFX_DEFINES})
|
||||
if(WIN32)
|
||||
add_compile_definitions(${SDL_GFX_DEFINES})
|
||||
endif()
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE ${SDL_INCLUDE_DIR}/SDL2)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE SDL2::SDL2)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: sdl2-gfx
|
||||
Version: 1.0.4-5
|
||||
Version: 1.0.4-6
|
||||
Build-Depends: sdl2
|
||||
Description: Graphics primitives (line, circle, rectangle etc.) with AA support, rotozoomer and other drawing related support functions wrapped up in a C based add-on library for the Simple Direct Media (SDL) cross-platform API layer.
|
||||
Description: Graphics primitives (line, circle, rectangle etc.) with AA support, rotozoomer and other drawing related support functions wrapped up in a C based add-on library for the Simple Direct Media (SDL) cross-platform API layer.
|
@ -1,5 +1,3 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
set(VERSION 1.0.4)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
@ -28,7 +26,6 @@ vcpkg_install_cmake()
|
||||
vcpkg_fixup_cmake_targets()
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/sdl2-gfx)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/sdl2-gfx/COPYING ${CURRENT_PACKAGES_DIR}/share/sdl2-gfx/copyright)
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
|
||||
vcpkg_copy_pdbs()
|
@ -1634,8 +1634,6 @@ sdformat6:x64-linux=ignore
|
||||
sdl1:arm-uwp=fail
|
||||
sdl1:x64-uwp=fail
|
||||
sdl1:x64-osx=fail
|
||||
sdl2-gfx:x64-linux=fail
|
||||
sdl2-gfx:x64-osx=fail
|
||||
sdl2-image:arm-uwp=fail
|
||||
sdl2-image:x64-uwp=fail
|
||||
sdl2-mixer:arm-uwp=fail
|
||||
|
Loading…
x
Reference in New Issue
Block a user