clapper-app: Add Windows icon

This commit is contained in:
Rafał Dzięgiel
2025-01-13 21:17:19 +01:00
parent b7b33172fe
commit 5906d1b78e
5 changed files with 107 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
rc_conf = configuration_data()
rc_conf.set('VER_CLAPPERVERSION', clapper_version.replace('.', ',') + ',0')
rc_conf.set_quoted('PACKAGE', meson.project_name())
rc_conf.set_quoted('PACKAGE_VERSION', meson.project_version())
rc_conf.set_quoted('PACKAGE_ORIGIN', 'https://github.com/Rafostar/clapper')
rc_conf.set_quoted('CLAPPER_APP_NAME', 'Clapper')
rc_conf.set_quoted('CLAPPER_EXE', meson.project_name() + '.exe')
clapperapp_rc = configure_file(
input: 'clapper.rc.in',
output: 'clapper.rc',
configuration: rc_conf,
)
windres = find_program('windres', required: true)
clapperapp_sources += custom_target('clapper.o',
input: clapperapp_rc,
output: 'clapper.o',
command: [windres, '-I', '@CURRENT_SOURCE_DIR@', '-o', '@OUTPUT@', '@INPUT@']
)