aedi: wxwidgets 3.0.5.1 target

it's incomplete (at least wx-config should be patched) because of missing webview library when building for arm64
target needs to be upgraded to the latest development version 3.1.x as stable 3.0.x doesn't offer webview on arm64
This commit is contained in:
alexey.lysiuk 2021-06-26 10:29:02 +03:00
parent cb6fceef45
commit a6cebb7313
2 changed files with 27 additions and 0 deletions

View file

@ -92,6 +92,7 @@ def targets():
SodiumTarget(),
TiffTarget(),
WebpTarget(),
WxWidgetsTarget(),
ZstdTarget(),
# Tools

View file

@ -608,6 +608,32 @@ class WebpTarget(CMakeStaticDependencyTarget):
self.keep_module_target(state, 'WebP::webp')
class WxWidgetsTarget(ConfigureMakeStaticDependencyTarget):
def __init__(self, name='wxwidgets'):
super().__init__(name)
def prepare_source(self, state: BuildState):
state.download_source(
'https://github.com/wxWidgets/wxWidgets/releases/download/v3.0.5.1/wxWidgets-3.0.5.1.tar.bz2',
'440f6e73cf5afb2cbf9af10cec8da6cdd3d3998d527598a53db87099524ac807',
patches='wxwidgets-fix-configure')
def configure(self, state: BuildState):
opts = self.options
opts['--disable-shared'] = None
opts['--with-macosx-sdk'] = state.sdk_path()
opts['--with-macosx-version-min'] = state.os_version()
opts['--with-libpng'] = 'sys'
opts['--with-libtiff'] = 'sys'
opts['--without-sdl'] = None
opts['--without-subdirs'] = None
super().configure(state)
def detect(self, state: BuildState) -> bool:
return os.path.exists(state.source + 'wx-config.in')
class ZstdTarget(CMakeStaticDependencyTarget):
def __init__(self, name='zstd'):
super().__init__(name)