mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-28 22:52:17 +00:00
wip
[skip build] [skip test]
This commit is contained in:
parent
5ea8c485ca
commit
7951145fe0
2 changed files with 18 additions and 13 deletions
|
@ -20,16 +20,17 @@ import shlex
|
|||
import shutil
|
||||
import subprocess
|
||||
|
||||
import base
|
||||
|
||||
from ..state import BuildState
|
||||
from .base import BuildTarget, Target
|
||||
|
||||
|
||||
class BuildPrefix(Target):
|
||||
class BuildPrefix(base.Target):
|
||||
def __init__(self, name='build-prefix'):
|
||||
super().__init__(name)
|
||||
|
||||
|
||||
class CleanTarget(Target):
|
||||
class CleanTarget(base.Target):
|
||||
def __init__(self, name=None):
|
||||
super().__init__(name)
|
||||
self.args = ()
|
||||
|
@ -55,7 +56,7 @@ class CleanDepsTarget(CleanAllTarget):
|
|||
self.args += (state.deps_path,)
|
||||
|
||||
|
||||
class DownloadCMakeTarget(Target):
|
||||
class DownloadCMakeTarget(base.Target):
|
||||
def __init__(self, name='download-cmake'):
|
||||
super().__init__(name)
|
||||
|
||||
|
@ -76,7 +77,7 @@ class DownloadCMakeTarget(Target):
|
|||
shutil.rmtree(state.source)
|
||||
|
||||
|
||||
class TestDepsTarget(BuildTarget):
|
||||
class TestDepsTarget(base.BuildTarget):
|
||||
def __init__(self, name='test-deps'):
|
||||
super().__init__(name)
|
||||
self.multi_platform = False
|
||||
|
|
|
@ -16,10 +16,14 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
from .base import *
|
||||
import subprocess
|
||||
|
||||
import base
|
||||
|
||||
from ..state import BuildState
|
||||
|
||||
|
||||
class GlslangTarget(CMakeStaticDependencyTarget):
|
||||
class GlslangTarget(base.CMakeStaticDependencyTarget):
|
||||
def __init__(self, name='glslang'):
|
||||
super().__init__(name)
|
||||
|
||||
|
@ -37,7 +41,7 @@ class GlslangTarget(CMakeStaticDependencyTarget):
|
|||
super().configure(state)
|
||||
|
||||
|
||||
class P7ZipTarget(CMakeTarget):
|
||||
class P7ZipTarget(base.CMakeTarget):
|
||||
def __init__(self, name='p7zip'):
|
||||
super().__init__(name)
|
||||
self.src_root = 'CPP/7zip/CMAKE/7za'
|
||||
|
@ -55,7 +59,7 @@ class P7ZipTarget(CMakeTarget):
|
|||
self.copy_to_bin(state, '7za')
|
||||
|
||||
|
||||
class PbzxTarget(SingleExeCTarget):
|
||||
class PbzxTarget(base.SingleExeCTarget):
|
||||
def __init__(self, name='pbzx'):
|
||||
super().__init__(name)
|
||||
self.options = ('pbzx.c', '-lxar', '-llzma')
|
||||
|
@ -70,7 +74,7 @@ class PbzxTarget(SingleExeCTarget):
|
|||
return state.has_source_file('pbzx.c')
|
||||
|
||||
|
||||
class QPakManTarget(CMakeTarget):
|
||||
class QPakManTarget(base.CMakeTarget):
|
||||
def __init__(self, name='qpakman'):
|
||||
super().__init__(name)
|
||||
|
||||
|
@ -83,7 +87,7 @@ class QPakManTarget(CMakeTarget):
|
|||
self.copy_to_bin(state)
|
||||
|
||||
|
||||
class SeverZipTarget(MakeTarget):
|
||||
class SeverZipTarget(base.MakeTarget):
|
||||
# Build with --os-version-x64=10.13 command line option
|
||||
|
||||
def __init__(self, name='7zip'):
|
||||
|
@ -125,7 +129,7 @@ class SeverZipTarget(MakeTarget):
|
|||
return 'x64' if arch == 'x86_64' else arch
|
||||
|
||||
|
||||
class UnrarTarget(MakeTarget):
|
||||
class UnrarTarget(base.MakeTarget):
|
||||
def __init__(self, name='unrar'):
|
||||
super().__init__(name)
|
||||
|
||||
|
@ -141,7 +145,7 @@ class UnrarTarget(MakeTarget):
|
|||
return state.has_source_file('rar.hpp')
|
||||
|
||||
|
||||
class ZipTarget(SingleExeCTarget):
|
||||
class ZipTarget(base.SingleExeCTarget):
|
||||
def __init__(self, name='zip'):
|
||||
super().__init__(name)
|
||||
self.options = (
|
||||
|
|
Loading…
Reference in a new issue