X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=raylib%2Fexternal%2Fglfw%2FCMake%2FGenerateMappings.cmake;fp=raylib%2Fexternal%2Fglfw%2FCMake%2FGenerateMappings.cmake;h=0000000000000000000000000000000000000000;hb=b35d6ddfe9f220ab4f6e36fee1371a99a4a71ab5;hp=7a88e3d4457c21ae16a60ee6c9ab19307d7b212a;hpb=47ad4679e4625ff34239ee796b78b89b8455bb71;p=pistorm diff --git a/raylib/external/glfw/CMake/GenerateMappings.cmake b/raylib/external/glfw/CMake/GenerateMappings.cmake deleted file mode 100644 index 7a88e3d..0000000 --- a/raylib/external/glfw/CMake/GenerateMappings.cmake +++ /dev/null @@ -1,33 +0,0 @@ -# Usage: -# cmake -P GenerateMappings.cmake - -set(source_url "https://raw.githubusercontent.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt") -set(source_path "${CMAKE_CURRENT_BINARY_DIR}/gamecontrollerdb.txt") -set(template_path "${CMAKE_ARGV3}") -set(target_path "${CMAKE_ARGV4}") - -if (NOT EXISTS "${template_path}") - message(FATAL_ERROR "Failed to find template file ${template_path}") -endif() - -file(DOWNLOAD "${source_url}" "${source_path}" - STATUS download_status - TLS_VERIFY on) - -list(GET download_status 0 status_code) -list(GET download_status 1 status_message) - -if (status_code) - message(FATAL_ERROR "Failed to download ${source_url}: ${status_message}") -endif() - -file(STRINGS "${source_path}" lines) -foreach(line ${lines}) - if ("${line}" MATCHES "^[0-9a-fA-F].*$") - set(GLFW_GAMEPAD_MAPPINGS "${GLFW_GAMEPAD_MAPPINGS}\"${line}\",\n") - endif() -endforeach() - -configure_file("${template_path}" "${target_path}" @ONLY NEWLINE_STYLE UNIX) -file(REMOVE "${source_path}") -