~stolowski/unity-scope-mediascanner/set-child-feeds

« back to all changes in this revision

Viewing changes to po/CMakeLists.txt

  • Committer: CI bot
  • Author(s): James Henstridge
  • Date: 2014-10-13 12:00:45 UTC
  • mfrom: (177.2.16 click-support)
  • Revision ID: ps-jenkins@lists.canonical.com-20141013120045-d7bd9poj72au5672
Reorganise package and update build rules to support building scopes as click packages.  Also update icons to the latest versions from design. Fixes: 1380586
Approved by: Pawel Stolowski, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
file(GLOB CPPFILES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
2
 
                   "${CMAKE_SOURCE_DIR}/src/*.cpp")
3
 
file(GLOB INIFILES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
4
 
                   "${CMAKE_SOURCE_DIR}/data/*.ini.in.in")
 
1
file(GLOB_RECURSE CPPFILES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
 
2
                                    "${CMAKE_SOURCE_DIR}/src/*.cpp")
 
3
file(GLOB_RECURSE INIFILES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
 
4
                                    "${CMAKE_SOURCE_DIR}/src/*.ini.in")
5
5
 
6
6
foreach(inifile ${INIFILES})
7
7
    get_filename_component(fname ${inifile} NAME)
29
29
    DEPENDS pot-ini
30
30
)
31
31
 
32
 
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/locale)
33
 
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/locale DESTINATION share)
34
 
 
35
32
file(GLOB pofiles *.po)
36
33
foreach(f ${pofiles})
37
34
  get_filename_component(pofile ${f} NAME_WE)
44
41
  DEPENDS ${i}.po
45
42
  )
46
43
  add_custom_target(${i}gen ALL DEPENDS ${i}.mo)
47
 
  install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${i}.mo 
48
 
  DESTINATION share/locale/${i}/LC_MESSAGES
49
 
  RENAME ${GETTEXT_PACKAGE}.mo)
 
44
 
 
45
  if(CLICK_MODE)
 
46
    foreach(clickpkg
 
47
        com.ubuntu.scopes.mymusic
 
48
        com.ubuntu.scopes.myvideos
 
49
        com.ubuntu.scopes.music
 
50
        com.ubuntu.scopes.video)
 
51
      install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${i}.mo
 
52
        DESTINATION ${clickpkg}/locale/${i}/LC_MESSAGES
 
53
        RENAME ${GETTEXT_PACKAGE}.mo)
 
54
    endforeach()
 
55
  else()
 
56
    install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${i}.mo
 
57
      DESTINATION share/locale/${i}/LC_MESSAGES
 
58
      RENAME ${GETTEXT_PACKAGE}.mo)
 
59
  endif(CLICK_MODE)
50
60
endforeach()
51
61