ibm_db 1.0.2

A tool for DB2 connectivity using CLI Driver
Documentation
#![allow(unused_assignments)]
use std::env;

fn main() {
    let env_var_not_present = env::var("IBM_DB_HOME").is_err();
	let mut project_dir = String::new();
	if env_var_not_present {
		project_dir = ".".parse().unwrap();
	}else{
		project_dir = env::var("IBM_DB_HOME").unwrap();
	}
    println!("cargo:rustc-link-search={}/{}",project_dir,"lib"); // the "-L" flag

	//db2app64 for Windows.
	#[cfg(windows)]
		println!("cargo:rustc-link-lib=db2app64");// the "-l" flag
	#[cfg(not(windows))]
		println!("cargo:rustc-link-lib=db2"); // the "-l" flag

}