apple: build static library
Move build rules from src/output/plugins/meson.build
This commit is contained in:
parent
b1fba8d3d7
commit
756f0b8027
|
@ -319,6 +319,8 @@ subdir('src/thread')
|
||||||
subdir('src/net')
|
subdir('src/net')
|
||||||
subdir('src/event')
|
subdir('src/event')
|
||||||
|
|
||||||
|
subdir('src/apple')
|
||||||
|
|
||||||
subdir('src/lib/dbus')
|
subdir('src/lib/dbus')
|
||||||
subdir('src/lib/icu')
|
subdir('src/lib/icu')
|
||||||
subdir('src/lib/smbclient')
|
subdir('src/lib/smbclient')
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
if not is_darwin
|
||||||
|
apple_dep = dependency('', required: false)
|
||||||
|
subdir_done()
|
||||||
|
endif
|
||||||
|
|
||||||
|
audiounit_dep = declare_dependency(
|
||||||
|
link_args: ['-framework', 'AudioUnit', '-framework', 'CoreAudio', '-framework', 'CoreServices'],
|
||||||
|
dependencies: [
|
||||||
|
boost_dep,
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
apple = static_library(
|
||||||
|
'apple',
|
||||||
|
'Throw.cxx',
|
||||||
|
include_directories: inc,
|
||||||
|
dependencies: [
|
||||||
|
audiounit_dep,
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
apple_dep = declare_dependency(
|
||||||
|
link_with: apple,
|
||||||
|
dependencies: [
|
||||||
|
audiounit_dep,
|
||||||
|
],
|
||||||
|
)
|
|
@ -74,18 +74,7 @@ endif
|
||||||
if is_darwin
|
if is_darwin
|
||||||
output_plugins_sources += [
|
output_plugins_sources += [
|
||||||
'OSXOutputPlugin.cxx',
|
'OSXOutputPlugin.cxx',
|
||||||
'../../apple/Throw.cxx',
|
|
||||||
]
|
]
|
||||||
audiounit_dep = declare_dependency(
|
|
||||||
link_args: [
|
|
||||||
'-framework', 'AudioUnit', '-framework', 'CoreAudio', '-framework', 'CoreServices',
|
|
||||||
],
|
|
||||||
dependencies: [
|
|
||||||
boost_dep,
|
|
||||||
],
|
|
||||||
)
|
|
||||||
else
|
|
||||||
audiounit_dep = dependency('', required: false)
|
|
||||||
endif
|
endif
|
||||||
conf.set('HAVE_OSX', is_darwin)
|
conf.set('HAVE_OSX', is_darwin)
|
||||||
|
|
||||||
|
@ -148,7 +137,7 @@ output_plugins = static_library(
|
||||||
include_directories: inc,
|
include_directories: inc,
|
||||||
dependencies: [
|
dependencies: [
|
||||||
alsa_dep,
|
alsa_dep,
|
||||||
audiounit_dep,
|
apple_dep,
|
||||||
libao_dep,
|
libao_dep,
|
||||||
libjack_dep,
|
libjack_dep,
|
||||||
pulse_dep,
|
pulse_dep,
|
||||||
|
|
Loading…
Reference in New Issue