Like it was with the aututools
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
endif
if cc.has_header('sys/soundcard.h')
+ subdir('oss')
all_modules += [
- [ 'module-oss', [ 'oss/module-oss.c', 'oss/oss-util.c', 'oss/oss-util.h' ] ],
+ [ 'module-oss', 'oss/module-oss.c', [], [], [], liboss_util ],
]
endif
--- /dev/null
+liboss_util_sources = [
+ 'oss-util.c'
+]
+
+liboss_util_headers = [
+ 'oss-util.h'
+]
+
+liboss_util = shared_library('oss-util',
+ liboss_util_sources,
+ liboss_util_headers,
+ c_args : [pa_c_args, server_c_args],
+ include_directories : [configinc, topinc],
+ dependencies : [libpulse_dep, libpulsecommon_dep, libpulsecore_dep],
+ install : true,
+ install_dir : modlibexecdir,
+)