From 1502c9d55640633fb9d1c0c349d54ddf0e4d0d67 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Wed, 15 Jan 2014 00:41:42 +0100 Subject: [PATCH] Fix of cmake service install location. --- README.win | 18 ++++++++++++------ cmake/CMakeLists.txt | 1 + cmake/notepad.service | 4 ++++ 3 Dateien geändert, 17 Zeilen hinzugefügt(+), 6 Zeilen entfernt(-) create mode 100644 cmake/notepad.service diff --git a/README.win b/README.win index bd67c18..4d8e892 100644 --- a/README.win +++ b/README.win @@ -13,7 +13,7 @@ test not running yet and there is help needed to get them running. Supported compilers ------------------- -On windows Microsoft Visual Studio 2010 (Express and professional variants) +On windows Microsoft Visual Studio 2010 (Express and professional variants) and mingw-w64|32 are known to work. Building @@ -30,14 +30,19 @@ updated with windows specific stuff. Tests ----- + - run complete test suite + make check + or + ctest [-V] + - dbus library check - bin\test-dbus.exe \test\data + ctest [-V] -R test-dbus - bus daemon check - bin\test-bus.exe \test\data + ctest [-V] -R test-bus - check available names - bin\test_names.exe + ctest [-V] -R test-names - check if dbus-daemon is accessable bin\dbus-send.exe --session --type=method_call --print-reply --dest=org.freedesktop.DBus / org.freedesktop.DBus.ListNames method return sender=org.freedesktop.DBus -> dest=:1.4 array [ string "org.freedesktop.DBus"string ":1.4"] @@ -52,14 +57,15 @@ Tests set DBUS_VERBOSE=1 for getting debug infos - - call function registerd in dbus bin\dbus-send.exe --dest=org.freedesktop.DBus --print-reply --type=method_call / org.freedesktop.DBus.StartServiceByName string:org.freedesktop.DBus.TestSuiteEchoService uint32:455 method return sender=org.freedesktop.DBus -> dest=:1.8 uint32 2 + - start provided notepad services + bin\dbus-send.exe --session --print-reply --dest=org.freedesktop.DBus / org.freedesktop.DBus.StartServiceByName string:com.microsoft.notepad uint32:0 + note: When building with the Visual C++ IDE the *.exe files are in the bin/Debug and bin/Release folder, not in the bin folder. - FAQ --- diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index dcdc8ea..0f55e7b 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -509,6 +509,7 @@ endif (DBUS_BUILD_TESTS) add_subdirectory( tools ) add_subdirectory( doc ) +install(FILES ${CMAKE_SOURCE_DIR}/notepad.service DESTINATION share/dbus-1/services) OPTION(DBUS_INSTALL_SYSTEM_LIBS "install required system libraries" OFF) MESSAGE(" ") diff --git a/cmake/notepad.service b/cmake/notepad.service new file mode 100644 index 0000000..1cf2b12 --- /dev/null +++ b/cmake/notepad.service @@ -0,0 +1,4 @@ +[D-BUS Service] +Name=com.microsoft.notepad +Exec=notepad.exe + -- 1.7.10.4