~cairo-dock-team/ubuntu/quantal/cairo-dock-plug-ins/3.1.0

« back to all changes in this revision

Viewing changes to Dbus/src/CMakeLists.txt

  • Committer: Matthieu Baerts
  • Date: 2012-08-27 13:52:53 UTC
  • mfrom: (1.1.24)
  • Revision ID: matttbe@gmail.com-20120827135253-hddj9plv24wc90sa
Tags: 3.0.99.beta1.1~20120827~bzr2515-0ubuntu1
* New upstream snapshot.
* Upstream ChangeLog (detailed changes):
 - Recent-Events: Dialog: no longer added removed files
    + Dialog: Applications: Used the translated name
    + Recent files: added deleted files to the hashtable to prevent
       useless g_file_test
 - ShowDesktop: fixed a typo (about the coloration in the code)
    + checked if Xrandr extension is available before using it
       (LP: #1040271)
 - CMakeLists.txt: linked each plugin to all libs used by gldi except
    gldi (and not only to a few modules)
 - Dbus: cairo-dock-unity-bridge crashed with TypeError in
    on_name_owner_changed(): cannot concatenate 'str' and 'NoneType'
    objects (LP: #1041558)
 - CMakeLists.txt: Checked gio-2.0 for 'gvfs-integration' even if GMenu
    is not compiled
    + Linked gvfs-integration static library to gio-2.0
 - GMenu: fixed a bug that could provoke a crash if the applet is
    deactivating
    + Used gio to launch the menu entries, so that the event is stored
     in Zeitgeist
 - Dbus: the binary was not linked to libdbusmenu
    + checked if we have dbusmenu and dbusmenu-gtk before adding DBusMenu
     support
 - DBus: cairo-dock-unity-bridge: excluded the current process when
    looking if the script has not already been launched
    + converted grep commands to python commands to not launch 4 processes
     just for that
    + Added 'Unity-Bridge' before all 'print'
    + ps command: print only pid + cmd
* debian/control:
 - Bump Cairo-Dock versions

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}")
28
28
add_definitions (-DMY_APPLET_ICON_FILE="icon.svg")
29
29
add_definitions (-DCD_PLUGINS_DIR="${pluginsdir}")
30
 
if (${DBUSMENU_GTK_FOUND})
 
30
 
 
31
if (${DBUSMENU_GTK_FOUND} AND ${DBUSMENU_FOUND})
31
32
        message (STATUS " * With DBusMenu support")
32
33
        add_definitions (-DDBUSMENU_GTK_FOUND=1)
33
34
        if (${DBUSMENU_GTK3_NEW})
34
35
                add_definitions (-DDBUSMENU_GTK3_NEW=1)
35
36
        endif()
 
37
 
 
38
        include_directories (
 
39
                ${DBUSMENU_INCLUDE_DIRS}
 
40
                ${DBUSMENU_GTK_INCLUDE_DIRS}
 
41
                ${PACKAGE_INCLUDE_DIRS})
 
42
 
 
43
        link_directories (
 
44
                ${DBUSMENU_LIBRARY_DIRS}
 
45
                ${DBUSMENU_GTK_LIBRARY_DIRS}
 
46
                ${PACKAGE_LIBRARY_DIRS})
 
47
 
 
48
        target_link_libraries (${PACKAGE_DBUS}
 
49
                ${DBUSMENU_LIBRARIES}
 
50
                ${DBUSMENU_GTK_LIBRARIES}
 
51
                ${PACKAGE_LIBRARIES})
 
52
else()
 
53
        include_directories (
 
54
                ${PACKAGE_INCLUDE_DIRS})
 
55
 
 
56
        link_directories (
 
57
                ${PACKAGE_LIBRARY_DIRS})
 
58
 
 
59
        target_link_libraries (${PACKAGE_DBUS}
 
60
                ${PACKAGE_LIBRARIES})
36
61
endif()
37
62
 
38
 
include_directories (
39
 
        ${DBUSMENU_INCLUDE_DIRS}
40
 
        ${DBUSMENU_GTK_INCLUDE_DIRS}
41
 
        ${PACKAGE_INCLUDE_DIRS})
42
 
 
43
 
link_directories (
44
 
        ${DBUSMENU_LIBRARY_DIRS}
45
 
        ${DBUSMENU_GTK_LIBRARY_DIRS}
46
 
        ${PACKAGE_LIBRARY_DIRS})
47
 
 
48
 
target_link_libraries (${PACKAGE_DBUS}
49
 
        ${PACKAGE_LIBRARIES})
50
 
 
51
63
########### install files ###############
52
64
 
53
65
install (TARGETS ${PACKAGE_DBUS} DESTINATION ${pluginsdir})