Unify build-system customization (Ardour/Mixbus)
This commit is contained in:
parent
25eb8ca593
commit
e0e5ee0b44
@ -832,6 +832,9 @@ def build(bld):
|
|||||||
else:
|
else:
|
||||||
menus_argv = [ '-E', '-P' ]
|
menus_argv = [ '-E', '-P' ]
|
||||||
|
|
||||||
|
if bld.is_defined('MIXBUS'):
|
||||||
|
menus_argv += [ '-DMIXBUS' ]
|
||||||
|
|
||||||
if bld.is_defined('PTFORMAT'):
|
if bld.is_defined('PTFORMAT'):
|
||||||
menus_argv += [ '-DPTFORMAT' ]
|
menus_argv += [ '-DPTFORMAT' ]
|
||||||
|
|
||||||
@ -843,7 +846,7 @@ def build(bld):
|
|||||||
obj.command_is_external = True
|
obj.command_is_external = True
|
||||||
obj.no_inputs = True
|
obj.no_inputs = True
|
||||||
obj.argv = menus_argv
|
obj.argv = menus_argv
|
||||||
obj.dep_vars = ['PTFORMAT', 'GTKOSX', 'WINDOWS']
|
obj.dep_vars = ['PTFORMAT', 'MIXBUS', 'WINDOWS']
|
||||||
obj.stdin = program + '.menus.in'
|
obj.stdin = program + '.menus.in'
|
||||||
obj.stdout = program + '.menus'
|
obj.stdout = program + '.menus'
|
||||||
bld.install_files (bld.env['CONFDIR'], program + '.menus')
|
bld.install_files (bld.env['CONFDIR'], program + '.menus')
|
||||||
|
@ -187,6 +187,7 @@ Backends=$APPLIB/backends
|
|||||||
Themes=$Shared/themes
|
Themes=$Shared/themes
|
||||||
Templates=$Shared/templates
|
Templates=$Shared/templates
|
||||||
PluginMetadata=$Shared/plugin_metadata
|
PluginMetadata=$Shared/plugin_metadata
|
||||||
|
MixerSettings=$Shared/mixer_settings
|
||||||
ExportFormats=$Shared/export
|
ExportFormats=$Shared/export
|
||||||
Locale=$Shared/locale
|
Locale=$Shared/locale
|
||||||
MidiMaps=$Shared/midi_maps
|
MidiMaps=$Shared/midi_maps
|
||||||
@ -398,6 +399,12 @@ for x in $BUILD_ROOT/../osc/*.preset ; do
|
|||||||
cp "$x" $OSC
|
cp "$x" $OSC
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Mixbus MixerSettings (if any)
|
||||||
|
for x in $BUILD_ROOT/../mixer_settings/*.lua ; do
|
||||||
|
mkdir -p $MixerSettings # create on demand
|
||||||
|
cp "$x" $MixerSettings
|
||||||
|
done
|
||||||
|
|
||||||
#Session templates
|
#Session templates
|
||||||
cp -av $BUILD_ROOT/../templates $Templates
|
cp -av $BUILD_ROOT/../templates $Templates
|
||||||
|
|
||||||
|
@ -140,6 +140,7 @@ Panners=$Frameworks/panners
|
|||||||
Backends=$Frameworks/backends
|
Backends=$Frameworks/backends
|
||||||
MidiMaps=$Shared/midi_maps
|
MidiMaps=$Shared/midi_maps
|
||||||
PluginMetadata=$Shared/plugin_metadata
|
PluginMetadata=$Shared/plugin_metadata
|
||||||
|
MixerSettings=$Shared/mixer_settings
|
||||||
ExportFormats=$Shared/export
|
ExportFormats=$Shared/export
|
||||||
Templates=$Shared/templates
|
Templates=$Shared/templates
|
||||||
PatchFiles=$Shared/patchfiles
|
PatchFiles=$Shared/patchfiles
|
||||||
@ -385,6 +386,12 @@ for x in $BUILD_ROOT/../osc/*.preset ; do
|
|||||||
cp "$x" $OSC
|
cp "$x" $OSC
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Mixbus MixerSettings (if any)
|
||||||
|
for x in $BUILD_ROOT/../mixer_settings/*.lua ; do
|
||||||
|
mkdir -p $MixerSettings # create on demand
|
||||||
|
cp "$x" $MixerSettings
|
||||||
|
done
|
||||||
|
|
||||||
# VAMP plugins that we use
|
# VAMP plugins that we use
|
||||||
cp $BUILD_ROOT/libs/vamp-plugins/libardourvampplugins.dylib $Frameworks
|
cp $BUILD_ROOT/libs/vamp-plugins/libardourvampplugins.dylib $Frameworks
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ fi
|
|||||||
export SRCCACHE
|
export SRCCACHE
|
||||||
|
|
||||||
if [ "$(id -u)" = "0" ]; then
|
if [ "$(id -u)" = "0" ]; then
|
||||||
apt-get -y install nsis curl
|
apt-get -y install nsis curl wget
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
8
wscript
8
wscript
@ -671,11 +671,12 @@ int main() { return 0; }''',
|
|||||||
'-DCANVAS_COMPATIBILITY', '-DCANVAS_DEBUG'))
|
'-DCANVAS_COMPATIBILITY', '-DCANVAS_DEBUG'))
|
||||||
|
|
||||||
# use sparingly, prefer runtime profile
|
# use sparingly, prefer runtime profile
|
||||||
if Options.options.program_name.lower() == "mixbus":
|
if Options.options.program_name.lower().startswith('mixbus'):
|
||||||
compiler_flags.append ('-DMIXBUS')
|
compiler_flags.append ('-DMIXBUS')
|
||||||
|
conf.define('MIXBUS', 1)
|
||||||
|
|
||||||
if Options.options.program_name.lower() == "mixbus32c":
|
if Options.options.program_name.lower() == "mixbus32c":
|
||||||
compiler_flags.append ('-DMIXBUS')
|
conf.define('MIXBUS32C', 1)
|
||||||
compiler_flags.append ('-DMIXBUS32C')
|
compiler_flags.append ('-DMIXBUS32C')
|
||||||
|
|
||||||
compiler_flags.append ('-DPROGRAM_NAME="' + Options.options.program_name + '"')
|
compiler_flags.append ('-DPROGRAM_NAME="' + Options.options.program_name + '"')
|
||||||
@ -1091,6 +1092,9 @@ int main () { int x = SFC_RF64_AUTO_DOWNGRADE; return 0; }
|
|||||||
conf.check_cc(function_name='htonl', header_name='winsock2.h', lib='ws2_32')
|
conf.check_cc(function_name='htonl', header_name='winsock2.h', lib='ws2_32')
|
||||||
conf.env.append_value('LIB', 'ws2_32')
|
conf.env.append_value('LIB', 'ws2_32')
|
||||||
conf.env.append_value('LIB', 'winmm')
|
conf.env.append_value('LIB', 'winmm')
|
||||||
|
if Options.options.program_name.lower().startswith('mixbus'):
|
||||||
|
conf.env.append_value('LIB', 'ole32')
|
||||||
|
conf.env.append_value('LIB', 'uuid')
|
||||||
# needed for mingw64 packages, not harmful on normal mingw build
|
# needed for mingw64 packages, not harmful on normal mingw build
|
||||||
conf.env.append_value('LIB', 'intl')
|
conf.env.append_value('LIB', 'intl')
|
||||||
conf.check_cc(function_name='regcomp', header_name='regex.h',
|
conf.check_cc(function_name='regcomp', header_name='regex.h',
|
||||||
|
Loading…
Reference in New Issue
Block a user