Add Windows toolchain

This commit is contained in:
MrLetsplay 2023-09-15 21:50:12 +02:00
parent 4c1de8a405
commit f6bddc111b
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg
3 changed files with 22 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
build/ build/
build.win/
.vscode/ .vscode/
.cache/ .cache/

@ -1 +1 @@
Subproject commit da91e92124dec9a11b69bf3e63c4fa5b7d4781df Subproject commit 2ff8debe8c607c90a9fa7df29577a24967b00cf9

View File

@ -0,0 +1,20 @@
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++)
set(CMAKE_C_FLAGS -w)
set(CMAKE_CXX_FLAGS -w)
set(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32)
set(CMAKE_PREFIX_PATH /usr/x86_64-w64-mingw32)
set(ENV{PKG_CONFIG_PATH} "${CMAKE_PREFIX_PATH}/sys-root/mingw/lib/pkgconfig/")
link_directories(dependencies/kekengine/windows/lib/)
include_directories(dependencies/kekengine/windows/include/)
link_directories(dependencies/kekengine/dependencies/openvr/bin/win64)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM BOTH)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)