~jamespharaoh/ubuntu/oneiric/unity/fix-for-880672

« back to all changes in this revision

Viewing changes to .pc/debian-changes-4.8.2-0ubuntu3/services/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2011-08-19 18:53:28 UTC
  • Revision ID: james.westby@ubuntu.com-20110819185328-qaxk9eepjaghewu9
Tags: 4.8.2-0ubuntu4
Backport another trunk commit to fix an alt-tab segfault

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# Panel Service
3
 
#
4
 
find_package(PkgConfig)
5
 
pkg_check_modules(SERVICE_DEPS REQUIRED gtk+-3.0 gobject-2.0 gio-2.0 gthread-2.0 indicator3-0.4 x11 gconf-2.0)
6
 
 
7
 
execute_process (COMMAND ${PKG_CONFIG_EXECUTABLE} indicator3-0.4 --variable indicatordir OUTPUT_VARIABLE _indicatordir OUTPUT_STRIP_TRAILING_WHITESPACE)
8
 
execute_process (COMMAND ${PKG_CONFIG_EXECUTABLE} indicator3-0.4 --variable iconsdir OUTPUT_VARIABLE _iconsdir OUTPUT_STRIP_TRAILING_WHITESPACE)
9
 
 
10
 
set(PANEL_SOURCES
11
 
    panel-a11y.c
12
 
    panel-a11y.h
13
 
    panel-indicator-accessible.c
14
 
    panel-indicator-accessible.h
15
 
    panel-indicator-entry-accessible.c
16
 
    panel-indicator-entry-accessible.h
17
 
    panel-main.c
18
 
    ${CMAKE_CURRENT_BINARY_DIR}/panel-marshal.c
19
 
    panel-root-accessible.c
20
 
    panel-root-accessible.h
21
 
    panel-service.c
22
 
    panel-service.h
23
 
    panel-util-accessible.c
24
 
    panel-util-accessible.h)
25
 
 
26
 
find_program(GLIB_GENMARSHAL glib-genmarshal)
27
 
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/panel-marshal.c
28
 
  COMMAND ${GLIB_GENMARSHAL} ARGS panel-marshal.list --body --prefix=panel_marshal > ${CMAKE_CURRENT_BINARY_DIR}/panel-marshal.c
29
 
  COMMAND ${GLIB_GENMARSHAL} ARGS panel-marshal.list --header --prefix=panel_marshal > ${CMAKE_CURRENT_BINARY_DIR}/panel-marshal.h
30
 
  WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
31
 
  DEPENDS panel-marshal.list
32
 
  COMMENT "Generating marshallers")
33
 
 
34
 
set(CFLAGS
35
 
    "${SERVICE_DEPS_CFLAGS}"
36
 
    ${SERVICE_DEPS_CFLAGS_OTHER}
37
 
    ${MAINTAINER_CFLAGS}
38
 
    "-I${CMAKE_CURRENT_BINARY_DIR}"
39
 
    "-DGETTEXT_PACKAGE=\"unity\""
40
 
    "-DINDICATORDIR=\"${_indicatordir}\""
41
 
    "-DINDICATORICONDIR=\"${_iconsdir}\""
42
 
    "-Werror -Wall"
43
 
    )
44
 
add_definitions(${CFLAGS})
45
 
 
46
 
set(LIBS ${SERVICE_DEPS_LIBRARIES})
47
 
link_libraries(${LIBS})
48
 
 
49
 
set(LIB_PATHS ${SERVICE_DEPS_LIBRARY_DIRS})
50
 
link_directories(${LIB_PATHS})
51
 
 
52
 
add_executable(unity-panel-service ${PANEL_SOURCES})
53
 
install(TARGETS unity-panel-service DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/unity/)
54
 
 
55
 
configure_file(com.canonical.Unity.Panel.Service.service.cmake ${CMAKE_CURRENT_BINARY_DIR}/com.canonical.Unity.Panel.Service.service)
56
 
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/com.canonical.Unity.Panel.Service.service DESTINATION ${CMAKE_INSTALL_PREFIX}/share/dbus-1/services)