Mercurial > minori
view dep/animia/src/fd.cc @ 201:8f6f8dd2eb23
dep/animia: finish kvm backend
dep/animia: cmake: don't use kvm on unsupported systems, use private and public includes properly
cmake: why are we defining target include directories twice?
author | paper@DavesDouble.local |
---|---|
date | Sun, 19 Nov 2023 19:13:28 -0500 |
parents | 54c5d80a737e |
children | 71832ffe425a |
line wrap: on
line source
#include "animia/fd.h" #ifdef WIN32 # include "animia/fd/win32.h" #elif defined(LINUX) || defined(FREEBSD) # include "animia/fd/proc.h" #elif defined(MACOSX) # include "animia/fd/xnu.h" #elif defined(LIBUTIL) # include "animia/fd/libutil.h" #elif defined(LIBKVM) # include "animia/fd/kvm.h" #endif namespace animia::internal { #ifdef WIN32 win32::Win32FdTools os_fd; #elif defined(LINUX) || defined(FREEBSD) proc::ProcFdTools os_fd; #elif defined(MACOSX) xnu::XnuFdTools os_fd; #elif defined(LIBUTIL) libutil::LibutilFdTools os_fd; #elif defined(LIBKVM) kvm::KvmFdTools os_fd; #else BaseFdTools os_fd; #endif BaseFdTools& fd = os_fd; } // namespace animia::internal