1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
Import("env")
if env.get("LDNS_BUNDLED", False) :
if env["PLATFORM"] == "win32" :
cppflags = ["/I" + Dir("#/3rdParty/Ldns/src/include").abspath]
else :
cppflags = [("-isystem", Dir("#/3rdParty/Ldns/src/include").abspath)]
################################################################################
# Flags
################################################################################
if env["SCONS_STAGE"] == "flags" :
env["LDNS_FLAGS"] = {
"CPPPATH": [Dir("src/include")],
"CPPFLAGS": cppflags,
"LIBPATH": [env.Dir(".")],
"LIBS": ["Swiften_Ldns"],
}
################################################################################
# Build
################################################################################
if env["SCONS_STAGE"] == "build" :
myenv = env.Clone()
myenv.Append(CPPDEFINES = [("LDNS_STATICLIB")])
myenv.Append(CPPPATH = ["src/include", "."])
myenv.Install("include", [
])
myenv.StaticLibrary("Swiften_Ldns", [
"src/src/compat/b32_ntop.c",
"src/src/compat/b32_pton.c",
"src/src/compat/b64_ntop.c",
"src/src/compat/b64_pton.c",
"src/src/buffer.c",
"src/src/dname.c",
"src/src/dnssec_sign.c",
"src/src/dnssec_verify.c",
"src/src/dnssec_zone.c",
"src/src/dnssec.c",
"src/src/error.c",
"src/src/higher.c",
"src/src/host2str.c",
"src/src/host2wire.c",
"src/src/keys.c",
"src/src/linktest.c",
"src/src/net.c",
"src/src/packet.c",
"src/src/parse.c",
"src/src/rbtree.c",
"src/src/rdata.c",
"src/src/resolver.c",
"src/src/rr_functions.c",
"src/src/rr.c",
"src/src/sha1.c",
"src/src/sha2.c",
"src/src/str2host.c",
"src/src/tsig.c",
"src/src/update.c",
"src/src/util.c",
"src/src/wire2host.c",
"src/src/zone.c",
])
|