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
BrotliTarget(),
DumbTarget(),
ExpatTarget(),
FmtTarget(),
FreeTypeTarget(),
GlewTarget(),
@ -100,6 +99,7 @@ def targets():
ZstdTarget(),
# Obsolete libraries without binaries
ExpatTarget(),
FreeImageTarget(),
FtglTarget(),
WxWidgetsTarget(),

View file

@ -72,24 +72,6 @@ class DumbTarget(CMakeStaticDependencyTarget):
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):
def __init__(self, name='fmt'):
super().__init__(name)

View file

@ -19,6 +19,24 @@
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):
def __init__(self, name='freeimage'):
super().__init__(name)