Release version 0.5.3
[platform/core/security/askuser.git] / src / notification-daemon / po / CMakeLists.txt
1 # Copyright (c) 2015.3017 Samsung Electronics Co., Ltd All Rights Reserved
2 #
3 #    Licensed under the Apache License, Version 2.0 (the "License");
4 #    you may not use this file except in compliance with the License.
5 #    You may obtain a copy of the License at
6 #
7 #        http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #    Unless required by applicable law or agreed to in writing, software
10 #    distributed under the License is distributed on an "AS IS" BASIS,
11 #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #    See the License for the specific language governing permissions and
13 #    limitations under the License.
14 #
15 # @file        CMakeLists.txt
16 # @author      Adam Malinowski <a.malinowsk2@partner.samsung.com>
17 #
18
19 SET(POFILES
20     ar.po
21     as.po
22     az.po
23     be_BY.po
24     bg.po
25     bn_BD.po
26     bn.po
27     ca.po
28     cs.po
29     da.po
30     de.po
31     el_GR.po
32     en_PH.po
33     en.po
34     en_US.po
35     es_ES.po
36     es_US.po
37     et.po
38     eu.po
39     fa.po
40     fi.po
41     fr_CA.po
42     fr.po
43     ga.po
44     gl.po
45     gu.po
46     he.po
47     hi.po
48     hr.po
49     hu.po
50     hy.po
51     id.po
52     is.po
53     it_IT.po
54     ja_JP.po
55     ka.po
56     kk.po
57     km.po
58     kn.po
59     ko_KR.po
60     ky_KG.po
61     lo.po
62     lt.po
63     lv.po
64     mk.po
65     ml.po
66     mn_MN.po
67     mr.po
68     ms.po
69     my_MM.po
70     my_ZG.po
71     nb.po
72     ne.po
73     nl.po
74     or.po
75     pa.po
76     pl.po
77     pl_SP.po
78     pt_BR.po
79     pt_PT.po
80     ro.po
81     ru_RU.po
82     si.po
83     sk.po
84     sl.po
85     sq.po
86     sr.po
87     sv.po
88     ta.po
89     te.po
90     tg_TJ.po
91     th.po
92     tk_TM.po
93     tl.po
94     tr_TR.po
95     uk.po
96     ur.po
97     uz.po
98     vi.po
99     zh_CN.po
100     zh_HK.po
101     zh_TW.po
102 )
103
104 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
105 SET(SHAREDIR "${PREFIX}/share")
106 SET(LOCALEDIR "${SHAREDIR}/locale")
107 SET(MSGFMT "/usr/bin/msgfmt")
108
109 FOREACH(pofile ${POFILES})
110     SET(pofile ${CMAKE_CURRENT_SOURCE_DIR}/${pofile})
111     MESSAGE("PO: ${pofile}")
112     GET_FILENAME_COMPONENT(absPofile ${pofile} ABSOLUTE)
113     GET_FILENAME_COMPONENT(lang ${absPofile} NAME_WE)
114     SET(moFile ${CMAKE_CURRENT_BINARY_DIR}/${lang}.mo)
115     ADD_CUSTOM_COMMAND(
116         OUTPUT ${moFile}
117         COMMAND ${MSGFMT} -o ${moFile} ${absPofile}
118         DEPENDS ${absPofile}
119     )
120     INSTALL(FILES ${moFile}
121         DESTINATION ${LOCALEDIR}/${lang}/LC_MESSAGES RENAME ${TARGET_ASKUSER_NOTIFICATION}.mo)
122     SET(moFiles ${moFiles} ${moFile})
123 ENDFOREACH(pofile)
124
125 ADD_CUSTOM_TARGET(po ALL DEPENDS ${moFiles})