blob: 2681be7be5fd959d9b2465dba5a8a74465d89d72 [file] [log] [blame]
project('sdbusplus', 'cpp', 'c',
default_options: [
'buildtype=debugoptimized',
'cpp_std=c++17',
'werror=true',
],
version: '1.0.0',
)
libsystemd_pkg = dependency('libsystemd')
root_inc = include_directories('include')
libsdbusplus_src = files(
'src/exception.cpp',
'src/sdbus.cpp',
'src/server/transaction.cpp',
)
libsdbusplus = library(
'sdbusplus',
libsdbusplus_src,
include_directories: root_inc,
dependencies: libsystemd_pkg,
version: meson.project_version(),
install: true,
)
sdbusplus_dep = declare_dependency(
include_directories: root_inc,
link_with: libsdbusplus,
dependencies: libsystemd_pkg
)
subdir('tools')
pthread_dep = dependency('threads')
subdir('example')
subdir('test')
install_subdir(
'include/sdbusplus',
install_dir: get_option('includedir'),
strip_directory: false,
)
import('pkgconfig').generate(
libraries: libsdbusplus,
name: meson.project_name(),
version: meson.project_version(),
requires: libsystemd_pkg,
description: 'C++ bindings for sdbus',
)