blob: 7ae1c8da5e95c45fe86c9c455f9583673a8b9a9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# -*- mode:python; coding:utf-8; -*-
# The core difference between this test and the one of SharedObjectSuffixIssue
# is that here we explicitly use the relevant D tool and things work.
DefaultEnvironment(tools=[])
env = Environment(
tools=['{0}', 'link']
)
shobj = env.SharedObject('code.d')
env.SharedLibrary('answer', shobj)
ver_lib = env.SharedLibrary('answer_versioned', shobj, SHLIBVERSION='1.1.1', SOVERSION='4')
shlibfile = ver_lib[0]
try:
for (f,t) in ver_lib[0].attributes.shliblinks:
print("SYMLINK:%s,%s"%(f,t))
except AttributeError:
print("NOSYMLINK")
|