mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-10 14:41:43 +00:00
aedi: move zip target to tier 2
This commit is contained in:
parent
b48ce185c2
commit
bb7e63bc55
3 changed files with 25 additions and 21 deletions
|
@ -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
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue