Robin Gareus
1801c33ee4
This fixes an issue with inconsistent startup scripts. LD_LIBRARY_PATH was incomplete since at least 5.0 (5.12 is broken, too) likewise ctrl surface path were outdated, etc. Prefer to use `gtk2_ardour/ardev_common.sh.in` as the central point to define environment variables for running Ardour from the source-tree. Other start scripts e.g. `vst/ardevst` already did this.
77 lines
2.2 KiB
Python
77 lines
2.2 KiB
Python
#!/usr/bin/env python
|
|
from waflib.extras import autowaf as autowaf
|
|
from waflib import Options, TaskGen
|
|
import waflib.Logs as Logs, waflib.Utils as Utils
|
|
import os
|
|
import shutil
|
|
import sys
|
|
import re
|
|
import time
|
|
from waflib.Task import Task
|
|
|
|
# Mandatory variables
|
|
top = '.'
|
|
out = 'build'
|
|
|
|
hardour_sources = [
|
|
'load_session.cc',
|
|
'misc.cc',
|
|
]
|
|
|
|
def options(opt):
|
|
autowaf.set_options(opt)
|
|
|
|
def configure(conf):
|
|
conf.load('misc')
|
|
conf.load('compiler_cxx')
|
|
autowaf.configure(conf)
|
|
|
|
|
|
def build(bld):
|
|
|
|
VERSION = "%s.%s" % (bld.env['MAJOR'], bld.env['MINOR'])
|
|
if bld.is_defined('WINDOWS_VST_SUPPORT') and bld.env['build_target'] != 'mingw':
|
|
return
|
|
|
|
# just the normal executable version of the GTK GUI
|
|
obj = bld (features = 'cxx c cxxprogram')
|
|
# this program does not do the whole hidden symbols thing
|
|
obj.cxxflags = [ '-fvisibility=default' ]
|
|
obj.source = hardour_sources
|
|
obj.target = 'hardour-' + str (bld.env['VERSION'])
|
|
obj.includes = ['.']
|
|
|
|
# at this point, "obj" refers to either the normal native executable
|
|
# OR the shared library built for use with wine on linux.
|
|
|
|
obj.use = [ 'libpbd',
|
|
'libardour',
|
|
'libardour_cp',
|
|
'libtemporal',
|
|
'libmidipp',
|
|
]
|
|
|
|
obj.defines = [
|
|
'VERSIONSTRING="' + str(bld.env['VERSION']) + '"',
|
|
'DATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"',
|
|
'CONFIG_DIR="' + os.path.normpath(bld.env['SYSCONFDIR']) + '"',
|
|
'LOCALEDIR="' + os.path.join(os.path.normpath(bld.env['DATADIR']), 'locale') + '"',
|
|
]
|
|
obj.install_path = bld.env['LIBDIR']
|
|
obj.uselib = 'UUID FLAC FONTCONFIG GLIBMM GTHREAD OGG CURL DL XML'
|
|
obj.uselib += ' FFTW3F'
|
|
obj.uselib += ' AUDIOUNITS OSX LO '
|
|
obj.uselib += ' TAGLIB '
|
|
|
|
if sys.platform == 'darwin':
|
|
obj.uselib += ' AUDIOUNITS OSX'
|
|
obj.use += ' libappleutility'
|
|
obj.includes += ['../libs']
|
|
|
|
if bld.env['build_target'] == 'mingw':
|
|
if bld.env['DEBUG'] == False:
|
|
obj.linkflags = ['-mwindows']
|
|
|
|
if bld.is_defined('NEED_INTL'):
|
|
obj.linkflags = ' -lintl'
|