aedi: move expat to tier 3

This commit is contained in:
alexey.lysiuk 2022-06-18 12:41:27 +03:00
parent 958c86fc6a
commit faa99158f1
3 changed files with 19 additions and 19 deletions

View file

@ -71,7 +71,6 @@ def targets():
# Libraries needed for other targets # Libraries needed for other targets
BrotliTarget(), BrotliTarget(),
DumbTarget(), DumbTarget(),
ExpatTarget(),
FmtTarget(), FmtTarget(),
FreeTypeTarget(), FreeTypeTarget(),
GlewTarget(), GlewTarget(),
@ -100,6 +99,7 @@ def targets():
ZstdTarget(), ZstdTarget(),
# Obsolete libraries without binaries # Obsolete libraries without binaries
ExpatTarget(),
FreeImageTarget(), FreeImageTarget(),
FtglTarget(), FtglTarget(),
WxWidgetsTarget(), WxWidgetsTarget(),

View file

@ -72,24 +72,6 @@ class DumbTarget(CMakeStaticDependencyTarget):
return 'Libs: -L${libdir} -ldumb\n' if line.startswith('Libs:') else line return 'Libs: -L${libdir} -ldumb\n' if line.startswith('Libs:') else line
class ExpatTarget(CMakeStaticDependencyTarget):
def __init__(self, name='expat'):
super().__init__(name)
def prepare_source(self, state: BuildState):
state.download_source(
'https://github.com/libexpat/libexpat/releases/download/R_2_4_1/expat-2.4.1.tar.xz',
'cf032d0dba9b928636548e32b327a2d66b1aab63c4f4a13dd132c2d1d2f2fb6a')
def configure(self, state: BuildState):
opts = state.options
opts['EXPAT_BUILD_EXAMPLES'] = 'NO'
opts['EXPAT_BUILD_TESTS'] = 'NO'
opts['EXPAT_BUILD_TOOLS'] = 'NO'
super().configure(state)
class FmtTarget(CMakeStaticDependencyTarget): class FmtTarget(CMakeStaticDependencyTarget):
def __init__(self, name='fmt'): def __init__(self, name='fmt'):
super().__init__(name) super().__init__(name)

View file

@ -19,6 +19,24 @@
from .base import * from .base import *
class ExpatTarget(CMakeStaticDependencyTarget):
def __init__(self, name='expat'):
super().__init__(name)
def prepare_source(self, state: BuildState):
state.download_source(
'https://github.com/libexpat/libexpat/releases/download/R_2_4_1/expat-2.4.1.tar.xz',
'cf032d0dba9b928636548e32b327a2d66b1aab63c4f4a13dd132c2d1d2f2fb6a')
def configure(self, state: BuildState):
opts = state.options
opts['EXPAT_BUILD_EXAMPLES'] = 'NO'
opts['EXPAT_BUILD_TESTS'] = 'NO'
opts['EXPAT_BUILD_TOOLS'] = 'NO'
super().configure(state)
class FreeImageTarget(MakeTarget): class FreeImageTarget(MakeTarget):
def __init__(self, name='freeimage'): def __init__(self, name='freeimage'):
super().__init__(name) super().__init__(name)