build script: mark multi-platform targets

This commit is contained in:
alexey.lysiuk 2020-12-25 12:52:03 +02:00
parent 6a62f3918e
commit 5cd25a6312

View file

@ -61,6 +61,7 @@ class CommandLineOptions(dict):
class BaseTarget: class BaseTarget:
def __init__(self, name=None): def __init__(self, name=None):
self.name = name self.name = name
self.multi_platform = False
def prepare_source(self, builder: 'Builder'): def prepare_source(self, builder: 'Builder'):
pass pass
@ -89,6 +90,7 @@ class Target(BaseTarget):
self.prefix = None self.prefix = None
self.environment = os.environ.copy() self.environment = os.environ.copy()
self.options = CommandLineOptions() self.options = CommandLineOptions()
self.multi_platform = True
def initialize(self, builder: 'Builder'): def initialize(self, builder: 'Builder'):
self.prefix = builder.deps_path + self.name self.prefix = builder.deps_path + self.name
@ -874,6 +876,7 @@ class MadTarget(ConfigureMakeStaticDependencyTarget):
class MesonTarget(Target): class MesonTarget(Target):
def __init__(self, name='meson'): def __init__(self, name='meson'):
super().__init__(name) super().__init__(name)
self.multi_platform = False
def prepare_source(self, builder: 'Builder'): def prepare_source(self, builder: 'Builder'):
builder.download_source( builder.download_source(
@ -942,6 +945,8 @@ class MoltenVKTarget(MakeTarget):
def __init__(self, name='moltenvk'): def __init__(self, name='moltenvk'):
super().__init__(name) super().__init__(name)
self.options['macos'] = None self.options['macos'] = None
# Building for multiple architectures is handled internally
self.multi_platform = False
def prepare_source(self, builder: 'Builder'): def prepare_source(self, builder: 'Builder'):
builder.download_source( builder.download_source(