Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Remove C++ shortcut code
Browse files Browse the repository at this point in the history
  • Loading branch information
caesay committed Dec 22, 2023
1 parent 79bf338 commit d845963
Show file tree
Hide file tree
Showing 8 changed files with 893 additions and 135 deletions.
86 changes: 62 additions & 24 deletions src/Rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions src/Rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ memmap2 = "0.9"
pretty-bytes-rust = "0.3"
xml = "0.8"
os_info = { git = "https://github.com/stanislav-tkach/os_info.git", branch = "master", default-features = false } # public releases don't yet have processor arch info
winsafe = { git = "https://github.com/caesay/winsafe.git", branch = "cs/persistfile-and-lnk", features = [
winsafe = { git = "https://github.com/caesay/winsafe.git", branch = "cs/only-ipersistfile", features = [
"kernel",
"version",
"user",
Expand Down Expand Up @@ -90,8 +90,9 @@ remove_dir_all = { git = "https://github.com/caesay/remove_dir_all.git", feature
glob = "0.3"
normpath = "1.0.1"
codesign-verify = { git = "https://github.com/caesay/codesign-verify-rs.git" }
com = "0.2.0"
widestring = "1.0.2"

[build-dependencies]
winres = "0.1"
semver = "1.0"
cc = "1.0"
semver = "1.0"
14 changes: 7 additions & 7 deletions src/Rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ use semver;

extern crate winres;
fn main() {
cc::Build::new()
.cpp(true)
.file("src/platform/windows/shortcuts.cpp")
.define("UNICODE", None)
.define("_UNICODE", None)
.compile("lib_shortcuts");
println!("cargo:rerun-if-changed=src/platform/windows/shortcuts.cpp");
// cc::Build::new()
// .cpp(true)
// .file("src/platform/windows/shortcuts.cpp")
// .define("UNICODE", None)
// .define("_UNICODE", None)
// .compile("lib_shortcuts");
// println!("cargo:rerun-if-changed=src/platform/windows/shortcuts.cpp");

let ver = env!("CARGO_PKG_VERSION");
let ver = semver::Version::parse(&ver).unwrap();
Expand Down
Loading

0 comments on commit d845963

Please sign in to comment.