mirror of
https://github.com/samba-team/samba.git
synced 2025-03-05 20:58:40 +03:00
s4-heimdal: allow heimdal build scripts to work from top level
the version_script handling relied on the directory layout. This makes it independent of the directory structure Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
431b25e895
commit
baf629d98f
@ -12,8 +12,11 @@ def to_list(str):
|
||||
return str
|
||||
return str.split(None)
|
||||
|
||||
def heimdal_path(p):
|
||||
return os.path.join("../heimdal", p)
|
||||
def heimdal_path(p, absolute=False):
|
||||
hpath = os.path.join("../heimdal", p)
|
||||
if not absolute:
|
||||
return hpath
|
||||
return os.path.normpath(os.path.join(bld.curdir, hpath))
|
||||
|
||||
def heimdal_paths(ps):
|
||||
return [heimdal_path(p) for p in to_list(ps)]
|
||||
@ -254,7 +257,7 @@ def HEIMDAL_LIBRARY(libname, source, deps, vnum, version_script, includes='', cf
|
||||
ldflags = ldflags,
|
||||
vars = [version],
|
||||
private_library = bundled_build,
|
||||
version_script = heimdal_path(version_script),
|
||||
version_script = heimdal_path(version_script, absolute=True),
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user