This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from neon-bindings/atom-support-npm-arch-flag
Windows support
- Loading branch information
Showing
3 changed files
with
40 additions
and
8 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
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,12 @@ | ||
use std::env; | ||
|
||
fn main() { | ||
if cfg!(windows) { | ||
let debug = env::var("DEBUG").ok().map_or(false, |s| s == "true"); | ||
let configuration = if debug { "Debug" } else { "Release" }; | ||
let node_root_dir = env::var("DEP_NEON_SYS_NODE_ROOT_DIR").unwrap(); | ||
let node_lib_file = env::var("DEP_NEON_SYS_NODE_LIB_FILE").unwrap(); | ||
println!("cargo:rustc-link-search={}\\{}", node_root_dir, configuration); | ||
println!("cargo:rustc-link-lib={}", node_lib_file); | ||
} | ||
} |