summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrexim <reximkut@gmail.com>2024-03-24 00:42:33 +0700
committerrexim <reximkut@gmail.com>2024-03-24 00:42:33 +0700
commit396c80a13928859ce3d447ec84226b297dfaa3ce (patch)
tree1e11f1863f4ddb64a9f026ad31ab98f0f406ec1c
parent59897febc449626cf3e8c82f2dd386f43b518574 (diff)
Icon for Windows Build
-rw-r--r--.gitignore1
-rw-r--r--assets/icon.icobin0 -> 12862 bytes
-rw-r--r--assets/icon.pngbin0 -> 229 bytes
-rwxr-xr-xbuild-linux.sh4
-rwxr-xr-xbuild-mingw32-w64.sh3
-rw-r--r--eepers.adb1
-rw-r--r--eepers.rc1
-rw-r--r--test.adb18
8 files changed, 8 insertions, 20 deletions
diff --git a/.gitignore b/.gitignore
index 2ad8d9a..baf08af 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@ eepers.exe
test
test.exe
*.swp
+*.res \ No newline at end of file
diff --git a/assets/icon.ico b/assets/icon.ico
new file mode 100644
index 0000000..be00a9a
--- /dev/null
+++ b/assets/icon.ico
Binary files differ
diff --git a/assets/icon.png b/assets/icon.png
new file mode 100644
index 0000000..055ab91
--- /dev/null
+++ b/assets/icon.png
Binary files differ
diff --git a/build-linux.sh b/build-linux.sh
index 24e3683..0a51876 100755
--- a/build-linux.sh
+++ b/build-linux.sh
@@ -2,8 +2,8 @@
set -xe
-gnatmake -f -O3 -Wall -Wextra -gnat2022 eepers.adb -bargs -static -largs -L./raylib/raylib-5.0_linux_amd64/lib/ -l:libraylib.a -lm
-./eepers
+# gnatmake -f -O3 -Wall -Wextra -gnat2022 eepers.adb -bargs -static -largs -L./raylib/raylib-5.0_linux_amd64/lib/ -l:libraylib.a -lm
+# ./eepers
# gnatmake -f -Wall -Wextra -gnat2022 test.adb -largs -L./raylib/raylib-5.0_linux_amd64/lib/ -l:libraylib.a -lm
# ./test
diff --git a/build-mingw32-w64.sh b/build-mingw32-w64.sh
index d4efe60..d0490f5 100755
--- a/build-mingw32-w64.sh
+++ b/build-mingw32-w64.sh
@@ -2,4 +2,5 @@
set -xe
-x86_64-w64-mingw32-gnatmake-win32 -mwindows -O3 -f -Wall -Wextra -gnat2022 eepers.adb -bargs -static -largs -L./raylib/raylib-5.0_win64_mingw-w64/lib/ -l:libraylib.a -lwinmm -lgdi32 -static
+x86_64-w64-mingw32-windres eepers.rc -O coff -o eepers.res
+x86_64-w64-mingw32-gnatmake-win32 -mwindows -O3 -f -Wall -Wextra -gnat2022 eepers.adb -bargs -static -largs eepers.res -L./raylib/raylib-5.0_win64_mingw-w64/lib/ -l:libraylib.a -lwinmm -lgdi32 -static
diff --git a/eepers.adb b/eepers.adb
index e15b749..130fc11 100644
--- a/eepers.adb
+++ b/eepers.adb
@@ -1551,7 +1551,6 @@ begin
Close_Window;
end;
--- TODO: Icon on for Windows build
-- TODO: Window title icon
-- TODO: Loop the music
-- TODO: Sound on Finishing Round
diff --git a/eepers.rc b/eepers.rc
new file mode 100644
index 0000000..c8504ef
--- /dev/null
+++ b/eepers.rc
@@ -0,0 +1 @@
+id ICON "./assets/icon.ico"
diff --git a/test.adb b/test.adb
index 4b994ba..411b84c 100644
--- a/test.adb
+++ b/test.adb
@@ -1,19 +1,5 @@
-with Text_IO; use Text_IO;
-with Raylib; use Raylib;
-with Interfaces.C; use Interfaces.C;
-with Ada.Unchecked_Conversion;
-
function Test return Integer is
- Sample: Sound;
begin
- Init_Window(800, 600, To_C("Test"));
- Init_Audio_Device;
- Sample := Load_Sound(To_C("assets/footsteps/boots/1.ogg"));
- Play_Sound(Sample);
- while not Window_Should_Close loop
- Begin_Drawing;
- End_Drawing;
- end loop;
- Close_Window;
- return 0;
+ null;
+ return 69;
end;