Browse Source

meson: add a global define to notify process.c is compiled

pull/200/head
Steve Lhomme 2 months ago
parent
commit
c4d2fd043a
  1. 3
      config.h.meson
  2. 3
      src/meson.build

3
config.h.meson

@ -443,6 +443,9 @@
/* Define to 1 if you have the `vasprintf' function. */
#mesondefine HAVE_VASPRINTF
/* Define to 1 if vlc_process_Spawn() is usable. */
#mesondefine HAVE_VLC_PROCESS_SPAWN
/* Define to 1 if you have the `vmsplice' function. */
#mesondefine HAVE_VMSPLICE

3
src/meson.build

@ -334,12 +334,14 @@ if host_system == 'darwin'
'posix/wait.c',
]
if have_osx
cdata.set('HAVE_VLC_PROCESS_SPAWN', 1)
libvlccore_sources += [
'posix/spawn.c',
'posix/process.c',
]
endif
elif host_system == 'windows'
cdata.set('HAVE_VLC_PROCESS_SPAWN', 1)
libvlccore_sources += [
'win32/dirs-common.c',
'win32/error.c',
@ -385,6 +387,7 @@ else
]
if host_system != 'android'
cdata.set('HAVE_VLC_PROCESS_SPAWN', 1)
libvlccore_sources += [
'posix/dirs.c',
'posix/error.c',

Loading…
Cancel
Save