Skip to content

Commit

Permalink
prebuild 3.1 bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Aug 31, 2020
1 parent b0322e0 commit 451f712
Show file tree
Hide file tree
Showing 5 changed files with 10,753 additions and 36 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target
4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ bindgen = ["gdal-sys/bindgen"]
gdal_2_2 = ["gdal-sys/min_gdal_version_2_2"]
gdal_2_4 = ["gdal-sys/min_gdal_version_2_4"]
gdal_3_0 = ["gdal_3", "gdal-sys/min_gdal_version_3_0"]
# Note, that currently 3.1 uses the same bindings as 3_0, but the separate
# feature is used in tests
gdal_3_1 = ["gdal_3", "gdal-sys/min_gdal_version_3_0"]
gdal_3_1 = ["gdal_3", "gdal-sys/min_gdal_version_3_1"]
gdal_3 = []
array = ["ndarray"]
datetime = ["chrono"]
Expand Down
2 changes: 2 additions & 0 deletions gdal-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ fn main() {
"prebuilt-bindings/gdal_2.4.rs",
#[cfg(feature = "min_gdal_version_3_0")]
"prebuilt-bindings/gdal_3.0.rs",
#[cfg(feature = "min_gdal_version_3_1")]
"prebuilt-bindings/gdal_3.1.rs",
];
std::fs::copy(&prebuilt_paths[prebuilt_paths.len() - 1], &out_path)
.expect("Can't copy bindings to output directory");
Expand Down
Loading

0 comments on commit 451f712

Please sign in to comment.