Build on new PC, fix wheel not scrolling
This commit is contained in:
25
build.bat
25
build.bat
@@ -1,14 +1,29 @@
|
||||
@echo off
|
||||
|
||||
if not exist "src\external\SDL" (
|
||||
pushd src\external
|
||||
git clone https://github.com/libsdl-org/SDL.git
|
||||
pushd SDL
|
||||
cmake -S . -B build_win32_static -DCMAKE_BUILD_TYPE=Release -DSDL_STATIC=ON
|
||||
pushd build_win32_static
|
||||
msbuild SDL3.sln
|
||||
popd
|
||||
popd
|
||||
popd
|
||||
)
|
||||
set sdl=..\src\external\SDL
|
||||
set sdllib=%sdl%\build_win32_static\Debug
|
||||
|
||||
mkdir build
|
||||
cd build
|
||||
pushd build
|
||||
|
||||
set flags=/EHsc- /MD /Zi /FC /nologo /WX /W3 /wd4200 /wd4334 /diagnostics:column -DDEBUG_BUILD=1
|
||||
set libs=../src/external/SDL/win32-static/SDL3-static.lib ../src/external/SDL/win32-static/SDL_uclibc.lib kernel32.lib gdi32.lib user32.lib Imm32.lib ole32.lib Shell32.lib OleAut32.lib Cfgmgr32.lib Setupapi.lib Advapi32.lib version.lib winmm.lib
|
||||
cl %flags% ../src/text_editor/text_editor.cpp -Fe:te.exe -I../src/external/SDL/include -I../src/external/lua/src -I../src/external/glad -I../src/ %libs% -link /SUBSYSTEM:WINDOWS /NODEFAULTLIB:LIBCMT /NODEFAULTLIB:MSVCRTD
|
||||
set libs=%sdllib%/SDL3-static.lib %sdllib%/SDL_uclibc.lib kernel32.lib gdi32.lib user32.lib Imm32.lib ole32.lib Shell32.lib OleAut32.lib Cfgmgr32.lib Setupapi.lib Advapi32.lib version.lib winmm.lib
|
||||
cl %flags% ../src/text_editor/text_editor.cpp -Fe:te.exe -I%sdl%/include -I../src/external/glad -I../src/ %libs% -link /SUBSYSTEM:WINDOWS /NODEFAULTLIB:LIBCMT /NODEFAULTLIB:MSVCRTD
|
||||
|
||||
copy te.exe ..\data\te.exe
|
||||
copy te.pdb ..\data\te.pdb
|
||||
echo written ..\data\te.exe
|
||||
cd ..
|
||||
rem /fsanitize=address
|
||||
|
||||
popd
|
||||
rem /fsanitize=address
|
||||
|
||||
Reference in New Issue
Block a user