Skip to content

Commit

Permalink
chore: static_vcruntime
Browse files Browse the repository at this point in the history
  • Loading branch information
progre committed Apr 16, 2024
1 parent f8d6639 commit c33f216
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ license = "GPL-3.0"
[workspace.dependencies]
anyhow = { version = "1.0.75", features = ["backtrace"] }
junowen-lib = { path = "./junowen-lib" }
static_vcruntime = "2.0"
tracing = "0.1.37"
tracing-subscriber = { version = "0.3.17", features = [
"env-filter",
Expand Down
3 changes: 3 additions & 0 deletions junowen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ license.workspace = true
name = "th19_junowen"
crate-type = ['cdylib']

[build-dependencies]
static_vcruntime.workspace = true

[dependencies]
anyhow.workspace = true
async-trait = "0.1.74"
Expand Down
5 changes: 5 additions & 0 deletions junowen/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fn main() {
if cfg!(target_os = "windows") {
static_vcruntime::metabuild();
}
}
1 change: 1 addition & 0 deletions th19loader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ crate-type = ['cdylib']
name = "d3d9"

[build-dependencies]
static_vcruntime.workspace = true
winres = "0.1"

[dependencies]
Expand Down
1 change: 1 addition & 0 deletions th19loader/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use winres::WindowsResource;

fn main() {
if cfg!(target_os = "windows") {
static_vcruntime::metabuild();
WindowsResource::new().compile().unwrap();
}
}

0 comments on commit c33f216

Please sign in to comment.