aedi: move zip target to tier 2

This commit is contained in:
alexey.lysiuk 2022-09-23 14:55:40 +03:00
parent b48ce185c2
commit bb7e63bc55
3 changed files with 25 additions and 21 deletions

View File

@ -109,7 +109,7 @@ def targets():
WxWidgetsTarget(),
ZstdTarget(),
# Tools
# Tools needed to build main targets and libraries (tiers 1 and 2)
BuildCMakeTarget(),
GmakeTarget(),
MesonTarget(),
@ -120,6 +120,8 @@ def targets():
PkgConfigTarget(),
UnrarTarget(),
YasmTarget(),
# Tools without binaries stored in the repo, can be outdated
ZipTarget(),
# Special

View File

@ -205,23 +205,3 @@ class YasmTarget(ConfigureMakeDependencyTarget):
def detect(self, state: BuildState) -> bool:
return state.has_source_file('libyasm.h')
class ZipTarget(SingleExeCTarget):
def __init__(self, name='zip'):
super().__init__(name)
self.options = (
'-I.', '-DUNIX', '-DBZIP2_SUPPORT', '-DLARGE_FILE_SUPPORT', '-DUNICODE_SUPPORT',
'-DHAVE_DIRENT_H', '-DHAVE_TERMIOS_H', '-lbz2',
'crc32.c', 'crypt.c', 'deflate.c', 'fileio.c', 'globals.c', 'trees.c',
'ttyio.c', 'unix/unix.c', 'util.c', 'zip.c', 'zipfile.c', 'zipup.c',
)
def prepare_source(self, state: BuildState):
state.download_source(
'https://downloads.sourceforge.net/project/infozip/Zip%203.x%20%28latest%29/3.0/zip30.tar.gz',
'f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369',
patches='zip-fix-misc')
def detect(self, state: BuildState) -> bool:
return state.has_source_file('zip.h')

View File

@ -15,3 +15,25 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from .base import *
class ZipTarget(SingleExeCTarget):
def __init__(self, name='zip'):
super().__init__(name)
self.options = (
'-I.', '-DUNIX', '-DBZIP2_SUPPORT', '-DLARGE_FILE_SUPPORT', '-DUNICODE_SUPPORT',
'-DHAVE_DIRENT_H', '-DHAVE_TERMIOS_H', '-lbz2',
'crc32.c', 'crypt.c', 'deflate.c', 'fileio.c', 'globals.c', 'trees.c',
'ttyio.c', 'unix/unix.c', 'util.c', 'zip.c', 'zipfile.c', 'zipup.c',
)
def prepare_source(self, state: BuildState):
state.download_source(
'https://downloads.sourceforge.net/project/infozip/Zip%203.x%20%28latest%29/3.0/zip30.tar.gz',
'f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369',
patches='zip-fix-misc')
def detect(self, state: BuildState) -> bool:
return state.has_source_file('zip.h')