summaryrefslogtreecommitdiffhomepage
path: root/proto-wine
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-02-26 17:55:16 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-02-26 17:55:16 +0100
commitda34d6ba965f7db40c1f3ee8aa2231cede573f6c (patch)
treee16dc0a07a0bf9847c0907a1c907e970eb06a354 /proto-wine
parent03f593ff835ab66dc4cbbb71db387e52fa17cc3a (diff)
proto/wine: try to detect CI wineg++
Diffstat (limited to 'proto-wine')
-rw-r--r--proto-wine/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/proto-wine/CMakeLists.txt b/proto-wine/CMakeLists.txt
index 0beb50e1..e81b341c 100644
--- a/proto-wine/CMakeLists.txt
+++ b/proto-wine/CMakeLists.txt
@@ -17,10 +17,14 @@ if(NOT WIN32)
endif()
file(GLOB wine-deps "${CMAKE_CURRENT_SOURCE_DIR}/*.cxx")
#install(FILES ${wine-deps} DESTINATION "${opentrack-src}/proto-wine")
+ set(winegxx "${SDK_WINE}/bin/wine")
+ if(EXISTS "${SDK_WINE}/lib/wine/wineg++")
+ set(winegxx "${SDK_WINE}/lib/wine/wineg++")
+ endif()
add_custom_command(
OUTPUT opentrack-wrapper-wine.exe.so
DEPENDS ${wine-deps}
- COMMAND wineg++ -mconsole -g -DNOMINMAX -O2 -m32 -std=c++17 -fPIC -o
+ COMMAND "${winegxx}" -mconsole -g -DNOMINMAX -O2 -m32 -std=c++17 -fPIC -o
opentrack-wrapper-wine.exe -I "${CMAKE_SOURCE_DIR}" -I "${CMAKE_BINARY_DIR}"
${wine-deps} -Wall -Wextra -Wpedantic
${my-rt})