1 project('ladish', 'c', 'cpp',
3 license : 'GPL-2.0-only')
5 data_dir = get_option('prefix') / 'share' / 'ladish'
6 locale_dir = get_option('prefix') / 'share' / 'locale'
7 dbus_name_base = 'org.ladish'
8 dbus_base_path = '/org/ladish'
10 git_version = run_command(['git', 'rev-parse', '--short', 'HEAD']).stdout().strip()
12 configure_file(output : 'version.h',
14 'GIT_VERSION' : '"@0@"'.format(git_version)
18 configure_file(output : 'config.h',
20 'PACKAGE_VERSION' : '"@0@"'.format(meson.project_version()),
21 'BASE_NAME' : '"@0@"'.format(meson.project_name()),
22 'DATA_DIR' : '"@0@"'.format(data_dir),
23 'LOCALE_DIR' : '"@0@"'.format(locale_dir),
24 'DBUS_NAME_BASE' : '"@0@"'.format(dbus_name_base),
25 'DBUS_BASE_PATH' : '"@0@"'.format(dbus_base_path),
30 cc = meson.get_compiler('c')
32 inc = include_directories(meson.build_root().split('/')[-1])
33 lash_inc = include_directories('lash_compat/liblash')
35 dbus_dep = dependency('dbus-1')
36 jack_dep = dependency('jack')
39 cc.find_library('dl'),
40 cc.find_library('util'),
48 pkg_mod = import('pkgconfig')
58 if get_option('liblash').enabled()
59 subdir('lash_compat/liblash')
62 if get_option('pylash').enabled()
63 subdir('lash_compat/pylash')
66 if get_option('gladish').enabled()
71 install_data(['AUTHORS', 'README.adoc', 'NEWS'], install_dir : data_dir)
73 install_data('ladish_control',
74 install_dir : get_option('prefix') / 'bin')
76 jmcore = executable('jmcore', 'jmcore.c',
78 link_with : [commonlib, cdbuslib],
81 ladiconfd = executable('ladiconfd', 'conf.c',
83 link_with : [commonlib, cdbuslib],