summaryrefslogtreecommitdiffstats
blob: 2ae4e4e63605b0335489e23d458e15976edd19e4 (plain)
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
Import("env")

env["SWIFTOOLS_FLAGS"] = {
		"LIBPATH": [Dir(".")],
		"LIBS": ["SwifTools"]
	}

myenv = env.Clone()
myenv.MergeFlags(myenv["BOOST_FLAGS"])

sources = [
		"Idle/IdleDetector.cpp",
		"Idle/ActualIdleDetector.cpp",
		"Idle/IdleQuerier.cpp",
		"Idle/PlatformIdleQuerier.cpp",
		"Linkify.cpp",
	]

if myenv["PLATFORM"] == "win32" :
	sources += ["Idle/WindowsIdleQuerier.cpp"]
elif myenv["PLATFORM"] == "darwin" :
	sources += ["Idle/MacOSXIdleQuerier.cpp"]
elif myenv["HAVE_XSS"] :
	myenv.Append(CPPDEFINES = ["HAVE_XSS"])
	sources += ["Idle/XSSIdleQuerier.cpp"]
else :
  sources += ["Idle/DummyIdleQuerier.cpp"]

myenv.StaticLibrary("SwifTools", sources)

SConscript(dirs = [
		"Idle/IdleQuerierTest",
		"Idle/UnitTest",
		"UnitTest"
	])