|
|
@ -26,19 +26,19 @@ foreach(line ${lines}) |
|
|
|
if (line MATCHES "^[0-9a-fA-F]") |
|
|
|
if (line MATCHES "^[0-9a-fA-F]") |
|
|
|
if (line MATCHES "platform:Windows") |
|
|
|
if (line MATCHES "platform:Windows") |
|
|
|
if (GLFW_WIN32_MAPPINGS) |
|
|
|
if (GLFW_WIN32_MAPPINGS) |
|
|
|
set(GLFW_WIN32_MAPPINGS "${GLFW_WIN32_MAPPINGS}\n") |
|
|
|
string(APPEND GLFW_WIN32_MAPPINGS "\n") |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
set(GLFW_WIN32_MAPPINGS "${GLFW_WIN32_MAPPINGS}\"${line}\",") |
|
|
|
string(APPEND GLFW_WIN32_MAPPINGS "\"${line}\",") |
|
|
|
elseif (line MATCHES "platform:Mac OS X") |
|
|
|
elseif (line MATCHES "platform:Mac OS X") |
|
|
|
if (GLFW_COCOA_MAPPINGS) |
|
|
|
if (GLFW_COCOA_MAPPINGS) |
|
|
|
set(GLFW_COCOA_MAPPINGS "${GLFW_COCOA_MAPPINGS}\n") |
|
|
|
string(APPEND GLFW_COCOA_MAPPINGS "\n") |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
set(GLFW_COCOA_MAPPINGS "${GLFW_COCOA_MAPPINGS}\"${line}\",") |
|
|
|
string(APPEND GLFW_COCOA_MAPPINGS "\"${line}\",") |
|
|
|
elseif (line MATCHES "platform:Linux") |
|
|
|
elseif (line MATCHES "platform:Linux") |
|
|
|
if (GLFW_LINUX_MAPPINGS) |
|
|
|
if (GLFW_LINUX_MAPPINGS) |
|
|
|
set(GLFW_LINUX_MAPPINGS "${GLFW_LINUX_MAPPINGS}\n") |
|
|
|
string(APPEND GLFW_LINUX_MAPPINGS "\n") |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
set(GLFW_LINUX_MAPPINGS "${GLFW_LINUX_MAPPINGS}\"${line}\",") |
|
|
|
string(APPEND GLFW_LINUX_MAPPINGS "\"${line}\",") |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
endforeach() |
|
|
|
endforeach() |
|
|
|