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':
compiler_flags.extend(('-arch', 'i386'))
linker_flags.extend(('-arch', 'i386'))
+ if opt.ppc:
+ compiler_flags.extend(('-arch', 'ppc'))
+ linker_flags.extend(('-arch', 'ppc'))
+
#
# warnings flags
#
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',
# help='Compile with support for Frontier Designs Tranzport (if libusb is available)')
opt.add_option('--generic', action='store_true', default=False, dest='generic',
help='Compile with -arch i386 (OS X ONLY)')
+ opt.add_option('--ppc', action='store_true', default=False, dest='ppc',
+ help='Compile with -arch ppc (OS X ONLY)')
opt.add_option('--versioned', action='store_true', default=False, dest='versioned',
help='Add revision information to executable name inside the build directory')
opt.add_option('--windows-vst', action='store_true', default=False, dest='windows_vst',
# 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'))
write_config_text('Translation', opts.nls)
# write_config_text('Tranzport', opts.tranzport)
write_config_text('Unit tests', conf.env['BUILD_TESTS'])
- write_config_text('Generic x86 CPU', opts.generic)
+ write_config_text('Mac i386 Architecture', opts.generic)
+ write_config_text('Mac ppc Architecture', opts.ppc)
write_config_text('Waves Backend', opts.build_wavesbackend)
write_config_text('Windows VST support', opts.windows_vst)
write_config_text('Wiimote support', conf.is_defined('BUILD_WIIMOTE'))