mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 08:21:59 +02:00
clapper-app: Add Windows icon
This commit is contained in:
20
src/bin/clapper-app/windows/meson.build
Normal file
20
src/bin/clapper-app/windows/meson.build
Normal 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@']
|
||||
)
|
Reference in New Issue
Block a user