Fetch the repository succeeded.
project(
'wf-config',
'cpp',
version: '0.9.0',
license: 'MIT',
meson_version: '>=0.47.0',
default_options: [
'cpp_std=c++17',
'warning_level=2',
'werror=false',
],
)
add_project_arguments(['-Wno-deprecated-declarations'], language: ['cpp'])
glm = dependency('glm')
evdev = dependency('libevdev')
libxml2 = dependency('libxml-2.0')
sources = [
'src/types.cpp',
'src/option.cpp',
'src/section.cpp',
'src/log.cpp',
'src/xml.cpp',
'src/config-manager.cpp',
'src/file.cpp',
'src/duration.cpp',
'src/compound-option.cpp',
]
wfconfig_inc = include_directories('include')
lib_wfconfig = library('wf-config',
sources,
dependencies: [evdev, glm, libxml2],
include_directories: wfconfig_inc,
install: true,
version: meson.project_version(),
soversion: '1')
pkgconfig = import('pkgconfig')
pkgconfig.generate(
libraries: lib_wfconfig,
version: meson.project_version(),
filebase: meson.project_name(),
name: meson.project_name(),
description: 'Dynamic file-based configuration library for Wayfire')
install_headers([], subdir: 'wayfire/config')
wfconfig = declare_dependency(link_with: lib_wfconfig,
include_directories: wfconfig_inc,
dependencies: glm)
# Install headers
subdir('include')
# Unit tests
doctest = dependency('doctest', required: get_option('tests'))
if doctest.found()
subdir('test')
endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。