summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'SwifTools/SConscript')
-rw-r--r--SwifTools/SConscript5
1 files changed, 3 insertions, 2 deletions
diff --git a/SwifTools/SConscript b/SwifTools/SConscript
index 18781c3..7620879 100644
--- a/SwifTools/SConscript
+++ b/SwifTools/SConscript
@@ -36,8 +36,9 @@ if env["SCONS_STAGE"] == "build" :
if myenv["PLATFORM"] == "win32" :
sources += ["Idle/WindowsIdleQuerier.cpp"]
- elif myenv["PLATFORM"] == "darwin" :
- sources += ["Idle/MacOSXIdleQuerier.cpp"]
+ elif myenv["PLATFORM"] == "darwin" and myenv.get("HAVE_IOKIT", False) :
+ myenv.Append(CPPDEFINES = ["HAVE_IOKIT"])
+ sources += ["Idle/MacOSXIdleQuerier.cpp"]
elif myenv["HAVE_XSS"] :
myenv.Append(CPPDEFINES = ["HAVE_XSS"])
sources += ["Idle/XSSIdleQuerier.cpp"]