Mac architecture selection
This commit is contained in:
30
meson.build
30
meson.build
@@ -97,6 +97,7 @@ feature_defines = []
|
|||||||
feature_libraries = []
|
feature_libraries = []
|
||||||
feature_sources = []
|
feature_sources = []
|
||||||
pkgconfig_requirements = []
|
pkgconfig_requirements = []
|
||||||
|
arch_flags = []
|
||||||
|
|
||||||
resampler = get_option('resampler')
|
resampler = get_option('resampler')
|
||||||
fft = get_option('fft')
|
fft = get_option('fft')
|
||||||
@@ -238,13 +239,26 @@ if system == 'darwin'
|
|||||||
vamp_symbol_args += [
|
vamp_symbol_args += [
|
||||||
'-exported_symbols_list', meson.source_root() / 'vamp/vamp-plugin.list'
|
'-exported_symbols_list', meson.source_root() / 'vamp/vamp-plugin.list'
|
||||||
]
|
]
|
||||||
|
if architecture == 'aarch64'
|
||||||
|
arch_flags = [
|
||||||
|
'-mmacosx-version-min=11',
|
||||||
|
'-arch', 'arm64'
|
||||||
|
]
|
||||||
|
elif architecture == 'x86_64'
|
||||||
|
arch_flags = [
|
||||||
|
'-mmacosx-version-min=10.11',
|
||||||
|
'-arch', 'x86_64',
|
||||||
|
]
|
||||||
|
endif # architecture
|
||||||
|
|
||||||
elif system == 'windows'
|
elif system == 'windows'
|
||||||
if meson.get_compiler('cpp').get_id() == 'msvc'
|
if meson.get_compiler('cpp').get_id() == 'msvc'
|
||||||
feature_defines += ['-D__MSVC__', '-DNOMINMAX', '-D_USE_MATH_DEFINES']
|
feature_defines += ['-D__MSVC__', '-DNOMINMAX', '-D_USE_MATH_DEFINES']
|
||||||
ladspa_symbol_args += ['-EXPORT:ladspa_descriptor']
|
ladspa_symbol_args += ['-EXPORT:ladspa_descriptor']
|
||||||
vamp_symbol_args += ['-EXPORT:vampGetPluginDescriptor']
|
vamp_symbol_args += ['-EXPORT:vampGetPluginDescriptor']
|
||||||
endif
|
endif
|
||||||
else
|
|
||||||
|
else # system not darwin or windows
|
||||||
feature_defines += ['-DUSE_PTHREADS', '-DHAVE_POSIX_MEMALIGN']
|
feature_defines += ['-DUSE_PTHREADS', '-DHAVE_POSIX_MEMALIGN']
|
||||||
ladspa_symbol_args += [
|
ladspa_symbol_args += [
|
||||||
'-Wl,--version-script=' + meson.source_root() / 'ladspa/ladspa-plugin.map'
|
'-Wl,--version-script=' + meson.source_root() / 'ladspa/ladspa-plugin.map'
|
||||||
@@ -252,7 +266,7 @@ else
|
|||||||
vamp_symbol_args += [
|
vamp_symbol_args += [
|
||||||
'-Wl,--version-script=' + meson.source_root() / 'vamp/vamp-plugin.map'
|
'-Wl,--version-script=' + meson.source_root() / 'vamp/vamp-plugin.map'
|
||||||
]
|
]
|
||||||
endif
|
endif # system
|
||||||
|
|
||||||
|
|
||||||
# And the build targets: Static and dynamic libraries, command-line
|
# And the build targets: Static and dynamic libraries, command-line
|
||||||
@@ -267,9 +281,11 @@ rubberband_static = static_library(
|
|||||||
general_include_dirs,
|
general_include_dirs,
|
||||||
],
|
],
|
||||||
cpp_args: [
|
cpp_args: [
|
||||||
|
arch_flags,
|
||||||
feature_defines,
|
feature_defines,
|
||||||
],
|
],
|
||||||
c_args: [
|
c_args: [
|
||||||
|
arch_flags,
|
||||||
feature_defines,
|
feature_defines,
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
@@ -290,6 +306,7 @@ if system != 'windows'
|
|||||||
'rubberband',
|
'rubberband',
|
||||||
objects: rubberband_static.extract_all_objects(),
|
objects: rubberband_static.extract_all_objects(),
|
||||||
link_args: [
|
link_args: [
|
||||||
|
arch_flags,
|
||||||
feature_libraries,
|
feature_libraries,
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
@@ -310,12 +327,15 @@ if have_ladspa
|
|||||||
general_include_dirs,
|
general_include_dirs,
|
||||||
],
|
],
|
||||||
cpp_args: [
|
cpp_args: [
|
||||||
|
arch_flags,
|
||||||
feature_defines,
|
feature_defines,
|
||||||
],
|
],
|
||||||
c_args: [
|
c_args: [
|
||||||
|
arch_flags,
|
||||||
feature_defines,
|
feature_defines,
|
||||||
],
|
],
|
||||||
link_args: [
|
link_args: [
|
||||||
|
arch_flags,
|
||||||
feature_libraries,
|
feature_libraries,
|
||||||
ladspa_symbol_args,
|
ladspa_symbol_args,
|
||||||
],
|
],
|
||||||
@@ -349,12 +369,15 @@ if vamp_dep.found()
|
|||||||
general_include_dirs,
|
general_include_dirs,
|
||||||
],
|
],
|
||||||
cpp_args: [
|
cpp_args: [
|
||||||
|
arch_flags,
|
||||||
feature_defines,
|
feature_defines,
|
||||||
],
|
],
|
||||||
c_args: [
|
c_args: [
|
||||||
|
arch_flags,
|
||||||
feature_defines,
|
feature_defines,
|
||||||
],
|
],
|
||||||
link_args: [
|
link_args: [
|
||||||
|
arch_flags,
|
||||||
feature_libraries,
|
feature_libraries,
|
||||||
vamp_symbol_args,
|
vamp_symbol_args,
|
||||||
],
|
],
|
||||||
@@ -385,12 +408,15 @@ if sndfile_dep.found()
|
|||||||
general_include_dirs,
|
general_include_dirs,
|
||||||
],
|
],
|
||||||
cpp_args: [
|
cpp_args: [
|
||||||
|
arch_flags,
|
||||||
feature_defines,
|
feature_defines,
|
||||||
],
|
],
|
||||||
c_args: [
|
c_args: [
|
||||||
|
arch_flags,
|
||||||
feature_defines,
|
feature_defines,
|
||||||
],
|
],
|
||||||
link_args: [
|
link_args: [
|
||||||
|
arch_flags,
|
||||||
feature_libraries,
|
feature_libraries,
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
|
|||||||
Reference in New Issue
Block a user