Replace cmake with cc

This commit is contained in:
Jake Shadle 2020-03-18 20:05:05 +01:00
parent 4746d04c44
commit 4de7deb568
5 changed files with 6 additions and 9 deletions

2
Cargo.lock generated
View File

@ -2146,7 +2146,7 @@ dependencies = [
name = "wasmer-win-exception-handler"
version = "0.16.2"
dependencies = [
"cmake",
"cc",
"libc",
"wasmer-runtime-core",
"winapi",

View File

@ -13,4 +13,4 @@ winapi = { version = "0.3.8", features = ["winbase", "errhandlingapi", "minwinde
libc = "0.2.60"
[build-dependencies]
cmake = "0.1"
cc = "1.0"

View File

@ -7,4 +7,8 @@ fn main() {
println!("cargo:rustc-link-search=native={}", dst.display());
println!("cargo:rustc-link-lib=static={}", project_name);
}
cc::Build::new()
.include("exception_handling")
.file("exception_handling/exception_handling.c")
.compile("exception_handling");
}

View File

@ -1 +0,0 @@
cmake-build-*

View File

@ -1,6 +0,0 @@
cmake_minimum_required(VERSION 3.0)
project(exception_handling C)
add_library(exception_handling STATIC exception_handling.c)
install(TARGETS exception_handling DESTINATION .)