14 #if defined(WITH_HEADLESS)
16 #elif defined(WITH_GHOST_X11) && defined(WITH_GHOST_WAYLAND)
20 #elif defined(WITH_GHOST_X11)
22 #elif defined(WITH_GHOST_WAYLAND)
24 #elif defined(WITH_GHOST_SDL)
28 #elif defined(__APPLE__)
41 #if defined(WITH_HEADLESS)
43 #elif defined(WITH_GHOST_WAYLAND)
44 # if defined(WITH_GHOST_WAYLAND_DYNLOAD)
45 const bool has_wayland_libraries = ghost_wl_dynload_libraries();
47 const bool has_wayland_libraries =
true;
51 #if defined(WITH_HEADLESS)
53 #elif defined(WITH_GHOST_X11) && defined(WITH_GHOST_WAYLAND)
58 catch (
const std::runtime_error &) {
66 #elif defined(WITH_GHOST_X11)
68 #elif defined(WITH_GHOST_WAYLAND)
70 #elif defined(WITH_GHOST_SDL)
74 #elif defined(__APPLE__)
void(* GHOST_TBacktraceFn)(void *file_handle)
static GHOST_ISystem * getSystem()
static GHOST_TBacktraceFn getBacktraceFn()
static void setBacktraceFn(GHOST_TBacktraceFn backtrace_fn)
static GHOST_TSuccess disposeSystem()
static GHOST_TSuccess createSystem()
static GHOST_ISystem * m_system
static GHOST_TBacktraceFn m_backtrace_fn
virtual GHOST_TSuccess init()=0