diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2021-08-22 13:09:30 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2021-09-04 16:01:29 -0500 |
commit | d6622a1156929294b909d08273fd227c7d817bb9 (patch) | |
tree | 29df9fc3ecae9e72e467effc91f3985eafaccd82 /src/librc | |
parent | 92004a2ed65045b7ca79063dda8fc5b4ac761606 (diff) |
add meson build files
Closes #116.
Closes #171.
Closes #172.
Closes #175.
Diffstat (limited to 'src/librc')
-rw-r--r-- | src/librc/meson.build | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/librc/meson.build b/src/librc/meson.build new file mode 100644 index 00000000..4e560483 --- /dev/null +++ b/src/librc/meson.build @@ -0,0 +1,33 @@ +rc_h_conf_data = configuration_data() +if root_prefix == '/' + rc_h_conf_data.set('PREFIX', '') + else + rc_h_conf_data.set('PREFIX', root_prefix) + endif +rc_h_conf_data.set('LIB', libname) +rc_h_conf_data.set('LIBEXECDIR', rc_libexecdir) +rc_h_conf_data.set('LOCAL_PREFIX', local_prefix) +rc_h_conf_data.set('PKG_PREFIX', pkg_prefix) +rc_h_conf_data.set('SYSCONFDIR', get_option('sysconfdir')) + +librc_version = '1' + +librc_sources = [ + 'librc.c', + 'librc-daemon.c', + 'librc-depend.c', + 'librc-misc.c', + 'librc-stringlist.c', + ] + +rc_h = configure_file(input : 'rc.h.in', output : 'rc.h', + configuration : rc_h_conf_data) + +librc = library('rc', librc_sources, + include_directories : [incdir, einfo_incdir], + link_depends : 'rc.map', + version : librc_version, + install : true, + install_dir : libdir) + +install_headers(rc_h) |