Update gir version and regenerate
This commit is contained in:
1 parent
c040aa4736
commit
130f0c2839
16 files changed
+240
-258
No files matched your search
@@ -3,6 +3,7 @@ repository = "fkrull/ostree-rs"
|
||||
|
||||
[build-dependencies]
|
||||
pkg-config = "0.3.7"
|
||||
system-deps = "1.3"
|
||||
|
||||
[dependencies]
|
||||
gio-sys = "0.9.1"
|
||||
@@ -66,3 +67,40 @@ repository = "https://gitlab.com/fkrull/ostree-rs"
|
||||
version = "0.5.4"
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.ostree_1]
|
||||
name = "ostree-1"
|
||||
version = "0.0"
|
||||
|
||||
[package.metadata.system-deps.ostree_1.feature-versions]
|
||||
v2014_9 = "2014.9"
|
||||
v2015_7 = "2015.7"
|
||||
v2016_4 = "2016.4"
|
||||
v2016_5 = "2016.5"
|
||||
v2016_6 = "2016.6"
|
||||
v2016_7 = "2016.7"
|
||||
v2016_8 = "2016.8"
|
||||
v2016_14 = "2016.14"
|
||||
v2017_1 = "2017.1"
|
||||
v2017_2 = "2017.2"
|
||||
v2017_3 = "2017.3"
|
||||
v2017_4 = "2017.4"
|
||||
v2017_6 = "2017.6"
|
||||
v2017_7 = "2017.7"
|
||||
v2017_8 = "2017.8"
|
||||
v2017_9 = "2017.9"
|
||||
v2017_10 = "2017.10"
|
||||
v2017_11 = "2017.11"
|
||||
v2017_12 = "2017.12"
|
||||
v2017_13 = "2017.13"
|
||||
v2017_15 = "2017.15"
|
||||
v2018_2 = "2018.2"
|
||||
v2018_3 = "2018.3"
|
||||
v2018_5 = "2018.5"
|
||||
v2018_6 = "2018.6"
|
||||
v2018_7 = "2018.7"
|
||||
v2018_9 = "2018.9"
|
||||
v2019_2 = "2019.2"
|
||||
v2019_3 = "2019.3"
|
||||
v2019_4 = "2019.4"
|
||||
v2019_6 = "2019.6"
|
||||
v2020_1 = "2020.1"
|
||||
@@ -3,12 +3,8 @@
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
extern crate pkg_config;
|
||||
extern crate system_deps;
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use pkg_config::{Config, Error};
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::env;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::io::prelude::*;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
@@ -21,125 +17,8 @@ fn main() {} // prevent linking libraries to avoid documentation failure
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = find() {
|
||||
let _ = writeln!(io::stderr(), "{}", s);
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = eprintln!("{}", s);
|
||||
process::exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn find() -> Result<(), Error> {
|
||||
let package_name = "ostree-1";
|
||||
let shared_libs = ["ostree-1"];
|
||||
let version = if cfg!(feature = "v2020_1") {
|
||||
"2020.1"
|
||||
} else if cfg!(feature = "v2019_6") {
|
||||
"2019.6"
|
||||
} else if cfg!(feature = "v2019_4") {
|
||||
"2019.4"
|
||||
} else if cfg!(feature = "v2019_3") {
|
||||
"2019.3"
|
||||
} else if cfg!(feature = "v2019_2") {
|
||||
"2019.2"
|
||||
} else if cfg!(feature = "v2018_9") {
|
||||
"2018.9"
|
||||
} else if cfg!(feature = "v2018_7") {
|
||||
"2018.7"
|
||||
} else if cfg!(feature = "v2018_6") {
|
||||
"2018.6"
|
||||
} else if cfg!(feature = "v2018_5") {
|
||||
"2018.5"
|
||||
} else if cfg!(feature = "v2018_3") {
|
||||
"2018.3"
|
||||
} else if cfg!(feature = "v2018_2") {
|
||||
"2018.2"
|
||||
} else if cfg!(feature = "v2017_15") {
|
||||
"2017.15"
|
||||
} else if cfg!(feature = "v2017_13") {
|
||||
"2017.13"
|
||||
} else if cfg!(feature = "v2017_12") {
|
||||
"2017.12"
|
||||
} else if cfg!(feature = "v2017_11") {
|
||||
"2017.11"
|
||||
} else if cfg!(feature = "v2017_10") {
|
||||
"2017.10"
|
||||
} else if cfg!(feature = "v2017_9") {
|
||||
"2017.9"
|
||||
} else if cfg!(feature = "v2017_8") {
|
||||
"2017.8"
|
||||
} else if cfg!(feature = "v2017_7") {
|
||||
"2017.7"
|
||||
} else if cfg!(feature = "v2017_6") {
|
||||
"2017.6"
|
||||
} else if cfg!(feature = "v2017_4") {
|
||||
"2017.4"
|
||||
} else if cfg!(feature = "v2017_3") {
|
||||
"2017.3"
|
||||
} else if cfg!(feature = "v2017_2") {
|
||||
"2017.2"
|
||||
} else if cfg!(feature = "v2017_1") {
|
||||
"2017.1"
|
||||
} else if cfg!(feature = "v2016_14") {
|
||||
"2016.14"
|
||||
} else if cfg!(feature = "v2016_8") {
|
||||
"2016.8"
|
||||
} else if cfg!(feature = "v2016_7") {
|
||||
"2016.7"
|
||||
} else if cfg!(feature = "v2016_6") {
|
||||
"2016.6"
|
||||
} else if cfg!(feature = "v2016_5") {
|
||||
"2016.5"
|
||||
} else if cfg!(feature = "v2016_4") {
|
||||
"2016.4"
|
||||
} else if cfg!(feature = "v2015_7") {
|
||||
"2015.7"
|
||||
} else {
|
||||
"0.0"
|
||||
};
|
||||
|
||||
if let Ok(inc_dir) = env::var("GTK_INCLUDE_DIR") {
|
||||
println!("cargo:include={}", inc_dir);
|
||||
}
|
||||
if let Ok(lib_dir) = env::var("GTK_LIB_DIR") {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
println!("cargo:rustc-link-search=native={}", lib_dir);
|
||||
return Ok(())
|
||||
}
|
||||
|
||||
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
|
||||
let hardcode_shared_libs = target.contains("windows");
|
||||
|
||||
let mut config = Config::new();
|
||||
config.atleast_version(version);
|
||||
config.print_system_libs(false);
|
||||
if hardcode_shared_libs {
|
||||
config.cargo_metadata(false);
|
||||
}
|
||||
match config.probe(package_name) {
|
||||
Ok(library) => {
|
||||
if let Ok(paths) = std::env::join_paths(library.include_paths) {
|
||||
println!("cargo:include={}", paths.to_string_lossy());
|
||||
}
|
||||
if hardcode_shared_libs {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
for path in library.link_paths.iter() {
|
||||
println!("cargo:rustc-link-search=native={}",
|
||||
path.to_str().expect("library path doesn't exist"));
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(Error::EnvNoPkgConfig(_)) | Err(Error::Command { .. }) => {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ d1e88f94)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ b20abec)
|
||||
Generated by gir (https://github.com/gtk-rs/gir @ 60cbef05)
|
||||
from gir-files (https://github.com/gtk-rs/gir-files @ e51adaf)
|
||||
@@ -96,6 +96,7 @@ pub const OSTREE_REPO_COMMIT_ITER_RESULT_DIR: OstreeRepoCommitIterResult = 3;
|
||||
pub type OstreeRepoMode = c_int;
|
||||
pub const OSTREE_REPO_MODE_BARE: OstreeRepoMode = 0;
|
||||
pub const OSTREE_REPO_MODE_ARCHIVE: OstreeRepoMode = 1;
|
||||
pub const OSTREE_REPO_MODE_ARCHIVE_Z2: OstreeRepoMode = 1;
|
||||
pub const OSTREE_REPO_MODE_BARE_USER: OstreeRepoMode = 2;
|
||||
pub const OSTREE_REPO_MODE_BARE_USER_ONLY: OstreeRepoMode = 3;
|
||||
|
||||
@@ -914,6 +915,7 @@ extern "C" {
|
||||
//=========================================================================
|
||||
// OstreeCollectionRef
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
||||
pub fn ostree_collection_ref_get_type() -> GType;
|
||||
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
||||
pub fn ostree_collection_ref_new(collection_id: *const c_char, ref_name: *const c_char) -> *mut OstreeCollectionRef;
|
||||
@@ -933,6 +935,7 @@ extern "C" {
|
||||
//=========================================================================
|
||||
// OstreeCommitSizesEntry
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v2020_1", feature = "dox"))]
|
||||
pub fn ostree_commit_sizes_entry_get_type() -> GType;
|
||||
#[cfg(any(feature = "v2020_1", feature = "dox"))]
|
||||
pub fn ostree_commit_sizes_entry_new(checksum: *const c_char, objtype: OstreeObjectType, unpacked: u64, archived: u64) -> *mut OstreeCommitSizesEntry;
|
||||
@@ -990,6 +993,7 @@ extern "C" {
|
||||
//=========================================================================
|
||||
// OstreeRemote
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
||||
pub fn ostree_remote_get_type() -> GType;
|
||||
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
||||
pub fn ostree_remote_get_name(remote: *mut OstreeRemote) -> *const c_char;
|
||||
@@ -1040,6 +1044,7 @@ extern "C" {
|
||||
//=========================================================================
|
||||
// OstreeRepoFinderResult
|
||||
//=========================================================================
|
||||
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
||||
pub fn ostree_repo_finder_result_get_type() -> GType;
|
||||
#[cfg(any(feature = "v2018_6", feature = "dox"))]
|
||||
pub fn ostree_repo_finder_result_new(remote: *mut OstreeRemote, finder: *mut OstreeRepoFinder, priority: c_int, ref_to_checksum: *mut glib::GHashTable, ref_to_timestamp: *mut glib::GHashTable, summary_last_modified: u64) -> *mut OstreeRepoFinderResult;
|
||||
|
||||
Reference in new issue
Block a user