Path fixing for great link justice.

This commit is contained in:
Jussi Pakkanen 2014-04-03 00:05:24 +03:00
parent 9253e8f8cc
commit b1be0a4547
2 changed files with 4 additions and 1 deletions

View File

@ -496,6 +496,9 @@ class StaticLibrary(BuildTarget):
def get_import_filename(self):
return self.filename
def get_osx_filename(self):
return self.get_filename()
class SharedLibrary(BuildTarget):
def __init__(self, name, subdir, is_cross, sources, objects, environment, kwargs):
self.version = None

View File

@ -598,7 +598,7 @@ class XCodeBackend(backends.Backend):
headerdirs.append(os.path.join(self.environment.get_build_dir(), cd))
for l in target.link_targets:
abs_path = os.path.join(self.environment.get_build_dir(),
buildtype, l.get_filename())
l.subdir, buildtype, l.get_osx_filename())
dep_libs.append("'%s'" % abs_path)
if isinstance(l, build.SharedLibrary):
links_dylib = True