[go: up one dir, main page]

File: meson.build

package info (click to toggle)
ibus-cangjie 2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 540 kB
  • sloc: python: 2,125; xml: 210; sh: 35; makefile: 8
file content (42 lines) | stat: -rw-r--r-- 1,223 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
project('ibus-cangjie',
    version: '2.5.0',
    meson_version: '>=1.3.2',
)

prefix = get_option('prefix')
bindir = prefix / get_option('bindir')
datadir = prefix / get_option('datadir')

appdir = datadir / 'applications'
po_dir = meson.project_source_root() / 'po'
docdir = datadir / 'doc'
licensedir = datadir / 'licenses'
componentdir = datadir / 'ibus' / 'component'
libexecdir = get_option('libexecdir')
pkglibexecdir = prefix / get_option('libexecdir')
localedir = prefix / 'share' / 'locale'

install_data('AUTHORS', install_dir: docdir / 'ibus-cangjie')
install_data('README.md', install_dir: docdir / 'ibus-cangjie')
install_data('COPYING', install_dir: licensedir / 'ibus-cangjie')

py = import('python').find_installation('python3',
    modules : [ 'cangjie' ])

subdir('data')
subdir('src')
subdir('scripts')
subdir('po')
subdir('tests')

run_target(
    'i18n-update',
    command: ['./scripts/i18n-update.sh'],
    env: {
        'PROJECT_DESCRIPTIVE_TITLE': 'XX translation for ' + meson.project_name(),
        'PROJECT_START_YEAR': '2012',
        'PROJECT_NAME': meson.project_name(),
        'PROJECT_VERSION': meson.project_version(),
        'PROJECT_COPYRIGHT': 'The IBus Cangjie authors',
    },
)