~unity-2d-team/unity-2d/natty

« back to all changes in this revision

Viewing changes to launcher/UnityApplications/CMakeLists.txt

  • Committer: Tarmac
  • Author(s): Florian Boucault
  • Date: 2011-03-23 17:31:31 UTC
  • mfrom: (476.2.8 startup_notification)
  • Revision ID: ubuntu.builder@gmail.com-20110323173131-zecdrbzmdb60c6la
[launcher] Added support for startup notification protocol.

Launcher now depends on libstartup-notification.
  
New APIs:
- LauncherApplication::executable QString property
- LauncherApplication::setSnStartupSequence(SnStartupSequence* sequence)
  
LauncherApplication::launching is updated depending on the startup notification sequence set to the LauncherApplication.
LauncherApplications created for startup notification are matched with their corresponding BamfApplication based on their executable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
pkg_check_modules(GDK REQUIRED gdk-2.0)
8
8
pkg_check_modules(GIO REQUIRED gio-2.0)
9
9
pkg_check_modules(WNCK REQUIRED libwnck-1.0)
 
10
pkg_check_modules(STARTUPNOTIFICATION REQUIRED libstartup-notification-1.0)
10
11
 
11
12
# Sources
12
13
set(UnityApplications_SRCS
49
50
qt4_wrap_cpp(UnityApplications_MOC_SRCS ${UnityApplications_MOC_HDRS})
50
51
 
51
52
# Build
52
 
add_definitions(-DWNCK_I_KNOW_THIS_IS_UNSTABLE)
 
53
add_definitions(-DWNCK_I_KNOW_THIS_IS_UNSTABLE -DSN_API_NOT_YET_FROZEN)
53
54
 
54
55
add_library(UnityApplications SHARED ${UnityApplications_SRCS} ${UnityApplications_MOC_SRCS})
55
56
 
68
69
    ${GDK_INCLUDE_DIRS}
69
70
    ${GIO_INCLUDE_DIRS}
70
71
    ${WNCK_INCLUDE_DIRS}
 
72
    ${STARTUPNOTIFICATION_INCLUDE_DIRS}
71
73
    )
72
74
 
73
75
target_link_libraries(UnityApplications
83
85
    ${GDK_LDFLAGS}
84
86
    ${GIO_LDFLAGS}
85
87
    ${WNCK_LDFLAGS}
 
88
    ${STARTUPNOTIFICATION_LDFLAGS}
86
89
    )
87
90
 
88
91
# Install