|
@@ -5,6 +5,15 @@ set(common_HEADERS internal.h mappings.h
|
|
|
"${GLFW_SOURCE_DIR}/include/GLFW/glfw3native.h")
|
|
|
set(common_SOURCES context.c init.c input.c monitor.c vulkan.c window.c)
|
|
|
|
|
|
+add_custom_target(update_mappings
|
|
|
+ COMMAND "${CMAKE_COMMAND}" -P "${GLFW_SOURCE_DIR}/CMake/GenerateMappings.cmake" mappings.h.in mappings.h
|
|
|
+ WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
|
|
+ COMMENT "Updating gamepad mappings from upstream repository"
|
|
|
+ SOURCES mappings.h.in "${GLFW_SOURCE_DIR}/CMake/GenerateMappings.cmake"
|
|
|
+ VERBATIM)
|
|
|
+
|
|
|
+set_target_properties(update_mappings PROPERTIES FOLDER "GLFW3")
|
|
|
+
|
|
|
if (_GLFW_COCOA)
|
|
|
set(glfw_HEADERS ${common_HEADERS} cocoa_platform.h cocoa_joystick.h
|
|
|
posix_thread.h nsgl_context.h egl_context.h osmesa_context.h)
|