aboutsummaryrefslogtreecommitdiffstats
path: root/third_party/webrender/direct-composition/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/webrender/direct-composition/src/main.rs')
-rw-r--r--third_party/webrender/direct-composition/src/main.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/third_party/webrender/direct-composition/src/main.rs b/third_party/webrender/direct-composition/src/main.rs
new file mode 100644
index 00000000000..e1999f5f8f1
--- /dev/null
+++ b/third_party/webrender/direct-composition/src/main.rs
@@ -0,0 +1,11 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+#[cfg(not(windows))]
+fn main() {
+ println!("This demo only runs on Windows.");
+}
+
+#[cfg(windows)]
+include!("main_windows.rs");