mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
meson.build: add -D_GNU_SOURCE to the project arguments
This appends it to every compilation command so we can get rid of the c_args for (almost all) executables.
This commit is contained in:
parent
fee4d0eae1
commit
0054319d88
17 changed files with 5 additions and 42 deletions
|
|
@ -8,7 +8,6 @@ acp_sources = [
|
|||
]
|
||||
|
||||
acp_c_args = [
|
||||
'-D_GNU_SOURCE',
|
||||
'-DHAVE_ALSA_UCM',
|
||||
'-DHAVE_CONFIG_H',
|
||||
'-DHAVE_READLINK',
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ foreach a : test_apps
|
|||
include_directories : [ configinc, spa_inc ],
|
||||
link_with : [ audioconvert, test_lib, audioconvertlib ],
|
||||
install_rpath : spa_plugindir / 'audioconvert',
|
||||
c_args : [ simd_cargs, '-D_GNU_SOURCE' ],
|
||||
c_args : [ simd_cargs ],
|
||||
install : installed_tests_enabled,
|
||||
install_dir : installed_tests_execdir / 'audioconvert'),
|
||||
env : [
|
||||
|
|
@ -165,7 +165,7 @@ foreach a : benchmark_apps
|
|||
executable(a, a + '.c',
|
||||
dependencies : [dl_lib, pthread_lib, mathlib, ],
|
||||
include_directories : [ configinc, spa_inc ],
|
||||
c_args : [ simd_cargs, '-D_GNU_SOURCE' ],
|
||||
c_args : [ simd_cargs ],
|
||||
link_with : [ audioconvert, audioconvertlib ],
|
||||
install_rpath : spa_plugindir / 'audioconvert',
|
||||
install : installed_tests_enabled,
|
||||
|
|
@ -193,7 +193,7 @@ if sndfile_dep.found()
|
|||
]
|
||||
executable('spa-resample',
|
||||
sparesample_sources,
|
||||
c_args : [ simd_cargs, '-D_GNU_SOURCE' ],
|
||||
c_args : [ simd_cargs ],
|
||||
include_directories : [spa_inc ],
|
||||
link_with : [ audioconvert, test_lib ],
|
||||
dependencies : [sndfile_dep, mathlib],
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ bluez5_sources = ['plugin.c',
|
|||
'bluez5-device.c',
|
||||
'bluez5-dbus.c']
|
||||
|
||||
bluez5_args = [ '-D_GNU_SOURCE' ]
|
||||
bluez5_args = [ ]
|
||||
|
||||
if ldac_dep.found()
|
||||
bluez5_sources += [ 'a2dp-codec-ldac.c' ]
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ spa_support_sources = ['cpu.c',
|
|||
|
||||
spa_support_lib = shared_library('spa-support',
|
||||
spa_support_sources,
|
||||
c_args : [ '-D_GNU_SOURCE' ],
|
||||
include_directories : [ spa_inc ],
|
||||
dependencies : [ pthread_lib, epoll_shim_dep ],
|
||||
install : true,
|
||||
|
|
@ -25,7 +24,6 @@ if not get_option('evl').disabled()
|
|||
|
||||
spa_evl_lib = shared_library('spa-evl',
|
||||
spa_evl_sources,
|
||||
c_args : [ '-D_GNU_SOURCE' ],
|
||||
include_directories : [ spa_inc, evl_inc],
|
||||
dependencies : [ pthread_lib, evl_lib],
|
||||
install : true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue