aedi: move sfml to tier 3

This commit is contained in:
alexey.lysiuk 2022-06-19 10:00:58 +03:00
parent 9da9032a5d
commit 81bde39bb3
3 changed files with 23 additions and 23 deletions

View file

@ -87,7 +87,6 @@ def targets():
Sdl2MixerTarget(),
Sdl2NetTarget(),
Sdl2TtfTarget(),
SfmlTarget(),
SodiumTarget(),
TiffTarget(),
VulkanHeadersTarget(),
@ -102,6 +101,7 @@ def targets():
FtglTarget(),
GlewTarget(),
LuaTarget(),
SfmlTarget(),
WxWidgetsTarget(),
# Tools

View file

@ -464,28 +464,6 @@ class SodiumTarget(ConfigureMakeStaticDependencyTarget):
return state.has_source_file('libsodium.pc.in')
class SfmlTarget(CMakeStaticDependencyTarget):
def __init__(self, name='sfml'):
super().__init__(name)
def prepare_source(self, state: BuildState):
state.download_source(
'https://www.sfml-dev.org/files/SFML-2.5.1-sources.zip',
'bf1e0643acb92369b24572b703473af60bac82caf5af61e77c063b779471bb7f',
patches='sfml-support-arm64')
def configure(self, state: BuildState):
opts = state.options
opts['CMAKE_OSX_ARCHITECTURES'] = state.architecture()
opts['SFML_USE_SYSTEM_DEPS'] = 'YES'
opts['SFML_MISC_INSTALL_PREFIX'] = state.install_path / 'share/SFML'
# Use OpenAL Soft instead of Apple's framework
opts['OPENAL_INCLUDE_DIR'] = state.include_path / 'AL'
opts['OPENAL_LIBRARY'] = state.lib_path / 'libopenal.a'
super().configure(state)
class TiffTarget(CMakeStaticDependencyTarget):
def __init__(self, name='tiff'):
super().__init__(name)

View file

@ -155,6 +155,28 @@ class LuaTarget(MakeTarget):
self.install(state, state.options)
class SfmlTarget(CMakeStaticDependencyTarget):
def __init__(self, name='sfml'):
super().__init__(name)
def prepare_source(self, state: BuildState):
state.download_source(
'https://www.sfml-dev.org/files/SFML-2.5.1-sources.zip',
'bf1e0643acb92369b24572b703473af60bac82caf5af61e77c063b779471bb7f',
patches='sfml-support-arm64')
def configure(self, state: BuildState):
opts = state.options
opts['CMAKE_OSX_ARCHITECTURES'] = state.architecture()
opts['SFML_USE_SYSTEM_DEPS'] = 'YES'
opts['SFML_MISC_INSTALL_PREFIX'] = state.install_path / 'share/SFML'
# Use OpenAL Soft instead of Apple's framework
opts['OPENAL_INCLUDE_DIR'] = state.include_path / 'AL'
opts['OPENAL_LIBRARY'] = state.lib_path / 'libopenal.a'
super().configure(state)
class WxWidgetsTarget(CMakeStaticDependencyTarget):
def __init__(self, name='wxwidgets'):
super().__init__(name)