blob: 24516e9b7d1137f11c58ec77955ab978696c0c8b [file] [log] [blame]
Patrick Williams98d71082020-05-15 18:55:16 -05001project('sdbusplus', 'cpp',
2 default_options: [
3 'cpp_std=c++17',
4 'werror=true',
5 ],
6 version: '1.0.0',
7)
8
9libsystemd_pkg = dependency('libsystemd')
10
11libsdbusplus_src = files(
12 'sdbusplus/exception.cpp',
13 'sdbusplus/sdbus.cpp',
14 'sdbusplus/server/transaction.cpp',
15)
16
17libsdbusplus = shared_library(
18 'sdbusplus',
19 libsdbusplus_src,
20 dependencies: libsystemd_pkg,
21 version: meson.project_version(),
22 install: true,
23)
24
25install_subdir(
26 'sdbusplus',
27 install_dir: get_option('includedir'),
28 strip_directory: false,
29 # TODO (stwcx): Once we remove autotools, we can move these files
30 # out of the same directory as the headers and remove this.
31 exclude_files: [ 'exception.cpp', 'sdbus.cpp', 'server/transaction.cpp' ],
32)
33
34import('pkgconfig').generate(
35 libraries: libsdbusplus,
36 name: meson.project_name(),
37 version: meson.project_version(),
38 description: 'C++ bindings for sdbus',
39)