small fix

This commit is contained in:
Timerix 2024-07-23 02:51:43 +05:00
parent 5ca2407325
commit 18cba33cff
2 changed files with 3 additions and 3 deletions

View File

@ -31,9 +31,9 @@ git clone --recurse-submodules https://timerix.ddns.net:3322/Timerix/GraphC.git
4. Symlink SDL headers directory to `dependencies/include` 4. Symlink SDL headers directory to `dependencies/include`
```sh ```sh
cd GraphC cd GraphC
ln -s SDL2_HEADERS_DIRECTORY_ABSOLUTE_PATH dependencies/include/ ln -s SDL2_HEADERS_DIRECTORY_ABSOLUTE_PATH -T dependencies/include/SDL2
``` ```
Location of the headers can be found by `pkg-config --cppflags --libs sdl2`. Location of the headers can be found by `pkg-config --cflags --libs sdl2`.
Mingw installs SDL2 headers to `/mingw64/include/SDL2`. Mingw installs SDL2 headers to `/mingw64/include/SDL2`.
5. Compile the program 5. Compile the program
```sh ```sh

View File

@ -8,7 +8,7 @@ done
mkdir -p ../obj mkdir -p ../obj
mkdir -p ../bin mkdir -p ../bin
set -x set -x
./resource_embedder.exe -o ../obj/resources.c -d ../../resources $inputs ./resource_embedder -o ../obj/resources.c -d ../../resources $inputs
gcc -Wall -Wextra -O2 -DEMBEDDED_RESOURCE_DEFINITION -c ../obj/resources.c -o ../bin/resources.o gcc -Wall -Wextra -O2 -DEMBEDDED_RESOURCE_DEFINITION -c ../obj/resources.c -o ../bin/resources.o
set +x set +x
cat ../obj/resources.c | head -n42 > ../../src/generated/resources.h cat ../obj/resources.c | head -n42 > ../../src/generated/resources.h