Skip to content

Commit

Permalink
Fix KDMAPI build
Browse files Browse the repository at this point in the history
  • Loading branch information
MyBlackMIDIScore committed Aug 25, 2024
1 parent bd6d5a9 commit 2081a65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- [`soundfonts`](https://github.com/BlackMIDIDevs/xsynth/tree/master/soundfonts): A module to parse soundfonts to be used in XSynth.
- [`realtime`](https://github.com/BlackMIDIDevs/xsynth/tree/master/realtime): The real-time rendering module within XSynth.
- [`render`](https://github.com/BlackMIDIDevs/xsynth/tree/master/render): A command line utility for rendering MIDIs to audio using XSynth.
- [`kdmapi`](https://github.com/BlackMIDIDevs/xsynth/tree/master/render): A cdylib wrapper around XSynth to act as a drop in replacement for OmniMIDI/KDMAPI.

## Demos

Expand Down
4 changes: 2 additions & 2 deletions kdmapi/build.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
fn main() {
if cfg!(windows) {
// Building on Windows
println!("cargo:rustc-cdylib-link-arg=/DEF:Ordinals.def")
println!("cargo:rustc-cdylib-link-arg=/DEF:kdmapi/Ordinals.def")
} else if std::env::var_os("CARGO_CFG_WINDOWS").is_some() {
// Cross building for Windows
println!("cargo:rustc-cdylib-link-arg=Ordinals.def")
println!("cargo:rustc-cdylib-link-arg=kdmapi/Ordinals.def")
}
}

0 comments on commit 2081a65

Please sign in to comment.