clang_darwin_dict = compiler_flags_dictionaries['clang'].copy();
clang_darwin_dict['cxx-strict'] = [ '-ansi', '-Wnon-virtual-dtor', '-Woverloaded-virtual', ]
-clang_darwin_dict['full-optimization'] = [ '-O3', '-ffast-math', '-fstrength-reduce' ]
+clang_darwin_dict['full-optimization'] = [ '-O3', '-ffast-math']
compiler_flags_dictionaries['clang-darwin'] = clang_darwin_dict;
def fetch_git_revision ():
children = [
# optionally external libraries
- 'libs/qm-dsp',
- 'libs/vamp-plugins',
- 'libs/libltc',
'libs/fluidsynth',
+ 'libs/hidapi',
+ 'libs/libltc',
'libs/lua',
'libs/ptformat',
+ 'libs/qm-dsp',
+ 'libs/vamp-plugins',
# core ardour libraries
'libs/pbd',
'libs/midi++2',
help='Turn on PT session import option')
opt.add_option('--no-threaded-waveviews', action='store_true', default=False, dest='no_threaded_waveviews',
help='Disable threaded waveview rendering')
+ opt.add_option(
+ '--qm-dsp-include', type='string', action='store',
+ dest='qm_dsp_include', default='/usr/include/qm-dsp',
+ help='directory where the header files of qm-dsp can be found')
for i in children:
opt.recurse(i)
if Options.options.use_external_libs:
conf.define('USE_EXTERNAL_LIBS', 1)
+ conf.env.append_value(
+ 'CXXFLAGS', '-I' + Options.options.qm_dsp_include)
if Options.options.boost_include != '':
conf.env.append_value('CXXFLAGS', '-I' + Options.options.boost_include)
conf.env.append_value('CFLAGS', '-DCOMPILER_MINGW')
conf.env.append_value('CXXFLAGS', '-DPLATFORM_WINDOWS')
conf.env.append_value('CXXFLAGS', '-DCOMPILER_MINGW')
+ if conf.options.cxx11:
+ conf.env.append_value('CFLAGS', '-D_USE_MATH_DEFINES')
+ conf.env.append_value('CXXFLAGS', '-D_USE_MATH_DEFINES')
+ conf.env.append_value('CFLAGS', '-DWIN32')
+ conf.env.append_value('CXXFLAGS', '-DWIN32')
conf.env.append_value('LIB', 'pthread')
# needed for at least libsmf
conf.check_cc(function_name='htonl', header_name='winsock2.h', lib='ws2_32')