[PATCH xserver 05/10] meson: Make APM support optional

Adam Jackson ajax at nwnk.net
Mon Feb 19 18:45:06 UTC 2018


On Sun, 2018-02-18 at 10:58 +0100, Laurent Carlier wrote:

> diff --git a/hw/xfree86/os-support/meson.build b/hw/xfree86/os-support/meson.build
> index dfb613e..683aca0 100644
> --- a/hw/xfree86/os-support/meson.build
> +++ b/hw/xfree86/os-support/meson.build
> @@ -35,6 +35,9 @@ if host_machine.system() == 'linux'
>      # this is ugly because the code is also
>      if build_apm or build_acpi
>          srcs_xorg_os_support += 'linux/lnx_apm.c'
> +        if build_apm
> +            xorg_c_args += '-DHAVE_APM'
> +        endif
>          if build_acpi
>              srcs_xorg_os_support += 'linux/lnx_acpi.c'
>          endif

I'd prefer if we moved those -D's into the relevant config.h, that's
why we have them. This applies to the ACPI patch too.

- ajax


More information about the xorg-devel mailing list