summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel@osg.samsung.com>2017-12-27 13:06:45 +0000
committerMarcel Hollerbach <marcel@osg.samsung.com>2018-03-27 17:50:01 +0100
commit3c3d11e2221c01427d92ee976d19931a32e1743c (patch)
tree29cc975d89de97cd13f9920dfc4ba9f7b0c163c2
parent2189080fce2d60940658c3a4d761e7aa2fbffb6c (diff)
meson: add ecore_audio
-rw-r--r--meson_options.txt6
-rw-r--r--src/lib/ecore_audio/meson.build88
2 files changed, 94 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt
index 3806440f4c..26a5e57704 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -68,3 +68,9 @@ option('avahi',
68 value : false, 68 value : false,
69 description : 'disable avahi support' 69 description : 'disable avahi support'
70) 70)
71
72option('pulseaudio',
73 type : 'boolean',
74 value : true,
75 description : 'pulseaudio support'
76)
diff --git a/src/lib/ecore_audio/meson.build b/src/lib/ecore_audio/meson.build
new file mode 100644
index 0000000000..7b3fdf6079
--- /dev/null
+++ b/src/lib/ecore_audio/meson.build
@@ -0,0 +1,88 @@
1pub_eo_files = [
2 'ecore_audio.eo',
3 'ecore_audio_in.eo',
4 'ecore_audio_out.eo',
5 'ecore_audio_in_sndfile.eo',
6 'ecore_audio_out_sndfile.eo',
7 'ecore_audio_out_pulse.eo',
8 'ecore_audio_in_tone.eo',
9 'ecore_audio_out_wasapi.eo'
10]
11
12foreach eo_file : pub_eo_files
13 pub_eo_file_target += custom_target('eolian_gen_' + eo_file,
14 input : eo_file,
15 output : [eo_file + '.h'],
16 install : true,
17 install_dir : dir_package_include,
18 command : [eolian_gen, '-I', meson.current_source_dir(), eolian_include_directories,
19 '-o', 'h:' + join_paths(meson.current_build_dir(), eo_file + '.h'),
20 '-o', 'c:' + join_paths(meson.current_build_dir(), eo_file + '.c'),
21 '-gch', '@INPUT@'])
22endforeach
23
24ecore_audio_deps = []
25
26ecore_audio_header_src = [
27 'Ecore_Audio.h',
28 'ecore_audio_obj.h',
29 'ecore_audio_obj_in.h',
30 'ecore_audio_obj_out.h',
31 'ecore_audio_obj_in_tone.h',
32 'ecore_audio_protected.h',
33 'ecore_audio_obj_out_pulse.h',
34 'ecore_audio_obj_in_sndfile.h',
35 'ecore_audio_obj_out_sndfile.h',
36 'ecore_audio_obj_out_wasapi.h'
37]
38
39ecore_audio_src = [
40 'ecore_audio.c',
41 'ecore_audio_obj.c',
42 'ecore_audio_obj_in.c',
43 'ecore_audio_obj_out.c',
44 'ecore_audio_obj_in_tone.c',
45 'ecore_audio_private.h'
46]
47
48ecore_audio_src += [
49 'ecore_audio_obj_in_sndfile.c',
50 'ecore_audio_obj_out_sndfile.c',
51 'ecore_audio_sndfile_vio.c'
52]
53
54ecore_audio_deps += dependency('sndfile')
55config_h.set('HAVE_SNDFILE', '1')
56
57if get_option('pulseaudio')
58 ecore_audio_deps += dependency('libpulse')
59
60 ecore_audio_src += [
61 'ecore_audio_pulse_ml.c',
62 'ecore_audio_obj_out_pulse.c'
63 ]
64
65 config_h.set('HAVE_PULSE', '1')
66endif
67
68ecore_audio_lib = library('ecore-audio',
69 ecore_audio_src, pub_eo_file_target,
70 dependencies: [ecore, m, ecore_audio_deps],
71 include_directories : config_dir,
72 install: true,
73)
74
75ecore_audio = declare_dependency(
76 include_directories: [include_directories('.')],
77 link_with: ecore_audio_lib,
78 sources : pub_eo_file_target,
79 dependencies: [eina, eo, efl],
80)
81
82install_data(pub_eo_files,
83 install_dir: join_paths(eolian_include_dir, package_version_name)
84)
85
86install_headers(ecore_audio_header_src,
87 install_dir : dir_package_include,
88) \ No newline at end of file