-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
39 lines (31 loc) · 1.4 KB
/
meson.build
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
36
37
38
39
project('FakeMicWavPlayer', 'cpp', default_options : ['cpp_std=c++17'])
libfake = dependency('fake', required: true)
argparse = dependency('argparse', required: get_option('USE_SYSTEM_ARGPARSE'))
if not argparse.found()
cmake = import('cmake')
argparse_proj = cmake.subproject('argparse')
argparse = argparse_proj.dependency('argparse')
endif
OggPlayer_proj = subproject('OggPlayer')
libOggPlayer_dep = OggPlayer_proj.get_variable('libOggPlayer_dep')
# libOggPlayer = OggPlayer_proj.get_variable('libOggPlayer')
lib_inc = include_directories('include')
lib_src = [ 'FakeMicWavPlayerLib.cpp' ]
libFakeMicWavPlayer = shared_library('FakeMicWavPlayer', lib_src,
include_directories : lib_inc,
dependencies : [ libfake, libOggPlayer_dep ],
install : true)
libFakeMicWavPlayer_dep = declare_dependency(
link_with: libFakeMicWavPlayer,
include_directories: lib_inc)
install_headers('include/FakeMicWavPlayerLib.h',
install_dir: 'include/FakeMicWavPlayer')
executable('FakeMicWavPlayer', 'main.cpp', 'FakeMicWavPlayerLib.cpp',
dependencies : [ libfake, libFakeMicWavPlayer_dep, libOggPlayer_dep, argparse ],
install : true)
install_data('pkg-config/fakemicwavplayer.pc',
install_dir: get_option('libdir')+'/pkgconfig')
install_data('pkg-config/fakemicwavplayer.pc',
install_dir: get_option('datadir')+'/pkgconfig')
install_data('docs/FakeMicWavPlayer.1',
install_dir: get_option('datadir')+'/man/man1')