Adding rc file.

This commit is contained in:
sergiotarxz 2022-07-07 01:50:03 +02:00
parent 9a5b344c18
commit 1b46ea3355
5 changed files with 15 additions and 1 deletions

View File

@ -47,6 +47,14 @@ foreach i : preloaded_images_files
endforeach
if is_windows
windows = import('windows')
windows_sources = windows.compile_resources('resources/windows.rc',
include_directories : [ '../recuento/resources' ]
)
foreach i : windows_sources
launcher_sources += i
endforeach
executable('recuento_launcher_windows',
launcher_sources,
install: true,

View File

@ -66,7 +66,7 @@ sub move_launcher {
my $recuento_inner = shift;
my $recuento = shift;
my $filename = 'Recuento.exe';
system 'cp', $recuento_inner->child('recuento_launcher_windows'), $recuento->child($filename);
system 'cp', $recuento_inner->child('recuento_launcher_windows.exe'), $recuento->child($filename);
}
sub copy_recursive {
my $source = shift;

BIN
resources/recuento.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

2
resources/windows.rc Normal file
View File

@ -0,0 +1,2 @@
#include <windows_resources.h>
MAINICON ICON "../recuento/resources/recuento.ico"

View File

@ -0,0 +1,4 @@
#ifndef WINDOWS_RESOURCES
#define WINDOWS_RESOURCES
#define MAINICON 0
#endif