Path fixing for great link justice.
This commit is contained in:
parent
9253e8f8cc
commit
b1be0a4547
3
build.py
3
build.py
|
@ -496,6 +496,9 @@ class StaticLibrary(BuildTarget):
|
||||||
def get_import_filename(self):
|
def get_import_filename(self):
|
||||||
return self.filename
|
return self.filename
|
||||||
|
|
||||||
|
def get_osx_filename(self):
|
||||||
|
return self.get_filename()
|
||||||
|
|
||||||
class SharedLibrary(BuildTarget):
|
class SharedLibrary(BuildTarget):
|
||||||
def __init__(self, name, subdir, is_cross, sources, objects, environment, kwargs):
|
def __init__(self, name, subdir, is_cross, sources, objects, environment, kwargs):
|
||||||
self.version = None
|
self.version = None
|
||||||
|
|
|
@ -598,7 +598,7 @@ class XCodeBackend(backends.Backend):
|
||||||
headerdirs.append(os.path.join(self.environment.get_build_dir(), cd))
|
headerdirs.append(os.path.join(self.environment.get_build_dir(), cd))
|
||||||
for l in target.link_targets:
|
for l in target.link_targets:
|
||||||
abs_path = os.path.join(self.environment.get_build_dir(),
|
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)
|
dep_libs.append("'%s'" % abs_path)
|
||||||
if isinstance(l, build.SharedLibrary):
|
if isinstance(l, build.SharedLibrary):
|
||||||
links_dylib = True
|
links_dylib = True
|
||||||
|
|
Loading…
Reference in New Issue