meson: fix wx subproject on Linux

This commit is contained in:
Myaamori 2020-11-22 18:21:23 +00:00 committed by odrling
parent d32154c423
commit 805b01720d
1 changed files with 7 additions and 3 deletions

View File

@ -144,17 +144,21 @@ else
wx = cmake.subproject('wxWidgets', cmake_options: ['-DwxBUILD_INSTALL=OFF',
'-DwxBUILD_PRECOMP=OFF', # otherwise breaks project generation w/ meson
'-DwxBUILD_SHARED=@0@'.format(build_shared),
'-DwxUSE_WEBVIEW=OFF', # breaks build on linux
'-DwxBUILD_MONOLITHIC=ON']) # otherwise breaks project generation w/ meson
deps += [
wx.dependency('wxmono'),
wx.dependency('wxzlib'),
wx.dependency('wxpng'),
wx.dependency('wxexpat'),
wx.dependency('wxregex'),
wx.dependency('wxscintilla')
]
if host_machine.system() == 'windows'
deps += [
wx.dependency('wxzlib'),
wx.dependency('wxpng'),
wx.dependency('wxexpat')
]
if cc.has_header('rpc.h')
deps += cc.find_library('rpcrt4', required: true)
else