Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (26 sloc) 795 Bytes
/* 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/. */
#[link(name = "cairo",
vers = "0.1")];
#[crate_type = "lib"];
extern mod std;
pub mod cairo;
pub mod cairo_hl;
#[cfg(target_os = "linux")]
pub mod cairo_xlib;
#[cfg(target_os = "linux")]
pub mod cairo_ft;
#[cfg(target_os = "macos")]
pub mod cairo_quartz;
#[nolink]
#[link_args = "-L. -lcairo -lpixman-1"]
extern mod linkhack { }
#[nolink]
#[cfg(target_os = "linux")]
#[link_args = "-lXrender -lpng -lX11"]
extern mod linkhack_linux { }
#[nolink]
#[cfg(target_os = "macos")]
#[link_args = "-framework Foundation -framework ApplicationServices"]
extern mod linkhack_macos { }