mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-25 13:21:05 +00:00
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:
parent
cb6fceef45
commit
a6cebb7313
2 changed files with 27 additions and 0 deletions
|
@ -92,6 +92,7 @@ def targets():
|
|||
SodiumTarget(),
|
||||
TiffTarget(),
|
||||
WebpTarget(),
|
||||
WxWidgetsTarget(),
|
||||
ZstdTarget(),
|
||||
|
||||
# Tools
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue