aedi: use cmake to build png

This commit is contained in:
alexey.lysiuk 2021-06-07 09:56:53 +03:00
parent 87dd157f0e
commit f44fe5a700

View file

@ -150,10 +150,14 @@ class OpusFileTarget(ConfigureMakeStaticDependencyTarget):
return os.path.exists(state.source + 'opusfile.pc.in')
class PngTarget(ConfigureMakeStaticDependencyTarget):
class PngTarget(CMakeStaticDependencyTarget):
def __init__(self, name='png'):
super().__init__(name)
opts = self.options
opts['PNG_ARM_NEON'] = 'on'
opts['PNG_SHARED'] = 'OFF'
def prepare_source(self, state: BuildState):
state.download_source(
'https://downloads.sourceforge.net/libpng/libpng-1.6.37.tar.xz',