mirror of https://github.com/odrling/Aegisub
meson: use check_header to check for iconv
iconv is not a standalone library on Linux, so find_library is pointless
This commit is contained in:
parent
0b7e244232
commit
441daf5aeb
|
@ -50,13 +50,10 @@ cxx = meson.get_compiler('cpp')
|
||||||
cc = meson.get_compiler('c')
|
cc = meson.get_compiler('c')
|
||||||
deps += cc.find_library('m', required: false)
|
deps += cc.find_library('m', required: false)
|
||||||
deps += cc.find_library('dl', required: false)
|
deps += cc.find_library('dl', required: false)
|
||||||
iconv_dep = cc.find_library('iconv', required: false)
|
if not cxx.check_header('iconv.h')
|
||||||
if not iconv_dep.found() and host_machine.system() == 'windows'
|
|
||||||
iconv_sp = subproject('iconv') # this really needs to be replaced with a proper port
|
iconv_sp = subproject('iconv') # this really needs to be replaced with a proper port
|
||||||
deps_inc += iconv_sp.get_variable('iconv_incs')
|
deps += iconv_sp.get_variable('libiconv_dep')
|
||||||
iconv_dep = iconv_sp.get_variable('libiconv_dep')
|
|
||||||
endif
|
endif
|
||||||
deps += iconv_dep
|
|
||||||
|
|
||||||
deps += dependency('libass', version: '>=0.9.7',
|
deps += dependency('libass', version: '>=0.9.7',
|
||||||
fallback: ['libass', 'libass_dep'])
|
fallback: ['libass', 'libass_dep'])
|
||||||
|
|
Loading…
Reference in New Issue