comparison 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
comparison
equal deleted inserted replaced
169:e44b7c428d7c 201:8f6f8dd2eb23
6 # include "animia/fd/proc.h" 6 # include "animia/fd/proc.h"
7 #elif defined(MACOSX) 7 #elif defined(MACOSX)
8 # include "animia/fd/xnu.h" 8 # include "animia/fd/xnu.h"
9 #elif defined(LIBUTIL) 9 #elif defined(LIBUTIL)
10 # include "animia/fd/libutil.h" 10 # include "animia/fd/libutil.h"
11 #elif defined(LIBKVM)
12 # include "animia/fd/kvm.h"
11 #endif 13 #endif
12 14
13 namespace animia::internal { 15 namespace animia::internal {
14 16
15 #ifdef WIN32 17 #ifdef WIN32
18 proc::ProcFdTools os_fd; 20 proc::ProcFdTools os_fd;
19 #elif defined(MACOSX) 21 #elif defined(MACOSX)
20 xnu::XnuFdTools os_fd; 22 xnu::XnuFdTools os_fd;
21 #elif defined(LIBUTIL) 23 #elif defined(LIBUTIL)
22 libutil::LibutilFdTools os_fd; 24 libutil::LibutilFdTools os_fd;
25 #elif defined(LIBKVM)
26 kvm::KvmFdTools os_fd;
23 #else 27 #else
24 BaseFdTools os_fd; 28 BaseFdTools os_fd;
25 #endif 29 #endif
26 30
27 BaseFdTools& fd = os_fd; 31 BaseFdTools& fd = os_fd;