meson: Fix after README->README.adoc rename
[ladish.git] / meson.build
blob723364d01f3cad455a78eac0a87f7770d2c6dc4b
1 project('ladish', 'c', 'cpp',
2   version : '1.2',
3   license : 'MIT')
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',
13     configuration : {
14         'GIT_VERSION' : '"@0@"'.format(git_version)
15     }
18 configure_file(output : 'config.h',
19   configuration : {
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),
26     '_GNU_SOURCE' : 1,
27   }
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')
38 deps = [
39   cc.find_library('dl'),
40   cc.find_library('util'),
41   dbus_dep,
42   jack_dep,
43   dependency('alsa'),
44   dependency('uuid'),
45   dependency('expat')
48 pkg_mod = import('pkgconfig')
50 subdir('common')
51 subdir('proxies')
52 subdir('cdbus')
53 subdir('alsapid')
55 # ladishd
56 subdir('daemon')
58 if get_option('liblash').enabled()
59   subdir('lash_compat/liblash')
60 endif
62 if get_option('pylash').enabled()
63   subdir('lash_compat/pylash')
64 endif
66 if get_option('gladish').enabled()
67   subdir('gui')
68   subdir('art')
69 endif
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',
77                     dependencies : deps,
78                     link_with : [commonlib, cdbuslib],
79                     install : true)
81 ladiconfd = executable('ladiconfd', 'conf.c',
82                        dependencies : deps,
83                        link_with : [commonlib, cdbuslib],
84                        install : true)