meson.build 858 Bytes
Newer Older
1
project('gnome-icon-preview', 'vala', 'c', version: '0.9.4')
Zander's avatar
Zander committed
2

Zander's avatar
Zander committed
3
i18n = import('i18n')
Zander's avatar
Zander committed
4

Zander's avatar
Zander committed
5 6
datadir = join_paths([ get_option('prefix'), get_option('datadir') ])
bindir = join_paths([ get_option('prefix'), 'bin' ])
7
localedir = join_paths(get_option('prefix'), get_option('localedir'))
Zander's avatar
Zander committed
8

Zander's avatar
Zander committed
9
conf = configuration_data()
10
conf.set_quoted('G_LOG_DOMAIN', 'org.gnome.design.IconPreview')
Zander's avatar
Zander committed
11
conf.set_quoted('PACKAGE_VERSION', meson.project_version())
12 13
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
conf.set_quoted('LOCALE_DIR', localedir)
Zander's avatar
Zander committed
14 15
conf.set('BINDIR', bindir)

16
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()), language: 'c')
17
add_global_arguments('-DG_LOG_DOMAIN="@0@"'.format ('org.gnome.design.IconPreview'), language: 'c')
Zander's avatar
Zander committed
18
add_global_arguments('-DHANDY_USE_UNSTABLE_API', language: 'c')
19

Zander's avatar
Zander committed
20
subdir('data')
21
subdir('po')
Zander's avatar
Zander committed
22
subdir('src')
Zander's avatar
Zander committed
23