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
|
project('msitools',
'c', 'vala',
version: run_command('build-aux/git-version-gen', '@0@/.tarball-version'.format(meson.source_root()), check: true).stdout().strip(),
meson_version: '>= 0.52',
)
meson.add_dist_script('build-aux/meson-dist', meson.project_version(), meson.source_root())
gnome = import('gnome')
perl = find_program('perl')
bison = find_program('bison')
bats = find_program('bats')
glib = dependency('glib-2.0', version: '>= 2.12')
gobject = dependency('gobject-2.0', version: '>= 0.9.4')
gio = dependency('gio-2.0', version: '>= 2.14')
libgsf = dependency('libgsf-1')
libgcab = dependency('libgcab-1.0', version: '>= 0.1.10')
libxml = dependency('libxml-2.0', version: '>= 2.7')
config = configuration_data()
config.set_quoted('PACKAGE_NAME', meson.project_name())
config.set_quoted('PACKAGE_VERSION', meson.project_version())
config.set_quoted('PACKAGE_STRING', '@0@ @1@'.format(meson.project_name(), meson.project_version()))
config.set_quoted('GETTEXT_PACKAGE', meson.project_name())
config.set_quoted('PACKAGE_BUGREPORT', 'https://gitlab.gnome.org/GNOME/msitools/issues')
config.set_quoted('LOCALEDIR', get_option('prefix') / get_option('localedir'))
config.set_quoted('DATADIR', get_option('prefix') / get_option('datadir'))
config_h = configure_file(
output: 'config.h',
configuration: config,
)
prefix = get_option('prefix')
includedir = join_paths(prefix, get_option('includedir'))
inc_dirs = include_directories('.', 'include')
subdir('completion')
subdir('data')
subdir('po')
subdir('include')
subdir('libmsi')
subdir('tools')
if host_machine.system() != 'windows' #FIXME
subdir('tests')
endif
|