fixed: distftp needs to know mac sdk used
This commit is contained in:
parent
b385a459ad
commit
a37fc0896b
|
@ -54,6 +54,9 @@ class XcodeGenerator(Generator):
|
||||||
super(XcodeGenerator, self).__init__('Xcode')
|
super(XcodeGenerator, self).__init__('Xcode')
|
||||||
|
|
||||||
def getBinDir(self, target=''):
|
def getBinDir(self, target=''):
|
||||||
|
if target == "":
|
||||||
|
return super(XcodeGenerator, self).getBinDir(target)
|
||||||
|
|
||||||
xcodeTarget = target[0].upper() + target[1:]
|
xcodeTarget = target[0].upper() + target[1:]
|
||||||
return super(XcodeGenerator, self).getBinDir(target) + '/' + xcodeTarget
|
return super(XcodeGenerator, self).getBinDir(target) + '/' + xcodeTarget
|
||||||
|
|
||||||
|
|
|
@ -816,6 +816,10 @@ class InternalCommands:
|
||||||
return major + '.' + minor + '.' + rev
|
return major + '.' + minor + '.' + rev
|
||||||
|
|
||||||
def distftp(self, type, ftp):
|
def distftp(self, type, ftp):
|
||||||
|
config = self.getConfig()
|
||||||
|
if config.has_option("cmake", "mac_sdk"):
|
||||||
|
self.macSdk = config.get("cmake", "mac_sdk")
|
||||||
|
|
||||||
if not type:
|
if not type:
|
||||||
raise Exception('Type not specified.')
|
raise Exception('Type not specified.')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue