Added a script to build Qt windows fceux.
This commit is contained in:
parent
70919c9458
commit
13f0f5d5e4
|
@ -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 ..
|
|
@ -18,10 +18,10 @@ if(WIN32)
|
||||||
add_definitions( -DMSVC -D_CRT_SECURE_NO_WARNINGS )
|
add_definitions( -DMSVC -D_CRT_SECURE_NO_WARNINGS )
|
||||||
add_definitions( -D__SDL__ -D__QT_DRIVER__ -DQT_DEPRECATED_WARNINGS )
|
add_definitions( -D__SDL__ -D__QT_DRIVER__ -DQT_DEPRECATED_WARNINGS )
|
||||||
add_definitions( -DFCEUDEF_DEBUGGER )
|
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 )
|
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/drivers/win/zlib )
|
||||||
set( OPENGL_LDFLAGS OpenGL::GL )
|
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 )
|
set( SYS_LIBS wsock32 ws2_32 )
|
||||||
else(WIN32)
|
else(WIN32)
|
||||||
# Non Windows System
|
# Non Windows System
|
||||||
|
|
Loading…
Reference in New Issue