mirror of
https://github.com/glfw/glfw.git
synced 2025-04-11 19:32:02 +00:00
Add CMake options for metal support
metal support is fully optional now updated README with changelog
This commit is contained in:
parent
389affc86b
commit
2771b709ea
@ -121,6 +121,8 @@ information on what to include when reporting a bug.
|
|||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
- Added `GLFW_USE_METALKIT` to cmake build options to make metal support optional
|
||||||
|
- [Cocoa] Added `glfwResetCocoaMTKFramesize` function for metal view resizing
|
||||||
- [Cocoa] Added `glfwAddCocoaMTKSubview` function for better metal support
|
- [Cocoa] Added `glfwAddCocoaMTKSubview` function for better metal support
|
||||||
- Added `GLFW_PLATFORM` init hint for runtime platform selection (#1958)
|
- Added `GLFW_PLATFORM` init hint for runtime platform selection (#1958)
|
||||||
- Added `GLFW_ANY_PLATFORM`, `GLFW_PLATFORM_WIN32`, `GLFW_PLATFORM_COCOA`,
|
- Added `GLFW_ANY_PLATFORM`, `GLFW_PLATFORM_WIN32`, `GLFW_PLATFORM_COCOA`,
|
||||||
|
@ -164,6 +164,15 @@ if (GLFW_BUILD_COCOA)
|
|||||||
"-framework IOKit"
|
"-framework IOKit"
|
||||||
"-framework CoreFoundation")
|
"-framework CoreFoundation")
|
||||||
|
|
||||||
|
if(GLFW_USE_METALKIT)
|
||||||
|
|
||||||
|
target_link_libraries(glfw PRIVATE "-framework Metal"
|
||||||
|
"-framework MetalKit")
|
||||||
|
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
set(glfw_PKG_DEPS "")
|
set(glfw_PKG_DEPS "")
|
||||||
set(glfw_PKG_LIBS "-framework Cocoa -framework IOKit -framework CoreFoundation")
|
set(glfw_PKG_LIBS "-framework Cocoa -framework IOKit -framework CoreFoundation")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user