~ubuntu-branches/ubuntu/vivid/quassel/vivid-updates

« back to all changes in this revision

Viewing changes to icons/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman, Michael Marley
  • Date: 2015-02-19 07:42:04 UTC
  • mfrom: (1.1.59)
  • Revision ID: package-import@ubuntu.com-20150219074204-vu1qv4i0devi2j2t
Tags: 0.12~beta1-0ubuntu1
[ Michael Marley ]
* New upstream kf5 based beta release
  - Drop patches debian/patches/CVE-2014-8483.patch,
    upstream_qca-qt5-cmake.patch and upstream_qca-qt5-code.patch
  - Add kf5 build-deps
  - Adjust install paths
* Fix upstart job to avoid race conditions on restart

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Install icons
2
 
# We put them in DATA_INSTALL_DIR rather than ICON_INSTALL_DIR, to avoid
3
 
# polluting the global namespace and to allow overriding
4
 
 
5
 
if(WANT_MONO OR WANT_QTCLIENT)
6
 
 
7
 
  # Figure out if we want to install KDE's icons
8
 
  # Starting with KDE 4.3, they shouldn't be needed anymore
9
 
  set(INSTALL_OXY true)
10
 
  string(TOUPPER ${WITH_OXYGEN} OXY_UPPER)
11
 
  if(NOT OXY_UPPER)
12
 
    set(INSTALL_OXY false)
13
 
  elseif(OXY_UPPER MATCHES "AUTO")
14
 
    if(HAVE_KDE)
15
 
      if(KDE_VERSION VERSION_GREATER 4.2.99)
16
 
        set(INSTALL_OXY false)
17
 
      endif(KDE_VERSION VERSION_GREATER 4.2.99)
18
 
    endif(HAVE_KDE)
19
 
  endif(NOT OXY_UPPER)
20
 
 
21
 
  if(INSTALL_OXY)
22
 
    message(STATUS "Installing Oxygen icons")
23
 
  else(INSTALL_OXY)
24
 
    message(STATUS "Not installing Oxygen icons")
25
 
  endif(INSTALL_OXY)
26
 
 
27
 
  if(EMBED_DATA)
28
 
    set(ICON_RCS ${CMAKE_CURRENT_SOURCE_DIR}/hicolor.qrc ${CMAKE_CURRENT_SOURCE_DIR}/oxygen.qrc)
29
 
    if(INSTALL_OXY)
30
 
      set(ICON_RCS ${ICON_RCS} ${CMAKE_CURRENT_SOURCE_DIR}/oxygen_kde.qrc)
31
 
    endif(INSTALL_OXY)
 
2
#
 
3
# We put the bundled oxygen icon theme in DATADIR rather than ICONDIR,
 
4
# in order to avoid conflicts. As we add this directory to XDG_DATA_DIRS at runtime,
 
5
# the bundled theme will be found by Qt only if there is no oxygen theme installed
 
6
# in system directories.
 
7
#
 
8
# The hicolor folder contains icons vital for the Quassel UI (such as in the channel and nick
 
9
# lists). It is installed into the system icon directory (in order to allow overriding) and
 
10
# additionally always embedded as a fallback resource.
 
11
 
 
12
if (WANT_MONO OR WANT_QTCLIENT)
 
13
    set(ICON_RCS ${CMAKE_CURRENT_SOURCE_DIR}/hicolor.qrc) # always embed those
 
14
 
 
15
    if (EMBED_DATA)
 
16
        if (WITH_OXYGEN)
 
17
            message(STATUS "Embedding bundled Oxygen icons")
 
18
            set(ICON_RCS ${ICON_RCS} ${CMAKE_CURRENT_SOURCE_DIR}/oxygen.qrc)
 
19
        endif()
 
20
    else()
 
21
        install(DIRECTORY hicolor DESTINATION ${CMAKE_INSTALL_ICONDIR})
 
22
        if (WITH_OXYGEN)
 
23
            message(STATUS "Installing bundled Oxygen icons")
 
24
            install(DIRECTORY oxygen DESTINATION ${CMAKE_INSTALL_DATADIR}/quassel/icons)
 
25
        endif()
 
26
    endif()
 
27
 
 
28
    if (NOT WITH_OXYGEN)
 
29
        message(STATUS "Not installing bundled Oxygen icons")
 
30
    endif()
 
31
 
32
32
    set(CLIENT_RCS ${CLIENT_RCS} ${ICON_RCS} PARENT_SCOPE)
33
 
  else(EMBED_DATA)
34
 
    install(DIRECTORY hicolor DESTINATION ${ICON_INSTALL_DIR})
35
 
    install(DIRECTORY oxygen DESTINATION ${DATA_INSTALL_DIR}/quassel/icons)
36
 
    if(INSTALL_OXY)
37
 
      install(DIRECTORY oxygen_kde/ DESTINATION ${DATA_INSTALL_DIR}/quassel/icons/oxygen)
38
 
    endif(INSTALL_OXY)
39
 
  endif(EMBED_DATA)
40
 
endif(WANT_MONO OR WANT_QTCLIENT)
 
33
endif()
41
34
 
42
35
# Application icon
43
36
 
44
 
# cmake-2.6.2 can't handle nested conditions
45
 
# if((UNIX AND NOT APPLE) OR HAVE_KDE)
46
 
if(HAVE_KDE OR UNIX)
47
 
 if(HAVE_KDE OR NOT APPLE)
48
 
 
49
 
  install(FILES oxygen_kde/48x48/apps/quassel.png DESTINATION ${ICON_INSTALL_DIR}/hicolor/48x48/apps)
50
 
  if(CMAKE_INSTALL_PREFIX STREQUAL "/usr")
51
 
    install(FILES oxygen_kde/48x48/apps/quassel.png DESTINATION /usr/share/pixmaps)
52
 
  endif(CMAKE_INSTALL_PREFIX STREQUAL "/usr")
53
 
 
54
 
# endif((UNIX AND NOT APPLE) OR HAVE_KDE)
55
 
 endif(HAVE_KDE OR NOT APPLE)
56
 
endif(HAVE_KDE OR UNIX)
 
37
if (HAVE_KDE OR (UNIX AND NOT APPLE))
 
38
    install(FILES hicolor/48x48/apps/quassel.png DESTINATION ${CMAKE_INSTALL_ICONDIR}/hicolor/48x48/apps)
 
39
    if (CMAKE_INSTALL_PREFIX STREQUAL "/usr")
 
40
        install(FILES hicolor/48x48/apps/quassel.png DESTINATION /usr/share/pixmaps)
 
41
    endif()
 
42
endif()