1configure_file( 2 input : 'version.h.in', 3 output : 'version.h', 4 configuration : cdata, 5 install_dir : join_paths(includedir, 'pulse'), 6) 7 8libpulse_sources = [ 9 'channelmap.c', 10 'context.c', 11 'direction.c', 12 'error.c', 13 'ext-device-manager.c', 14 'ext-device-restore.c', 15 'ext-stream-restore.c', 16 'format.c', 17 'internal.h', 18 'introspect.c', 19 'mainloop-api.c', 20 'mainloop-signal.c', 21 'mainloop.c', 22 'operation.c', 23 'proplist.c', 24 'rtclock.c', 25 'sample.c', 26 'scache.c', 27 'stream.c', 28 'subscribe.c', 29 'thread-mainloop.c', 30 'timeval.c', 31 'utf8.c', 32 'util.c', 33 'volume.c', 34 'xmalloc.c', 35] 36 37libpulse_headers = [ 38 'cdecl.h', 39 'channelmap.h', 40 'context.h', 41 'def.h', 42 'direction.h', 43 'error.h', 44 'ext-device-manager.h', 45 'ext-device-restore.h', 46 'ext-stream-restore.h', 47 'format.h', 48 'gccmacro.h', 49 'introspect.h', 50 'mainloop-api.h', 51 'mainloop-signal.h', 52 'mainloop.h', 53 'operation.h', 54 'proplist.h', 55 'pulseaudio.h', 56 'rtclock.h', 57 'sample.h', 58 'scache.h', 59 'stream.h', 60 'subscribe.h', 61 'thread-mainloop.h', 62 'timeval.h', 63 'utf8.h', 64 'util.h', 65 'volume.h', 66 'xmalloc.h', 67] 68 69if glib_dep.found() 70 libpulse_headers += 'glib-mainloop.h' 71endif 72 73versioning_link_args = '-Wl,-version-script=' + join_paths(meson.source_root(), 'src', 'map-file') 74 75libpulse = shared_library('pulse', 76 libpulse_sources, 77 libpulse_headers, 78 version : libpulse_version, 79 include_directories : [configinc, topinc], 80 c_args : [pa_c_args], 81 link_args : [nodelete_link_args, versioning_link_args], 82 install : true, 83 install_rpath : privlibdir, 84 dependencies : [libm_dep, thread_dep, libpulsecommon_dep, dbus_dep, dl_dep, iconv_dep, libintl_dep], 85 implicit_include_directories : false) 86 87libpulse_dep = declare_dependency(link_with: libpulse) 88 89install_headers( 90 libpulse_headers, 'simple.h', 91 subdir : 'pulse' 92) 93 94libpulse_simple = shared_library('pulse-simple', 95 'simple.c', 96 'simple.h', 97 version : libpulse_simple_version, 98 c_args : [pa_c_args], 99 link_args : [nodelete_link_args, versioning_link_args], 100 include_directories : [configinc, topinc], 101 dependencies : [libpulse_dep, libpulsecommon_dep], 102 install : true, 103 install_rpath : privlibdir, 104) 105 106libpulse_simple_dep = declare_dependency(link_with: libpulse_simple) 107 108if glib_dep.found() 109 libpulse_mainloop_glib = shared_library('pulse-mainloop-glib', 110 'glib-mainloop.c', 111 'glib-mainloop.h', 112 version : libpulse_mainloop_glib_version, 113 c_args : [pa_c_args], 114 link_args : [nodelete_link_args, versioning_link_args], 115 include_directories : [configinc, topinc], 116 dependencies : [libpulse_dep, libpulsecommon_dep, glib_dep], 117 install : true, 118 install_rpath : privlibdir, 119 ) 120 121 libpulse_mainloop_glib_dep = declare_dependency(link_with: libpulse_mainloop_glib) 122endif 123 124# Configuration files 125 126client_conf = configuration_data() 127client_conf.set('PA_BINARY', cdata.get_unquoted('PA_BINARY')) 128 129client_conf_file = configure_file( 130 input : 'client.conf.in', 131 output : 'client.conf', 132 configuration : client_conf, 133 install_dir : pulsesysconfdir, 134) 135