Skip to content

Commit 518d858

Browse files
committed
add an icon to the exe on windows
maybe!
1 parent 85ef058 commit 518d858

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
master
22

3+
- add an icon to the exe on windows
4+
35
## 4.1.1 31/07/25
46

57
- do our own tile snapping if gtk has no snap mechanism

src/meson.build

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,19 @@ enumtypes = gnome.mkenums(
5656
c_template: 'enumtypes.c.in',
5757
)
5858

59+
resources = []
60+
if target_machine.system() == 'windows'
61+
windows = import('windows')
62+
# this picks up windres from the WINDRES env var
63+
resources += windows.compile_resources('vipsdisp.rc', args: '-O coff', depend_files: 'vipsdisp.ico')
64+
endif
65+
5966
executable('vipsdisp', [
6067
enumtypes,
6168
marshal,
6269
resources,
6370
sources,
71+
resources,
6472
],
6573
dependencies: vipsdisp_deps,
6674
win_subsystem: 'windows',

src/vipsdisp.ico

65.4 KB
Binary file not shown.

src/vipsdisp.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.libvips.vipsdisp ICON "org.libvips.vipsdisp.ico"

0 commit comments

Comments
 (0)