cxx_flags.append('-fno-omit-frame-pointer')
linker_flags.append('-fsanitize=address')
- if is_clang and platform == "darwin":
- # Silence warnings about the non-existing osx clang compiler flags
- # -compatibility_version and -current_version. These are Waf
- # generated and not needed with clang
- cxx_flags.append("-Qunused-arguments")
-
if opt.gprofile:
debug_flags = [ '-pg' ]
# Prevents visibility issues in standard headers
conf.define("_DARWIN_C_SOURCE", 1)
+ if (is_clang and platform == "darwin") or conf.env['build_host'] in ['mavericks', 'yosemite']:
+ # Silence warnings about the non-existing osx clang compiler flags
+ # -compatibility_version and -current_version. These are Waf
+ # generated and not needed with clang
+ c_flags.append("-Qunused-arguments")
+ cxx_flags.append("-Qunused-arguments")
+
if ((re.search ("i[0-9]86", cpu) != None) or (re.search ("x86_64", cpu) != None)) and conf.env['build_target'] != 'none':
help='Build a version suitable for distribution as a zero-cost binary')
opt.add_option('--gprofile', action='store_true', default=False, dest='gprofile',
help='Compile for use with gprofile')
+ opt.add_option('--libjack', type='string', default="auto", dest='libjack_link',
+ help='libjack link mode [auto|link|weak]')
opt.add_option('--internal-shared-libs', action='store_true', default=True, dest='internal_shared_libs',
help='Build internal libs as shared libraries')
opt.add_option('--internal-static-libs', action='store_false', dest='internal_shared_libs',
# TODO put this only where it is needed
conf.env.append_value('LIB', 'regex')
+ # work around GdkDrawable BitBlt performance issue on windows
+ # see http://gareus.org/wiki/ardour_windows_gdk_and_cairo
+ conf.env.append_value('CFLAGS', '-DUSE_CAIRO_IMAGE_SURFACE')
+ conf.env.append_value('CXXFLAGS', '-DUSE_CAIRO_IMAGE_SURFACE')
+
# Tell everyone that this is a waf build
conf.env.append_value('CFLAGS', '-DWAF_BUILD')
write_config_text('FLAC', conf.is_defined('HAVE_FLAC'))
write_config_text('FPU optimization', opts.fpu_optimization)
write_config_text('Freedesktop files', opts.freedesktop)
+ write_config_text('Libjack linking', conf.env['libjack_link'])
write_config_text('LV2 UI embedding', conf.is_defined('HAVE_SUIL'))
write_config_text('LV2 support', conf.is_defined('LV2_SUPPORT'))
write_config_text('LXVST support', conf.is_defined('LXVST_SUPPORT'))