diff options
author | Arnaud Rebillout <arnaud.rebillout@collabora.com> | 2018-10-22 11:57:26 +0700 |
---|---|---|
committer | Arun Raghavan <arun@arunraghavan.net> | 2018-12-27 17:25:56 +0530 |
commit | dec21f363a3f35f0e1e1e163aa1a11157ea38bfe (patch) | |
tree | d863d937d6dc84e996b3150cd72b195392d14d22 | |
parent | de44c8885d897157b1a3f51eb3fc701df2a1dde0 (diff) | |
download | pulseaudio-dec21f363a3f35f0e1e1e163aa1a11157ea38bfe.tar.gz |
meson: Add some platform specific configuration data
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
-rw-r--r-- | meson.build | 16 | ||||
-rw-r--r-- | src/daemon/meson.build | 1 |
2 files changed, 16 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 7e324555..52dbd8cf 100644 --- a/meson.build +++ b/meson.build @@ -84,6 +84,22 @@ cdata.set_quoted('PA_ALSA_PATHS_DIR', join_paths(datadir, 'pulseaudio', 'alsa-mi cdata.set_quoted('PA_ALSA_PROFILE_SETS_DIR', join_paths(datadir, 'pulseaudio', 'alsa-mixer', 'profile-sets')) cdata.set_quoted('DESKTOPFILEDIR', join_paths(datadir, 'applications')) +# Platform specifics +# FIXME: This was not tested. Maybe some flags should better be CFLAGS, +# rather than ending up in the config.h file? +if host_machine.system() == 'darwin' + cdata.set('OS_IS_DARWIN', 1) + cdata.set('_DARWIN_C_SOURCE', '200112L') # Needed to get NSIG on Mac OS +elif host_machine.system() == 'windows' + cdata.set('OS_IS_WIN32', 1) + cdata.set('WIN32_LEAN_AND_MEAN', 1) # Needed to avoid including unnecessary headers on Windows +#elif host_machine.system() == 'solaris' +# # Apparently meson has no solaris support? +# # Needed to get declarations for msg_control and msg_controllen on Solaris +# cdata.set('_XOPEN_SOURCE', 600) +# cdata.set('__EXTENSIONS__', 1) +endif + # Headers check_headers = [ diff --git a/src/daemon/meson.build b/src/daemon/meson.build index fa9e24cc..130c67d0 100644 --- a/src/daemon/meson.build +++ b/src/daemon/meson.build @@ -73,7 +73,6 @@ default_conf = configuration_data() default_conf.merge_from(cdata) default_conf.set('PA_BINARY', cdata.get_unquoted('PA_BINARY')) default_conf.set('PA_SOEXT', cdata.get_unquoted('PA_SOEXT')) -# TODO: OS_IS_WIN32 default_template_file = configure_file( input : 'default.pa.in', |