meta: add missing exe resource files

This commit is contained in:
2024-12-16 20:57:30 +00:00
parent 10c03c4b74
commit bc8bfcea9d
10 changed files with 172 additions and 5 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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})

View File

@@ -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)

33
res/win32/asm.rc Normal file
View File

@@ -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

33
res/win32/common.rc Normal file
View File

@@ -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

35
res/win32/frontend.rc Normal file
View File

@@ -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

33
res/win32/lang.rc Normal file
View File

@@ -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

33
res/win32/rt.rc Normal file
View File

@@ -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

View File

@@ -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)