diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2007-03-03 14:32:17 +0000 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2007-03-03 14:32:17 +0000 |
commit | 36ebfd411b358fb4797d31d23f945e8f6844d15a (patch) | |
tree | 9c8982d1da82fdffea8d2a741dba82e927874869 /cmake/dbus-launch.bat.cmake | |
parent | 4ceb86d29a68ebe52b20c8c090bc90c68a58f8c8 (diff) |
* cmake: new directory, contains cmake build support.
See http://www.cmake.org for more informations.
Currently only unix will be buildable because some
win32 required files are still missing.
Diffstat (limited to 'cmake/dbus-launch.bat.cmake')
-rw-r--r-- | cmake/dbus-launch.bat.cmake | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/cmake/dbus-launch.bat.cmake b/cmake/dbus-launch.bat.cmake new file mode 100644 index 00000000..ef08b5ac --- /dev/null +++ b/cmake/dbus-launch.bat.cmake @@ -0,0 +1,26 @@ +:: environment setting for dbus clients +@echo off + +:: session bus address +set DBUS_SESSION_BUS_ADDRESS=@DBUS_SESSION_BUS_DEFAULT_ADDRESS@ + +:: system bus address +set DBUS_SYSTEM_BUS_DEFAULT_ADDRESS=@DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@ + +if exist bus\session.conf ( + @echo starting local dbus daemon + start "D-Bus daemon" "bin\dbus-daemon" "--config-file=bus\session.conf" +) else ( + if not "%DBUSDIR%"=="" ( + @echo starting dbus daemon identified by DBUSDIR=%DBUSDIR% + start "D-Bus daemon" "%DBUSDIR%\bin\dbus-daemon" "--session" + pause + ) else ( + if exist "%ProgramFiles%\dbus\bin\dbus-daemon.exe" ( + @echo starting global dbus daemon located in %ProgramFiles%\dbus + start "D-Bus daemon" "%ProgramFiles%\dbus\bin\dbus-daemon" "--session" + ) else ( + @echo please set DBUSDIR to your DBUS installation dir and restart this script + ) + ) +) |