summaryrefslogtreecommitdiffstats
path: root/meson.build
blob: 3a4b456808415743bf2ae4b00978a59a701d17dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
project(
    'djinterop',
    'cpp', 'c',
    version: '0.10.0',
    license: 'LGPL-3.0',
    default_options: ['cpp_std=c++17', 'default_library=both'])

add_global_arguments('-D_MODERN_SQLITE_BOOST_OPTIONAL_SUPPORT', language: 'cpp')

# libdl is "special", not like other dependencies
cpp_compiler = meson.get_compiler('cpp')
dl_dep = cpp_compiler.find_library('dl', required: false)

thread_dep = dependency('threads')
sqlite3_dep = dependency('sqlite3', version: '>=3.11.0', fallback: ['sqlite', 'sqlite_dep'])
zlib_dep = dependency('zlib', version: '>=1.2.8', fallback: ['zlib', 'zlib_dep'])
boost_dep = dependency('boost', version: '>=1.65') # Header-only libraries

inc = include_directories('include')

subdir('include')
subdir('src')
subdir('testdata')
subdir('test')

# TODO - add Doxygen support

pkg_mod = import('pkgconfig')
pkg_mod.generate(libraries : djinterop_lib,
                 version : meson.project_version(),
                 name : 'lib' + meson.project_name(),
                 filebase : meson.project_name(),
                 description : 'Provides access to database formats used ' +
                    'to store information about DJ record libraries')