-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve sys/build.rs to allow to build meos from scratch
- Loading branch information
1 parent
b75210b
commit 1cf2811
Showing
12 changed files
with
111 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ Cargo.lock | |
test | ||
test.c | ||
output.rs | ||
wrapper.h | ||
/wrapper.h | ||
test.rs | ||
test.py | ||
data/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[submodule "sys/meos-src/source"] | ||
path = sys/meos-src/source | ||
url = https://github.com/MobilityDB/MobilityDB.git | ||
branch = stable-1.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "meos-sys" | ||
version = "0.1.6" | ||
version = "0.1.8" | ||
authors = ["David García Morillo <[email protected]>"] | ||
|
||
repository = "https://github.com/MobilityDB/meos-rs" | ||
|
@@ -14,16 +14,17 @@ edition = "2021" | |
links = "meos" | ||
|
||
[dependencies] | ||
meos-src = { path = "./meos-src", version = "0.1.0", optional = true } | ||
|
||
[build-dependencies] | ||
pkg-config = "0.3.30" | ||
cmake = "0.1" | ||
bindgen = { version = "0.70.1", optional = true } | ||
|
||
[features] | ||
default = ["v1_2"] | ||
default = [] | ||
v1_1 = [] | ||
v1_2 = [] | ||
|
||
buildtime_bindgen = ["dep:bindgen"] | ||
bundled_proj = ["buildtime_bindgen"] | ||
bindgen = ["dep:bindgen"] | ||
bundled = ["bindgen", "dep:meos-src"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[package] | ||
name = "meos-src" | ||
version = "0.1.1" | ||
edition = "2021" | ||
links = "meossrc" | ||
build = "build.rs" | ||
description = "static library build for meos-sys" | ||
repository = "https://github.com/MobilityDB/meos-rs" | ||
authors = ["David García Morillo <[email protected]>"] | ||
license-file = "../LICENSE" | ||
exclude = ["source/mobilitydb", "source/meos/examples"] | ||
|
||
[dependencies] | ||
|
||
[build-dependencies] | ||
cmake = "0.1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
fn main() { | ||
println!("cargo:rerun-if-changed=build.rs"); | ||
let libmeos = cmake::Config::new("source") | ||
.define("MEOS", "1") | ||
.very_verbose(true) | ||
.build(); | ||
println!("cargo:lib=meos"); | ||
let search_path = format!("{}/lib", libmeos.display()); | ||
assert!(std::path::Path::new(&search_path).exists()); | ||
println!("cargo:search={}", search_path); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include <meos.h> |