diff options
-rw-r--r-- | build/features.py | 9 | ||||
-rw-r--r-- | lib/libshout/SConscript | 6 |
2 files changed, 12 insertions, 3 deletions
diff --git a/build/features.py b/build/features.py index a956202ffb..7d5c76249f 100644 --- a/build/features.py +++ b/build/features.py @@ -859,6 +859,7 @@ class LiveBroadcasting(Feature): # Clone our main environment so we don't change any settings in the # Mixxx environment libshout_env = build.env.Clone() + libshout_env['LIB_OUTPUT'] = '#lib/libshout/lib' if build.toolchain_is_gnu: libshout_env.Append(CCFLAGS='-pthread') @@ -870,10 +871,14 @@ class LiveBroadcasting(Feature): env = libshout_env SCons.Export('env') SCons.Export('build') - env.SConscript(env.File('SConscript', libshout_dir)) + env.SConscript( + env.File('SConscript', libshout_dir), + variant_dir="lib/libshout2", + duplicate=0, + exports=['build']) build.env.Append(CPPPATH="#lib/libshout/include") - build.env.Append(LIBPATH=libshout_dir) + build.env.Append(LIBPATH='#lib/libshout/lib') build.env.Append(LIBS=['shout_mixxx', 'ogg', 'vorbis', 'theora', 'speex', 'ssl', 'crypto']) depends.Qt.uic(build)('preferences/dialog/dlgprefbroadcastdlg.ui') diff --git a/lib/libshout/SConscript b/lib/libshout/SConscript index 7502884e09..9d415a2d39 100644 --- a/lib/libshout/SConscript +++ b/lib/libshout/SConscript @@ -32,4 +32,8 @@ env.Append(CPPDEFINES='HAVE_CONFIG_H') env.Append(CPPPATH='src/common') env.Append(CPPPATH='include') -env.StaticLibrary(target='libshout_mixxx', source=libshout_sources) +libshout_mixxx = env.StaticLibrary(target='libshout_mixxx', source=libshout_sources) + +# Install the libraries if needed. +if 'LIB_OUTPUT' in env.Dictionary(): + env.Install('$LIB_OUTPUT', source=[libshout_mixxx]) |