1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#[cfg(unix)]
pub(crate) mod unix;
#[cfg(windows)]
pub(crate) mod windows;
cfg_if::cfg_if! {
if #[cfg(unix)] {
use unix as platform;
#[cfg(feature = "gpu")]
pub(crate) use unix::gpu::GpuRenderServerParameters;
} else if #[cfg(windows)] {
use windows as platform;
} else {
compile_error!("Unsupported platform");
}
}
pub(crate) use platform::cmdline;
pub(crate) use platform::config;
#[cfg(feature = "gpu")]
pub(crate) use platform::config::validate_gpu_config;
pub(crate) use platform::config::HypervisorKind;
#[cfg(feature = "crash-report")]
pub(crate) use platform::setup_emulator_crash_reporting;