From 2081a65031ba38789e9e4d33547d8d7a33952260 Mon Sep 17 00:00:00 2001 From: MyBlackMIDIScore Date: Sun, 25 Aug 2024 17:23:19 +0300 Subject: [PATCH] Fix KDMAPI build --- README.md | 1 + kdmapi/build.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 32c1a87..b194394 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/kdmapi/build.rs b/kdmapi/build.rs index 87a8f11..defbf39 100644 --- a/kdmapi/build.rs +++ b/kdmapi/build.rs @@ -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") } }