Skip to content

Commit ac62612

Browse files
authored
Minor Meson cleanups (#56)
* Meson: use `host_machine` rather than `target_machine` See: https://mesonbuild.com/Cross-compilation.html * Meson: remove redundant `-O coff` args Meson already generates a COFF object by default when using windres.
1 parent e7fcc1b commit ac62612

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/meson.build

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ resources = gnome.compile_resources(
1010
source_dir: 'gtk',
1111
)
1212

13-
if target_machine.system() == 'windows'
13+
if host_machine.system() == 'windows'
1414
windows = import('windows')
15-
resources += windows.compile_resources('vipsdisp.rc',
16-
args: ['-O', 'coff'],
17-
depend_files: 'vipsdisp.ico')
15+
resources += windows.compile_resources(
16+
'vipsdisp.rc',
17+
depend_files: 'vipsdisp.ico',
18+
)
1819
endif
1920

2021
headers = files (

0 commit comments

Comments
 (0)