summaryrefslogtreecommitdiff
path: root/po/meson.build
blob: 5135bb66b95ba1faf8500831cd8473479465b960 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
if get_option('nls')
  i18n = import('i18n')
  i18n.gettext('efl',
             args: [
                '--keyword=_',
                '--keyword=d_:1',
                '--keyword=P_:1,2',
                '--keyword=dP_:1,2',
                '--keyword=N_',
                '--keyword=NP_:1,2',
                '--from-code=UTF-8',
                '--foreign-user'
              ])
  config_h.set('HAVE_GETTEXT', '1')
  config_h.set('ENABLE_NLS', '1')
  intl = cc.find_library('intl', required : false)
  if cc.compiles('#include <libintl.h>', dependencies : intl) == false
    error('libintl.h not found')
  endif
else
  intl = declare_dependency()
endif