diff options
author | Eric Anholt <eric@anholt.net> | 2018-08-01 13:49:53 -0700 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2018-08-02 10:27:39 -0400 |
commit | 86c9245838b95e8a0c37fa61d835112933c738f0 (patch) | |
tree | eb55725ab3f55124eb6607486b39d0aa39d7ca46 | |
parent | accd32a466a1a87ab45b5422dff2ef5a9c867049 (diff) |
meson: Try to hook up BSD APM build configuration.
I don't have a BSD to test on, but this should do the same as what
autotools did.
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | hw/xfree86/os-support/meson.build | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/hw/xfree86/os-support/meson.build b/hw/xfree86/os-support/meson.build index 0e021dbe1..fb282be82 100644 --- a/hw/xfree86/os-support/meson.build +++ b/hw/xfree86/os-support/meson.build @@ -85,10 +85,17 @@ elif host_machine.system().endswith('bsd') 'bsd/bsd_VTsw.c', 'bsd/bsd_bell.c', 'bsd/bsd_init.c', - 'shared/pm_noop.c', ] - # XXX: APM + if cc.has_header('machine/apmvar.h') + if cc.has_header('sys/event.h') + srcs_xorg_os_support += 'bsd/bsd_kqueue_apm.c' + else + srcs_xorg_os_support += 'bsd/bsd_apm.c' + endif + else + srcs_xorg_os_support += 'shared/pm_noop.c' + endif if host_machine.cpu_family() == 'x86_64' srcs_xorg_os_support += 'bsd/i386_video.c' |