diff --git a/dummy.rs b/dummy.rs new file mode 100644 index 0000000..47956bc --- /dev/null +++ b/dummy.rs @@ -0,0 +1,23 @@ +use geom::size::Size2D; +use base::ShareContext; + +type Context = DummyContext; + +struct DummyContext { + unused: int +} + +impl DummyContext : ShareContext { + static fn new(+_size: Size2D) -> DummyContext { + DummyContext { + unused: 0 + } + } + + fn flush(&self) { + } + + fn id() -> int { + 0 + } +} \ No newline at end of file diff --git a/sharegl.rc b/sharegl.rc index a3563bf..aeec849 100644 --- a/sharegl.rc +++ b/sharegl.rc @@ -10,3 +10,10 @@ mod base; #[path="macos.rs"] mod platform; +#[cfg(target_os="linux")] +#[path="dummy.rs"] +mod platform; + +#[cfg(target_os="windows")] +#[path="dummy.rs"] +mod platform;