~ubuntu-branches/ubuntu/wily/unity-2d/wily

« back to all changes in this revision

Viewing changes to panel/applets/indicator/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2011-08-25 18:16:57 UTC
  • mfrom: (1.1.19 upstream)
  • Revision ID: james.westby@ubuntu.com-20110825181657-opb29rqsxae3i98f
Tags: 4.2.0-0ubuntu1
* New upstream release:
  - [panel] application menus do not appear on first hover after dismissal
    (lp: #825262)
  - [dash] Lens icons badly scaled (lp: #825368)
  - [panel] indicators are shifted offscreen to the right (lp: #827673)
  - [panel] scrubbing from system indicators to menubar should be possible
    (lp: #706903)
  - [launcher] Closed applications don't get their launcher counts cleared
    (lp: #767367)
  - [dash] selected item should not be underlined but use the same 
    treatment as unity (lp: #817456)
  - [dash] categories should be collapsed by default (lp: #827214)
  - [dash] Ratings filter (lp: #831855)
  - [dash] Multirange filter (lp: #831856)
  - [dash] ToggleButton filter (lp: #831857)
  - [dash] Icon size must be bigger to match the mockups (lp: #831858)
  - [dash] "Refine search" right margin should be 15 pixels (lp: #832058)
  - [dash] "Refine search" should be "Filter results" (lp: #832060)
  - [dash] Font sizes should match new design (lp: #832114)
  - [panel] Glitch: application menu appearing when pressing the BFB 
    (lp: #825060)
  - [panel] Glitch: application menus are quickly opened after a drag gesture
    (lp: #825267)
  - [dash] File thumbnails aspect ratio is not respected (lp: #832204)
* debian/control: require current the current versions of nux and unity

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
project(panelplugin-indicator)
 
2
 
 
3
macro(read_pkg_variable cmake_var pkg pkg_var)
 
4
    execute_process(
 
5
        COMMAND pkg-config --variable=${pkg_var} ${pkg}
 
6
        OUTPUT_VARIABLE tmp
 
7
        )
 
8
    # Remove trailing newline from ${tmp}
 
9
    string(STRIP "${tmp}" ${cmake_var})
 
10
endmacro(read_pkg_variable)
 
11
 
 
12
# Dependencies
 
13
pkg_check_modules(DBUSMENUQT REQUIRED dbusmenu-qt)
 
14
pkg_check_modules(INDICATOR REQUIRED indicator)
 
15
 
 
16
# Get indicator dirs from pkgconfig
 
17
read_pkg_variable(INDICATOR_DIR       indicator indicatordir)
 
18
read_pkg_variable(INDICATOR_ICONS_DIR indicator iconsdir)
 
19
 
 
20
# Sources
 
21
set(indicator_SRCS
 
22
    indicatorapplet.cpp
 
23
    plugin.cpp
 
24
    )
 
25
 
 
26
# Build
 
27
include_directories(
 
28
    ${CMAKE_CURRENT_SOURCE_DIR}
 
29
    ${CMAKE_CURRENT_BINARY_DIR}
 
30
    ${DBUSMENUQT_INCLUDE_DIRS}
 
31
    ${GTK_INCLUDE_DIRS}
 
32
    ${INDICATOR_INCLUDE_DIRS}
 
33
    ${CMAKE_CURRENT_BINARY_DIR}
 
34
    ${UNITYCORE_INCLUDE_DIRS}
 
35
    ${libunity-2d-private_SOURCE_DIR}/src
 
36
    )
 
37
 
 
38
qt4_automoc(${indicator_SRCS})
 
39
add_library(panelplugin-indicator SHARED ${indicator_SRCS})
 
40
set_target_properties(panelplugin-indicator PROPERTIES
 
41
    LIBRARY_OUTPUT_DIRECTORY ".."
 
42
    VERSION 0
 
43
    SOVERSION 0.0
 
44
    )
 
45
 
 
46
target_link_libraries(panelplugin-indicator
 
47
    ${QT_QTGUI_LIBRARIES}
 
48
    ${QT_QTCORE_LIBRARIES}
 
49
    ${DBUSMENUQT_LDFLAGS}
 
50
    ${GTK_LDFLAGS}
 
51
    ${INDICATOR_LDFLAGS}
 
52
    ${UNITYCORE_LDFLAGS}
 
53
    unity-2d-private
 
54
    )
 
55
 
 
56
install(TARGETS panelplugin-indicator
 
57
        LIBRARY DESTINATION lib/unity-2d/plugins/panel
 
58
       )