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