summaryrefslogtreecommitdiffstats
blob: 14333184d487637aa3f8e28cd1a02c51585a0057 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Import("swiften_env", "env")

myenv = swiften_env.Clone()
if myenv.get("HAVE_ICU") :
	myenv.MergeFlags(swiften_env["ICU_FLAGS"])
	myenv.Append(CPPDEFINES = ["HAVE_ICU"])
elif myenv.get("HAVE_LIBIDN") :
	myenv.MergeFlags(swiften_env["LIBIDN_FLAGS"])
	myenv.Append(CPPDEFINES = ["HAVE_LIBIDN"])

objects = myenv.SwiftenObject([
			"StringPrep.cpp",
			"IDNA.cpp",
		])
swiften_env.Append(SWIFTEN_OBJECTS = [objects])

env.Append(UNITTEST_SOURCES = [
			File("UnitTest/StringPrepTest.cpp"),
			File("UnitTest/IDNATest.cpp"),
	])