Build a resource file on windows

This commit is contained in:
Jeffery Myers
2025-05-18 09:01:50 -07:00
parent d218555489
commit 44d2afafff
3 changed files with 41 additions and 1 deletions

View File

@@ -159,9 +159,22 @@ if (downloadRaylib) then
{
["Header Files/*"] = { "../include/**.h", "../include/**.hpp", "../src/**.h", "../src/**.hpp"},
["Source Files/*"] = {"../src/**.c", "src/**.cpp"},
["Widows Resoruce Files/*"] = {"../src/**.rc", "src/**.ico"},
}
files {"../src/**.c", "../src/**.cpp", "../src/**.h", "../src/**.hpp", "../include/**.h", "../include/**.hpp"}
filter {"system:windows"}
files {"../src/*.rc", "../src/*.ico"}
filter {"system:windows","action:gmake*", "files:**.rc"}
buildmessage 'Compiling Windows Resources %[%{file.relpath}]'
buildcommands {
'windres.exe "%[%{!file.relpath}]" "%[%{!cfg.objdir}/%{file.basename}.out]" '
}
filter{}
includedirs { "../src" }
includedirs { "../include" }

BIN
src/raylib.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

27
src/raylib.rc Normal file
View File

@@ -0,0 +1,27 @@
GLFW_ICON ICON "raylib.ico"
1 VERSIONINFO
FILEVERSION 5,5,0,0
PRODUCTVERSION 5,5,0,0
BEGIN
BLOCK "StringFileInfo"
BEGIN
//BLOCK "080904E4" // English UK
BLOCK "040904E4" // English US
BEGIN
//VALUE "CompanyName", "raylib technologies"
VALUE "FileDescription", "raylib application (www.raylib.com)"
VALUE "FileVersion", "5.5.0"
VALUE "InternalName", "raylib app"
VALUE "LegalCopyright", "(c) 2024 Ramon Santamaria (@raysan5)"
//VALUE "OriginalFilename", "raylib_app"
VALUE "ProductName", "raylib app"
VALUE "ProductVersion", "5.5.0"
END
END
BLOCK "VarFileInfo"
BEGIN
//VALUE "Translation", 0x809, 1252 // English UK
VALUE "Translation", 0x409, 1252 // English US
END
END