evl: add build option
This commit is contained in:
parent
ffaa365bef
commit
cbe3a88397
|
@ -62,6 +62,10 @@ option('support',
|
|||
description: 'Enable support spa plugin integration',
|
||||
type: 'boolean',
|
||||
value: true)
|
||||
option('evl',
|
||||
description: 'Enable EVL support spa plugin integration',
|
||||
type: 'boolean',
|
||||
value: false)
|
||||
option('test',
|
||||
description: 'Enable test spa plugin integration',
|
||||
type: 'boolean',
|
||||
|
|
|
@ -7,11 +7,29 @@ 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,
|
||||
include_directories : [ spa_inc ],
|
||||
dependencies : [ pthread_lib ],
|
||||
install : true,
|
||||
install_dir : '@0@/spa/support'.format(get_option('libdir')))
|
||||
|
||||
|
||||
if get_option('evl')
|
||||
evl_inc = include_directories('/usr/evl/include')
|
||||
evl_lib = cc.find_library('evl',
|
||||
dirs: ['/usr/evl/lib/'])
|
||||
|
||||
spa_evl_sources = ['evl-system.c',
|
||||
'evl-plugin.c']
|
||||
|
||||
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,
|
||||
install_dir : '@0@/spa/support'.format(get_option('libdir')))
|
||||
endif
|
||||
|
||||
spa_dbus_sources = ['dbus.c']
|
||||
|
||||
spa_dbus_lib = shared_library('spa-dbus',
|
||||
|
|
Loading…
Reference in New Issue