From bc8bfcea9d523fe8ab5b41d8688bfd5b69d34cdb Mon Sep 17 00:00:00 2001 From: Max Wash Date: Mon, 16 Dec 2024 20:57:30 +0000 Subject: [PATCH] meta: add missing exe resource files --- asm/CMakeLists.txt | 2 +- common/CMakeLists.txt | 2 +- frontend/CMakeLists.txt | 2 +- lang/CMakeLists.txt | 2 +- res/win32/asm.rc | 33 +++++++++++++++++++++++++++++++++ res/win32/common.rc | 33 +++++++++++++++++++++++++++++++++ res/win32/frontend.rc | 35 +++++++++++++++++++++++++++++++++++ res/win32/lang.rc | 33 +++++++++++++++++++++++++++++++++ res/win32/rt.rc | 33 +++++++++++++++++++++++++++++++++ rt/CMakeLists.txt | 2 +- 10 files changed, 172 insertions(+), 5 deletions(-) create mode 100644 res/win32/asm.rc create mode 100644 res/win32/common.rc create mode 100644 res/win32/frontend.rc create mode 100644 res/win32/lang.rc create mode 100644 res/win32/rt.rc diff --git a/asm/CMakeLists.txt b/asm/CMakeLists.txt index a847506..d4b7afc 100644 --- a/asm/CMakeLists.txt +++ b/asm/CMakeLists.txt @@ -1,7 +1,7 @@ file(GLOB_RECURSE asm_sources *.c *.h include/ivy/asm/*.h) if (WIN32) - set(rc_file ${CMAKE_CURRENT_SOURCE_DIR}/../res/build/asm.rc) + set(rc_file ${CMAKE_CURRENT_SOURCE_DIR}/../res/win32/asm.rc) endif () if (IVY_STATIC) diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 184014a..a64a2f5 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -1,7 +1,7 @@ file(GLOB_RECURSE common_sources *.c *.h include/ivy/*.h) if (WIN32) - set(rc_file ${CMAKE_CURRENT_SOURCE_DIR}/../res/build/common.rc) + set(rc_file ${CMAKE_CURRENT_SOURCE_DIR}/../res/win32/common.rc) endif () if (IVY_STATIC) diff --git a/frontend/CMakeLists.txt b/frontend/CMakeLists.txt index 5db2745..5e7318f 100644 --- a/frontend/CMakeLists.txt +++ b/frontend/CMakeLists.txt @@ -10,7 +10,7 @@ file(GLOB_RECURSE sys_sources sys/${system_name}/*.h) if (WIN32) - set(rc_file ${CMAKE_CURRENT_SOURCE_DIR}/../res/build/frontend.rc) + set(rc_file ${CMAKE_CURRENT_SOURCE_DIR}/../res/win32/frontend.rc) endif () add_executable(ivy ${ivy_sources} ${sys_sources} ${rc_file}) diff --git a/lang/CMakeLists.txt b/lang/CMakeLists.txt index e199c42..a1bae23 100644 --- a/lang/CMakeLists.txt +++ b/lang/CMakeLists.txt @@ -1,7 +1,7 @@ file(GLOB_RECURSE lang_sources *.c *.h include/ivy/lang/*.h) if (WIN32) - set(rc_file ${CMAKE_CURRENT_SOURCE_DIR}/../res/build/lang.rc) + set(rc_file ${CMAKE_CURRENT_SOURCE_DIR}/../res/win32/lang.rc) endif () if (IVY_STATIC) diff --git a/res/win32/asm.rc b/res/win32/asm.rc new file mode 100644 index 0000000..450dd4e --- /dev/null +++ b/res/win32/asm.rc @@ -0,0 +1,33 @@ +1 VERSIONINFO + FILEVERSION 0,0,1,0 + PRODUCTVERSION 0,0,1,0 + FILEFLAGSMASK 0x17L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x1L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "080904b0" + BEGIN + VALUE "Comments", "Ivy Assembler" + VALUE "FileDescription", "Ivy Language Assembler Library." + VALUE "CompanyName", "Max Wash" + VALUE "FileVersion", "0, 0, 1, 0" + VALUE "InternalName", "Ivy Assembler" + VALUE "LegalCopyright", "(C) 2024 Max Wash" + VALUE "OriginalFilename", "ivy-asm.dll" + VALUE "ProductName", "Ivy Assembler" + VALUE "ProductVersion", "0, 0, 1, 0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x809, 1200 + END +END \ No newline at end of file diff --git a/res/win32/common.rc b/res/win32/common.rc new file mode 100644 index 0000000..6e00b65 --- /dev/null +++ b/res/win32/common.rc @@ -0,0 +1,33 @@ +1 VERSIONINFO + FILEVERSION 0,0,1,0 + PRODUCTVERSION 0,0,1,0 + FILEFLAGSMASK 0x17L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x1L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "080904b0" + BEGIN + VALUE "Comments", "Ivy Utilities" + VALUE "FileDescription", "Ivy Language Utility Library." + VALUE "CompanyName", "Max Wash" + VALUE "FileVersion", "0, 0, 1, 0" + VALUE "InternalName", "Ivy Utilities" + VALUE "LegalCopyright", "(C) 2024 Max Wash" + VALUE "OriginalFilename", "ivy-asm.dll" + VALUE "ProductName", "Ivy Utilities" + VALUE "ProductVersion", "0, 0, 1, 0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x809, 1200 + END +END \ No newline at end of file diff --git a/res/win32/frontend.rc b/res/win32/frontend.rc new file mode 100644 index 0000000..7e6ea08 --- /dev/null +++ b/res/win32/frontend.rc @@ -0,0 +1,35 @@ +IDI_ICON1 ICON DISCARDABLE "..\\..\\res\\gfx\\logo-small.ico" + +1 VERSIONINFO + FILEVERSION 0,0,1,0 + PRODUCTVERSION 0,0,1,0 + FILEFLAGSMASK 0x17L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x1L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "080904b0" + BEGIN + VALUE "Comments", "Ivy" + VALUE "FileDescription", "Ivy Language Compiler & Interpreter." + VALUE "CompanyName", "Max Wash" + VALUE "FileVersion", "0, 0, 1, 0" + VALUE "InternalName", "Ivy" + VALUE "LegalCopyright", "(C) 2024 Max Wash" + VALUE "OriginalFilename", "Ivy.exe" + VALUE "ProductName", "Ivy" + VALUE "ProductVersion", "0, 0, 1, 0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x809, 1200 + END +END \ No newline at end of file diff --git a/res/win32/lang.rc b/res/win32/lang.rc new file mode 100644 index 0000000..2c4c2de --- /dev/null +++ b/res/win32/lang.rc @@ -0,0 +1,33 @@ +1 VERSIONINFO + FILEVERSION 0,0,1,0 + PRODUCTVERSION 0,0,1,0 + FILEFLAGSMASK 0x17L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x1L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "080904b0" + BEGIN + VALUE "Comments", "Ivy Compiler" + VALUE "FileDescription", "Ivy Language Compiler Library." + VALUE "CompanyName", "Max Wash" + VALUE "FileVersion", "0, 0, 1, 0" + VALUE "InternalName", "Ivy Compiler" + VALUE "LegalCopyright", "(C) 2024 Max Wash" + VALUE "OriginalFilename", "Ivy-lang.dll" + VALUE "ProductName", "ivy Compiler" + VALUE "ProductVersion", "0, 0, 1, 0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x809, 1200 + END +END \ No newline at end of file diff --git a/res/win32/rt.rc b/res/win32/rt.rc new file mode 100644 index 0000000..e5d0979 --- /dev/null +++ b/res/win32/rt.rc @@ -0,0 +1,33 @@ +1 VERSIONINFO + FILEVERSION 0,0,1,0 + PRODUCTVERSION 0,0,1,0 + FILEFLAGSMASK 0x17L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x1L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "080904b0" + BEGIN + VALUE "Comments", "Ivy Runtime" + VALUE "FileDescription", "Ivy Language Runtime Library." + VALUE "CompanyName", "Max Wash" + VALUE "FileVersion", "0, 0, 1, 0" + VALUE "InternalName", "Ivy Runtime" + VALUE "LegalCopyright", "(C) 2024 Max Wash" + VALUE "OriginalFilename", "ivy-rt.dll" + VALUE "ProductName", "Ivy Runtime" + VALUE "ProductVersion", "0, 0, 1, 0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x809, 1200 + END +END \ No newline at end of file diff --git a/rt/CMakeLists.txt b/rt/CMakeLists.txt index cd95751..d1590aa 100644 --- a/rt/CMakeLists.txt +++ b/rt/CMakeLists.txt @@ -1,7 +1,7 @@ file(GLOB_RECURSE rt_sources *.c *.h include/ivy/rt/*.h) if (WIN32) - set(rc_file ${CMAKE_CURRENT_SOURCE_DIR}/../res/build/rt.rc) + set(rc_file ${CMAKE_CURRENT_SOURCE_DIR}/../res/win32/rt.rc) endif () if (IVY_STATIC)