forked from artemanufrij/playmyvideos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
34 lines (27 loc) · 1015 Bytes
/
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
project('com.github.artemanufrij.playmyvideos', ['vala', 'c'], version: '1.0.0')
gnome = import('gnome')
i18n = import('i18n')
# Add locale support
conf = configuration_data()
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
conf.set_quoted('PREFIX', get_option('prefix'))
conf.set_quoted('VERSION', meson.project_version())
conf.set_quoted('PACKAGE', meson.project_name())
conf.set_quoted('LOCALE_DIR', join_paths(get_option('prefix'), get_option('localedir')))
conf.set_quoted('DATADIR', join_paths(get_option('prefix'), get_option('datadir')))
conf.set_quoted('PKGDATADIR', join_paths(get_option('prefix'), get_option('datadir'), meson.project_name()))
configure_file(
output: 'config.h',
configuration: conf
)
config_h_dir = include_directories('src')
# Arguments C - no gcc warnings
c_args = [
'-include', 'config.h',
'-w', '-DGETTEXT_PACKAGE="' + meson.project_name() + '"'
]
subdir('data')
subdir('po')
subdir('schemas')
subdir('src')
meson.add_install_script('meson/post_install.py')