-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
86 additions
and
46 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
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 |
---|---|---|
@@ -1,14 +1,27 @@ | ||
// Copyright 2024-Present Datadog, Inc. https://www.datadoghq.com/ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
use std::ffi::OsStr; | ||
use std::fs; | ||
use std::path::PathBuf; | ||
|
||
pub const NATIVE_LIBS: &str = ""; | ||
pub const PROF_DYNAMIC_LIB: &str = "datadog_profiling.dll"; | ||
pub const PROF_STATIC_LIB: &str = "datadog_profiling.lib"; | ||
pub const PROF_PDB: &str = "datadog_profiling.pdb"; | ||
pub const PROF_DYNAMIC_LIB_FFI: &str = "datadog_profiling_ffi.dll"; | ||
pub const PROF_STATIC_LIB_FFI: &str = "datadog_profiling_ffi.lib"; | ||
pub const PROF_PDB_FFI: &str = "datadog_profiling_ffi.pdb"; | ||
pub const REMOVE_RPATH: bool = false; | ||
pub const BUILD_CRASHTRACKER: bool = false; | ||
|
||
pub fn fix_rpath(_lib_path: &str) {} | ||
pub fn strip_libraries(_lib_path: &str) {} | ||
pub fn fix_soname(_lib_path: &str) {} | ||
|
||
pub fn add_additional_files(lib_path: &str, target_path: &OsStr) { | ||
let from_pdb: PathBuf = [lib_path, PROF_PDB_FFI].iter().collect(); | ||
let to_pdb: PathBuf = [target_path, OsStr::new(PROF_PDB)].iter().collect(); | ||
|
||
fs::copy(from_pdb, to_pdb).expect("unable to copy pdb file"); | ||
} |
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