mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
spa: support: use feature macro from config.h
Fixes 8166b9c580 ("spa/support: implement RISCV V CPU detection")
This commit is contained in:
parent
ab2907c699
commit
86004ba3f1
2 changed files with 4 additions and 9 deletions
|
|
@ -2,6 +2,8 @@
|
||||||
/* SPDX-FileCopyrightText: Copyright © 2018 Wim Taymans */
|
/* SPDX-FileCopyrightText: Copyright © 2018 Wim Taymans */
|
||||||
/* SPDX-License-Identifier: MIT */
|
/* SPDX-License-Identifier: MIT */
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
||||||
|
|
@ -14,17 +14,10 @@ if have_sse
|
||||||
simd_cargs += [sse_args, '-DHAVE_SSE']
|
simd_cargs += [sse_args, '-DHAVE_SSE']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
header_cargs = []
|
|
||||||
|
|
||||||
if host_machine.cpu_family() == 'riscv64'
|
|
||||||
if cdata.get('HAVE_SYS_AUXV_H')
|
|
||||||
header_cargs += ['-DHAVE_SYS_AUXV_H']
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
spa_support_lib = shared_library('spa-support',
|
spa_support_lib = shared_library('spa-support',
|
||||||
spa_support_sources,
|
spa_support_sources,
|
||||||
c_args : [ simd_cargs, header_cargs ],
|
c_args : [ simd_cargs ],
|
||||||
|
include_directories : [ configinc ],
|
||||||
dependencies : [ spa_dep, pthread_lib, epoll_shim_dep, mathlib ],
|
dependencies : [ spa_dep, pthread_lib, epoll_shim_dep, mathlib ],
|
||||||
install : true,
|
install : true,
|
||||||
install_dir : spa_plugindir / 'support')
|
install_dir : spa_plugindir / 'support')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue