expat-sys-2.1.6/.gitignore010064400017500001750000000000271246363350700136760ustar0000000000000000/target /Cargo.lock *~ expat-sys-2.1.6/.travis.yml010064400017500001750000000001321262607727700140230ustar0000000000000000language: rust sudo: false notifications: webhooks: http://build.servo.org:54856/travis expat-sys-2.1.6/Cargo.toml.orig010064400017500001750000000006151335072150300145660ustar0000000000000000[package] name = "expat-sys" version = "2.1.6" authors = ["Expat maintainers"] links = "expat" build = "build.rs" repository = "https://github.com/servo/libexpat/" license = "MIT" description = "XML parser library written in C" homepage = "http://www.libexpat.org/" exclude = [ "testdata/**", ] [lib] name = "expat_sys" path = "lib.rs" [build-dependencies] cmake = "0.1" pkg-config = "0.3" expat-sys-2.1.6/Cargo.toml0000644000000016660000000000000110450ustar00# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g. crates.io) dependencies # # If you believe there's an error in this file please file an # issue against the rust-lang/cargo repository. If you're # editing this file be aware that the upstream Cargo.toml # will likely look very different (and much more reasonable) [package] name = "expat-sys" version = "2.1.6" authors = ["Expat maintainers"] build = "build.rs" links = "expat" exclude = ["testdata/**"] description = "XML parser library written in C" homepage = "http://www.libexpat.org/" license = "MIT" repository = "https://github.com/servo/libexpat/" [lib] name = "expat_sys" path = "lib.rs" [build-dependencies.cmake] version = "0.1" [build-dependencies.pkg-config] version = "0.3" expat-sys-2.1.6/Cargo.toml.orig0000644000000006150000000000000117750ustar00[package] name = "expat-sys" version = "2.1.6" authors = ["Expat maintainers"] links = "expat" build = "build.rs" repository = "https://github.com/servo/libexpat/" license = "MIT" description = "XML parser library written in C" homepage = "http://www.libexpat.org/" exclude = [ "testdata/**", ] [lib] name = "expat_sys" path = "lib.rs" [build-dependencies] cmake = "0.1" pkg-config = "0.3" expat-sys-2.1.6/build.rs010064400017500001750000000016471335072150300133520ustar0000000000000000/* 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/. */ extern crate cmake; extern crate pkg_config; use std::env; fn main() { let target = env::var("TARGET").unwrap(); if !target.contains("android") && pkg_config::Config::new() .atleast_version("2.1.0") .find("expat") .is_ok() { return; } let mut dst = cmake::Config::new("expat") .define("BUILD_shared", "OFF") .define("BUILD_tools", "OFF") .define("BUILD_examples", "OFF") .define("BUILD_tests", "OFF") .build(); dst.push("lib"); println!("cargo:rustc-link-search=native={}", dst.display()); println!("cargo:rustc-link-lib=static=expat"); println!("cargo:outdir={}", env::var("OUT_DIR").unwrap()); } expat-sys-2.1.6/lib.rs010064400017500001750000000000271246363350700130220ustar0000000000000000// Intentionally blank expat-sys-2.1.6/.cargo_vcs_info.json0000644000000001120000000000000130300ustar00{ "git": { "sha1": "d8b2fa5760e0eb0dd2d7478a26309edc8b0c2f16" } }