Added a script to build Qt windows fceux.

This commit is contained in:
mjbudd77 2021-02-08 21:37:50 -05:00
parent 70919c9458
commit 13f0f5d5e4
2 changed files with 27 additions and 2 deletions

View File

@ -0,0 +1,25 @@
rmdir /q /s build
mkdir build
cd build
curl -LO http://www.libsdl.org/release/SDL2-devel-2.0.14-VC.zip
rmdir /q /s SDL2
powershell -command "Expand-Archive" SDL2-devel-2.0.14-VC.zip .
rename SDL2-2.0.14 SDL2
set SDL_INSTALL_PREFIX=%CD%
cmake -G "NMake Makefiles" -DSDL_INSTALL_PREFIX=%SDL_INSTALL_PREFIX% ..
nmake
copy %SDL_INSTALL_PREFIX%\SDL2\lib\x64\SDL2.dll src\.
windeployqt src/fceux.exe
cd ..

View File

@ -18,10 +18,10 @@ if(WIN32)
add_definitions( -DMSVC -D_CRT_SECURE_NO_WARNINGS )
add_definitions( -D__SDL__ -D__QT_DRIVER__ -DQT_DEPRECATED_WARNINGS )
add_definitions( -DFCEUDEF_DEBUGGER )
include_directories( C:/SDL2/include )
include_directories( ${SDL_INSTALL_PREFIX}/SDL2/include )
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/drivers/win/zlib )
set( OPENGL_LDFLAGS OpenGL::GL )
set( SDL2_LDFLAGS C:/SDL2/lib/x64/SDL2.lib )
set( SDL2_LDFLAGS ${SDL_INSTALL_PREFIX}/SDL2/lib/x64/SDL2.lib )
set( SYS_LIBS wsock32 ws2_32 )
else(WIN32)
# Non Windows System