spa: install in versioned directory

So that we can run old and new plugins side by side.
This commit is contained in:
Wim Taymans 2020-01-29 15:51:41 +01:00
parent 82e099ed37
commit 65caf8832c
16 changed files with 19 additions and 19 deletions

View file

@ -18,7 +18,7 @@ else
pipewire_version_nano = 0
endif
spaversion = '0.1'
spaversion = '0.2'
apiversion = '0.3'
soversion = 0
libversion = '@0@.@1@.0'.format(soversion, pipewire_version_minor.to_int() * 100 + pipewire_version_micro.to_int())
@ -32,7 +32,7 @@ pipewire_sysconfdir = join_paths(prefix, get_option('sysconfdir'))
pipewire_configdir = join_paths(pipewire_sysconfdir, 'pipewire')
modules_install_dir = join_paths(pipewire_libdir, 'pipewire-@0@'.format(apiversion))
spa_plugindir = join_paths(pipewire_libdir, 'spa')
spa_plugindir = join_paths(pipewire_libdir, 'spa-@0@'.format(spaversion))
gnome = import('gnome')
pkgconfig = import('pkgconfig')

View file

@ -12,4 +12,4 @@ spa_alsa = shared_library('spa-alsa',
include_directories : [spa_inc],
dependencies : [ alsa_dep, libudev_dep, mathlib, ],
install : true,
install_dir : '@0@/spa/alsa'.format(get_option('libdir')))
install_dir : join_paths(spa_plugindir, 'alsa'))

View file

@ -82,7 +82,7 @@ audioconvertlib = shared_library('spa-audioconvert',
dependencies : [ mathlib ],
link_with : simd_dependencies,
install : true,
install_dir : '@0@/spa/audioconvert/'.format(get_option('libdir')))
install_dir : join_paths(spa_plugindir, 'audioconvert'))
test_lib = static_library('test_lib',
['test-source.c' ],

View file

@ -53,4 +53,4 @@ audiomixerlib = shared_library('spa-audiomixer',
include_directories : [spa_inc],
dependencies : [ mathlib ],
install : true,
install_dir : '@0@/spa/audiomixer/'.format(get_option('libdir')))
install_dir : join_paths(spa_plugindir, 'audiomixer'))

View file

@ -5,4 +5,4 @@ audiotestsrclib = shared_library('spa-audiotestsrc',
include_directories : [spa_inc],
dependencies : [mathlib, ],
install : true,
install_dir : '@0@/spa/audiotestsrc'.format(get_option('libdir')))
install_dir : join_paths(spa_plugindir, 'audiotestsrc'))

View file

@ -14,4 +14,4 @@ bluez5lib = shared_library('spa-bluez5',
c_args : [ '-D_GNU_SOURCE' ],
dependencies : [ dbus_dep, sbc_dep, bluez_dep ],
install : true,
install_dir : '@0@/spa/bluez5'.format(get_option('libdir')))
install_dir : join_paths(spa_plugindir, 'bluez5'))

View file

@ -6,4 +6,4 @@ controllib = shared_library('spa-control',
include_directories : [spa_inc],
dependencies : [ mathlib ],
install : true,
install_dir : '@0@/spa/control/'.format(get_option('libdir')))
install_dir : join_paths(spa_plugindir, 'control'))

View file

@ -7,4 +7,4 @@ ffmpeglib = shared_library('spa-ffmpeg',
include_directories : [spa_inc],
dependencies : [ avcodec_dep, avformat_dep ],
install : true,
install_dir : '@0@/spa/ffmpeg'.format(get_option('libdir')))
install_dir : join_paths(spa_plugindir, 'fmmpeg'))

View file

@ -9,4 +9,4 @@ spa_jack = shared_library('spa-jack',
include_directories : [spa_inc],
dependencies : [ jack_dep, mathlib ],
install : true,
install_dir : '@0@/spa/jack'.format(get_option('libdir')))
install_dir : join_paths(spa_plugindir, 'jack'))

View file

@ -10,7 +10,7 @@ spa_support_lib = shared_library('spa-support',
include_directories : [ spa_inc ],
dependencies : [ pthread_lib, epoll_shim_dep ],
install : true,
install_dir : '@0@/spa/support'.format(get_option('libdir')))
install_dir : join_paths(spa_plugindir, 'support'))
if get_option('evl')
@ -27,7 +27,7 @@ if get_option('evl')
include_directories : [ spa_inc, evl_inc],
dependencies : [ pthread_lib, evl_lib],
install : true,
install_dir : '@0@/spa/support'.format(get_option('libdir')))
install_dir : join_paths(spa_plugindir, 'support'))
endif
spa_dbus_sources = ['dbus.c']
@ -37,4 +37,4 @@ spa_dbus_lib = shared_library('spa-dbus',
include_directories : [ spa_inc],
dependencies : [dbus_dep, ],
install : true,
install_dir : '@0@/spa/support'.format(get_option('libdir')))
install_dir : join_paths(spa_plugindir, 'support'))

View file

@ -5,4 +5,4 @@ testlib = shared_library('spa-test',
include_directories : [ spa_inc],
dependencies : [pthread_lib, ],
install : true,
install_dir : '@0@/spa/test'.format(get_option('libdir')))
install_dir : join_paths(spa_plugindir, 'test'))

View file

@ -8,4 +8,4 @@ v4l2lib = shared_library('spa-v4l2',
include_directories : [ spa_inc ],
dependencies : [ libudev_dep, ],
install : true,
install_dir : '@0@/spa/v4l2'.format(get_option('libdir')))
install_dir : join_paths(spa_plugindir, 'v4l2'))

View file

@ -11,4 +11,4 @@ videoconvertlib = shared_library('spa-videoconvert',
dependencies : [ mathlib ],
link_with : simd_dependencies,
install : true,
install_dir : '@0@/spa/videoconvert/'.format(get_option('libdir')))
install_dir : join_paths(spa_plugindir, 'videoconvert'))

View file

@ -5,4 +5,4 @@ videotestsrclib = shared_library('spa-videotestsrc',
include_directories : [ spa_inc],
dependencies : [pthread_lib, ],
install : true,
install_dir : '@0@/spa/videotestsrc'.format(get_option('libdir')))
install_dir : join_paths(spa_plugindir, 'videotestsrc'))

View file

@ -4,4 +4,4 @@ volumelib = shared_library('spa-volume',
volume_sources,
include_directories : [spa_inc],
install : true,
install_dir : '@0@/spa/volume'.format(get_option('libdir')))
install_dir : join_paths(spa_plugindir, 'volume'))

View file

@ -7,4 +7,4 @@ spa_vulkan = shared_library('spa-vulkan',
include_directories : [spa_inc],
dependencies : [ vulkan_dep, mathlib ],
install : true,
install_dir : '@0@/spa/vulkan'.format(get_option('libdir')))
install_dir : join_paths(spa_plugindir, 'vulkan'))