Browse Source

add the --samplerate auto option and use pkg-config to find samplerate

(the AutoOption class takes care of defining env['SAMPLERATE'] and HAVE_SAMPLERATE)
tags/v1.9.11-RC1
Karl Lindén 10 years ago
parent
commit
7a5793d9e4
1 changed files with 2 additions and 8 deletions
  1. +2
    -8
      wscript

+ 2
- 8
wscript View File

@@ -429,6 +429,8 @@ def options(opt):
opus = add_auto_option(opt, 'opus', help='Build Opus netjack2')
opus.add_header('opus/opus_custom.h')
opus.add_package('opus', atleast_version='0.9.0')
samplerate = add_auto_option(opt, 'samplerate', help='Build with libsamplerate')
samplerate.add_package('samplerate')

# dbus options
opt.sub_options('dbus')
@@ -491,14 +493,6 @@ def configure(conf):
# configure all auto options
configure_auto_options(conf)

conf.check_cc(header_name='samplerate.h', define_name="HAVE_SAMPLERATE")

if conf.is_defined('HAVE_SAMPLERATE'):
conf.env['LIB_SAMPLERATE'] = ['samplerate']
conf.env['SAMPLERATE'] = True
else:
conf.env['SAMPLERATE'] = False

conf.sub_config('common')
if conf.env['IS_LINUX']:
conf.sub_config('linux')


Loading…
Cancel
Save