Skip to content
Snippets Groups Projects
Commit 5b13d41b authored by Benedict Gaster's avatar Benedict Gaster
Browse files

updated readme and test windows/runtime

parent 88be6269
No related branches found
No related tags found
No related merge requests found
......@@ -16,14 +16,28 @@ build/shapes
build/splat
```
```
clang++ -std=c++17 -L./osx/lib/ -lSDL2 -lSDL2_ttf -lSDL2_image -lfreetype -lpng -lwebp -ltiff -ljpeg -lbz2 -lz -I./osx/include/ -I./osx/include/SDL2/ -I./include ./SDL_FontCache.o src/context.cpp src/app.cpp examples/splat.cpp -framework OpenGL
```
We need to build font cache
```
clang -c -I./osx/include/ -I./osx/include/SDL2/ -I./include src/SDL_FontCache.c
```
# Windows
```
cl /EHsc /Iwindows/include /Iinclude /Iwindows/include/SDL2 /c .\src\app.cpp .\src\context.cpp .\examples\shapes.cpp .\src\SDL_FontCache.c
```
```
link /SUBSYSTEM:CONSOLE /LIBPATH:windows\lib\x64 shapes.obj .\context.obj .\app.obj .\SDL_FontCache.obj SDL2.lib SDL2main.lib /NODEFAULTLIB:libcmtd.lib opengl32.lib shell32.lib SDL2_ttf.lib SDL2_image.lib freetype.lib
```
You can input the Visual Studio command line in Powershell with the command:
```
Import-BatchEnvironment 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat'
```
\ No newline at end of file
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment