mirror of
https://github.com/libretro/citra.git
synced 2024-11-23 08:19:52 +00:00
Fix mingw build
This commit is contained in:
parent
0d7eed8bb9
commit
6cf80643e6
@ -348,7 +348,7 @@ elseif (WIN32)
|
||||
set(PLATFORM_LIBRARIES winmm ws2_32)
|
||||
if (MINGW)
|
||||
# PSAPI is the Process Status API
|
||||
set(PLATFORM_LIBRARIES ${PLATFORM_LIBRARIES} psapi imm32 version)
|
||||
set(PLATFORM_LIBRARIES ${PLATFORM_LIBRARIES} psapi imm32 version crypt32)
|
||||
endif()
|
||||
elseif (CMAKE_SYSTEM_NAME MATCHES "^(Linux|kFreeBSD|GNU|SunOS)$")
|
||||
set(PLATFORM_LIBRARIES rt)
|
||||
|
@ -5,7 +5,7 @@ set -e
|
||||
cd $(dirname $0)
|
||||
mkdir -p build-windows && cd build-windows
|
||||
cmake -DCMAKE_TOOLCHAIN_FILE=../CMakeModules/x86_64-w64-mingw32.cmake \
|
||||
-DCITRA_WARNINGS_AS_ERRORS=OFF -DDISABLE_CLANG_TARGET=ON \
|
||||
-DCITRA_WARNINGS_AS_ERRORS=OFF -DDISABLE_CLANG_TARGET=ON -DENABLE_LTO=OFF \
|
||||
-DENABLE_TESTS=OFF -DENABLE_DEDICATED_ROOM=OFF \
|
||||
-DENABLE_SDL2=OFF -DENABLE_QT=OFF -DENABLE_WEB_SERVICE=OFF -DENABLE_SCRIPTING=OFF \
|
||||
-DENABLE_OPENAL=OFF -DENABLE_LIBUSB=OFF -DCITRA_ENABLE_BUNDLE_TARGET=OFF \
|
||||
@ -13,6 +13,6 @@ cmake -DCMAKE_TOOLCHAIN_FILE=../CMakeModules/x86_64-w64-mingw32.cmake \
|
||||
..
|
||||
make -j$(nproc)
|
||||
|
||||
#SO=citra_libretro.dll
|
||||
#echo "Core file is here => $(readlink -f $SO)"
|
||||
#x86_64-w64-mingw32-strip $SO
|
||||
SO=bin/Release/citra_libretro.dll
|
||||
echo "Core file is here => $(readlink -f $SO)"
|
||||
x86_64-w64-mingw32-strip $SO
|
||||
|
Loading…
Reference in New Issue
Block a user