diff options
author | Vladimir Vukicevic <vladimir@pobox.com> | 2016-08-01 02:32:27 -0400 |
---|---|---|
committer | Vladimir Vukicevic <vladimir@pobox.com> | 2016-08-17 09:50:51 -0400 |
commit | 5bbec7469d7a353779e87b4a5bc8ec7f9cf74838 (patch) | |
tree | 6afbf95f46ea4096c7f81155c907c98bda3a1c63 /components/gfx/platform/mod.rs | |
parent | fc7053e030999ed118c9cf2cac0835286d6dde06 (diff) | |
download | servo-5bbec7469d7a353779e87b4a5bc8ec7f9cf74838.tar.gz servo-5bbec7469d7a353779e87b4a5bc8ec7f9cf74838.zip |
Native MSVC windows build, convert to cmake
Diffstat (limited to 'components/gfx/platform/mod.rs')
-rw-r--r-- | components/gfx/platform/mod.rs | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/components/gfx/platform/mod.rs b/components/gfx/platform/mod.rs index fed55781486..9f81d124b29 100644 --- a/components/gfx/platform/mod.rs +++ b/components/gfx/platform/mod.rs @@ -2,13 +2,16 @@ * 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(any(target_os = "linux", target_os = "android", target_os = "windows"))] +#[cfg(any(target_os = "linux", target_os = "android", all(target_os = "windows", target_env = "gnu")))] pub use platform::freetype::{font, font_context, font_list, font_template}; #[cfg(target_os = "macos")] pub use platform::macos::{font, font_context, font_list, font_template}; -#[cfg(any(target_os = "linux", target_os = "android", target_os = "windows"))] +#[cfg(all(target_os = "windows", target_env = "msvc"))] +pub use platform::dummy::{font, font_context, font_list, font_template}; + +#[cfg(any(target_os = "linux", target_os = "android", all(target_os = "windows", target_env = "gnu")))] mod freetype { use libc::c_char; use std::ffi::CStr; @@ -33,3 +36,11 @@ mod macos { pub mod font_list; pub mod font_template; } + +#[cfg(all(target_os = "windows", target_env = "msvc"))] +mod dummy { + pub mod font; + pub mod font_context; + pub mod font_list; + pub mod font_template; +} |