Ticket #69539: patch-meson.build.diff

File patch-meson.build.diff, 1.8 KB (added by barracuda156, 7 months ago)

And a patch to enable CoreAudio (dylib part is redundant, ignore it)

  • meson.build

     
    150150cdata.set_quoted('PA_MACHINE_ID_FALLBACK', join_paths(localstatedir, 'lib', 'dbus', 'machine-id'))
    151151cdata.set_quoted('PA_SRCDIR', join_paths(meson.current_source_dir(), 'src'))
    152152cdata.set_quoted('PA_BUILDDIR', meson.current_build_dir())
    153 if host_machine.system() == 'windows'
    154   cdata.set_quoted('PA_SOEXT', '.dll')
    155 elif host_machine.system() == 'darwin'
    156   cdata.set_quoted('PA_SOEXT', '.dylib')
    157 else
    158   cdata.set_quoted('PA_SOEXT', '.so')
    159 endif
     153cdata.set_quoted('PA_SOEXT', '.dylib')
    160154cdata.set_quoted('PA_DEFAULT_CONFIG_DIR', pulsesysconfdir)
    161155cdata.set('PA_DEFAULT_CONFIG_DIR_UNQUOTED', pulsesysconfdir)
    162156cdata.set_quoted('PA_BINARY', join_paths(bindir, 'pulseaudio'))
     
    177171
    178172# Platform specifics
    179173# First some defaults to keep config file generation happy
    180 cdata.set('HAVE_COREAUDIO', 0)
    181174cdata.set('HAVE_WAVEOUT', 0)
    182175cdata.set('OS_IS_FREEBSD', 0)
    183176
     
    193186if host_machine.system() == 'darwin'
    194187  cdata.set('OS_IS_DARWIN', 1)
    195188  cdata.set('_DARWIN_C_SOURCE', '200112L') # Needed to get NSIG on Mac OS
     189  cdata.set('HAVE_COREAUDIO', 1)
    196190elif host_machine.system() == 'windows'
    197191  cdata.set('OS_IS_WIN32', 1)
    198192  cdata.set('HAVE_WINDOWS_H', 1)
     
    995989  'Enable Alsa:                   @0@'.format(alsa_dep.found()),
    996990  'Enable Jack:                   @0@'.format(jack_dep.found()),
    997991  'Enable LIRC:                   @0@'.format(lirc_dep.found()),
    998 #  'Enable CoreAudio:              @0@'.format(${ENABLE_COREAUDIO}),
     992  'Enable CoreAudio:              @0@'.format(cdata.has('ENABLE_COREAUDIO')),
    999993#  'Enable Solaris:                @0@'.format(${ENABLE_SOLARIS}),
    1000994#  'Enable WaveOut:                @0@'.format(${ENABLE_WAVEOUT}),
    1001995  'Enable GSettings:              @0@'.format(gio_dep.found()),