@@ -6,12 +6,13 @@ use std::fs;
66use std:: path:: PathBuf ;
77
88pub const NATIVE_LIBS : & str = "" ;
9- pub const PROF_DYNAMIC_LIB : & str = "datadog_profiling .dll" ;
10- pub const PROF_STATIC_LIB : & str = "datadog_profiling .lib" ;
11- pub const PROF_PDB : & str = "datadog_profiling .pdb" ;
9+ pub const PROF_DYNAMIC_LIB : & str = "datadog_profiling_ffi .dll" ;
10+ pub const PROF_STATIC_LIB : & str = "datadog_profiling_ffi .lib" ;
11+ pub const PROF_PDB : & str = "datadog_profiling_ffi .pdb" ;
1212pub const PROF_DYNAMIC_LIB_FFI : & str = "datadog_profiling_ffi.dll" ;
1313pub const PROF_STATIC_LIB_FFI : & str = "datadog_profiling_ffi.lib" ;
1414pub const PROF_PDB_FFI : & str = "datadog_profiling_ffi.pdb" ;
15+ pub const PROF_DLL_IMPORT_LIB_FFI : & str = "datadog_profiling_ffi.dll.lib" ;
1516pub const BUILD_CRASHTRACKER : bool = false ;
1617pub const RUSTFLAGS : [ & str ; 4 ] = [
1718 "-C" ,
@@ -25,6 +26,9 @@ pub fn strip_libraries(_lib_path: &str) {}
2526pub fn add_additional_files ( lib_path : & str , target_path : & OsStr ) {
2627 let from_pdb: PathBuf = [ lib_path, PROF_PDB_FFI ] . iter ( ) . collect ( ) ;
2728 let to_pdb: PathBuf = [ target_path, OsStr :: new ( PROF_PDB ) ] . iter ( ) . collect ( ) ;
28-
2929 fs:: copy ( from_pdb, to_pdb) . expect ( "unable to copy pdb file" ) ;
30+
31+ let from_imp: PathBuf = [ lib_path, PROF_DLL_IMPORT_LIB_FFI ] . iter ( ) . collect ( ) ;
32+ let to_imp: PathBuf = [ target_path, OsStr :: new ( PROF_DLL_IMPORT_LIB_FFI ) ] . iter ( ) . collect ( ) ;
33+ fs:: copy ( from_imp, to_imp) . expect ( "unable to copy dll import lib" ) ;
3034}
0 commit comments