Skip to content

Commit

Permalink
Don't hardcode windres location
Browse files Browse the repository at this point in the history
This isn't the meson way to do things. Doing this also prepares us for
using the builtin meson rc support instead of hand-rolling our own once
mesonbuild/meson#8954 lands.
  • Loading branch information
cwabbott0 authored and doitsujin committed Jul 3, 2021
1 parent c8a9308 commit 120585c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions build-win32.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ c = 'i686-w64-mingw32-gcc'
cpp = 'i686-w64-mingw32-g++'
ar = 'i686-w64-mingw32-ar'
strip = 'i686-w64-mingw32-strip'
windres = 'i686-w64-mingw32-windres'

[properties]
needs_exe_wrapper = true
Expand Down
1 change: 1 addition & 0 deletions build-win64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ c = 'x86_64-w64-mingw32-gcc'
cpp = 'x86_64-w64-mingw32-g++'
ar = 'x86_64-w64-mingw32-ar'
strip = 'x86_64-w64-mingw32-strip'
windres = 'x86_64-w64-mingw32-windres'

[properties]
needs_exe_wrapper = true
Expand Down
8 changes: 1 addition & 7 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,7 @@ else
add_global_link_arguments('-static', '-static-libgcc', language: 'c')
add_global_link_arguments('-static', '-static-libgcc', '-static-libstdc++', language: 'cpp')

if cpu_family == 'x86_64'
wrc = find_program('x86_64-w64-mingw32-windres')
elif cpu_family == 'x86'
wrc = find_program('i686-w64-mingw32-windres')
else
error('Unsupported target architecture')
endif
wrc = find_program('windres')
endif

if cpu_family == 'x86_64'
Expand Down

0 comments on commit 120585c

Please sign in to comment.