~unity-team/unity/trunk

« back to all changes in this revision

Viewing changes to services/CMakeLists.txt

  • Committer: Jussi Pakkanen
  • Date: 2012-12-05 14:52:45 UTC
  • mfrom: (2956 trunk)
  • mto: This revision was merged to the branch mainline in revision 2993.
  • Revision ID: jussi.pakkanen@canonical.com-20121205145245-ga2u3xgdagxs1uz7
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
2
# Panel Service
3
3
#
 
4
 
 
5
set(UNITY_PANEL_SERVICE_DEPS
 
6
    atk
 
7
    atk-bridge-2.0
 
8
    gio-2.0>=2.30.0
 
9
    gobject-2.0
 
10
    gthread-2.0
 
11
    gtk+-3.0>=3.3
 
12
    indicator3-0.4>=0.4.90
 
13
    x11
 
14
)
 
15
 
4
16
find_package(PkgConfig)
5
17
 
6
18
pkg_check_modules(SERVICE_DEPS REQUIRED gtk+-3.0>=3.3 gobject-2.0 gio-2.0 gthread-2.0 indicator3-0.4>=0.4.90 x11 atk-bridge-2.0)
7
19
 
8
 
 
9
20
set(PANEL_SOURCES
10
21
    panel-a11y.c
11
22
    panel-a11y.h
14
25
    panel-indicator-entry-accessible.c
15
26
    panel-indicator-entry-accessible.h
16
27
    panel-main.c
17
 
    ${CMAKE_CURRENT_BINARY_DIR}/panel-marshal.c
18
28
    panel-root-accessible.c
19
29
    panel-root-accessible.h
20
30
    panel-service.c
22
32
    panel-util-accessible.c
23
33
    panel-util-accessible.h)
24
34
 
25
 
find_program(GLIB_GENMARSHAL glib-genmarshal)
26
 
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/panel-marshal.c
27
 
  COMMAND ${GLIB_GENMARSHAL} ARGS panel-marshal.list --body --prefix=panel_marshal > ${CMAKE_CURRENT_BINARY_DIR}/panel-marshal.c
28
 
  COMMAND ${GLIB_GENMARSHAL} ARGS panel-marshal.list --header --prefix=panel_marshal > ${CMAKE_CURRENT_BINARY_DIR}/panel-marshal.h
29
 
  WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
30
 
  DEPENDS panel-marshal.list
31
 
  COMMENT "Generating marshallers")
32
 
 
33
35
set(CFLAGS
34
 
    "${SERVICE_DEPS_CFLAGS}"
 
36
    ${SERVICE_DEPS_CFLAGS}
35
37
    ${SERVICE_DEPS_CFLAGS_OTHER}
36
38
    "-Werror -Wall"
37
39
    )