mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-15 08:56:38 -05:00
audioconvert: handle more optimizations
Compile an optimized library for the given CPU with the right flags, then link it with the main library.
This commit is contained in:
parent
eaffb25cc2
commit
c8d3d475bb
12 changed files with 271 additions and 141 deletions
10
meson.build
10
meson.build
|
|
@ -50,6 +50,16 @@ if cc.get_id() == 'gcc'
|
|||
language : 'c')
|
||||
endif
|
||||
|
||||
sse_args = '-msse'
|
||||
sse2_args = '-msse2'
|
||||
ssse3_args = '-mssse3'
|
||||
sse41_args = '-msse4.1'
|
||||
|
||||
have_sse = cc.has_argument(sse_args)
|
||||
have_sse2 = cc.has_argument(sse2_args)
|
||||
have_ssse3 = cc.has_argument(ssse3_args)
|
||||
have_sse41 = cc.has_argument(sse41_args)
|
||||
|
||||
cdata = configuration_data()
|
||||
cdata.set('PIPEWIRE_VERSION_MAJOR', pipewire_version_major)
|
||||
cdata.set('PIPEWIRE_VERSION_MINOR', pipewire_version_minor)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue