-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmeson.build
58 lines (49 loc) · 1.27 KB
/
meson.build
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
project('parlatype-libreoffice-extension',
version: '4.2',
meson_version: '>= 0.56.0',
license: 'GPL3+',
)
app_id = 'xyz.parlatype.LibreOfficeExtension'
version = meson.project_version()
bundled = get_option('bundled')
i18n = import('i18n')
prefix = get_option('prefix')
base_lo_dir = get_option('libreoffice-dir')
gettext_package = 'parlatype'
python_dir = join_paths(meson.current_source_dir(), 'extension', 'python', 'components')
python_utils_dir = join_paths(python_dir, 'pythonpath')
if bundled
subdir('appdata')
endif
subdir('extension')
subdir('po')
subdir('tests')
if not bundled
oxt = find_program('create_oxt.sh', required: true)
zip = find_program('zip', required: true)
custom_target(
'oxt',
command: [ oxt, meson.project_source_root(), meson.project_build_root() ],
output: [ 'Parlatype.oxt' ],
depends: [ description, options_dialog, toolbar, window_state ],
build_by_default: true
)
endif
status = [
'', '',
'Parlatype LibreOffice Extension @0@'.format(meson.project_version()),
''
]
if bundled
status += [
'Mode ............. : bundled',
'Prefix ........... : @0@'.format(prefix),
'LibreOffice base.. : @0@'.format(base_lo_dir)
]
else
status += [
'Mode ............. : .oxt',
]
endif
status += [ '' ]
message('\n '.join(status))