mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Switch task_info to use modern Cargo tools.
This commit is contained in:
parent
bf4fc6f388
commit
29fcdce5e0
9 changed files with 22 additions and 64 deletions
|
@ -2,14 +2,10 @@
|
|||
* 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/. */
|
||||
|
||||
use std::process::Command;
|
||||
use std::env;
|
||||
extern crate gcc;
|
||||
|
||||
fn main() {
|
||||
assert!(Command::new("make")
|
||||
.args(&["-f", "makefile.cargo"])
|
||||
.status()
|
||||
.unwrap()
|
||||
.success());
|
||||
println!("cargo:rustc-flags=-L native={}", env::var("OUT_DIR").unwrap());
|
||||
let mut cfg = gcc::Config::new();
|
||||
cfg.file("src/task_info.c");
|
||||
cfg.compile("libtask_info.a");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue