Files
rshell/build.rs
T
2026-04-17 18:15:29 -05:00

14 lines
482 B
Rust

use cxx_qt_build::{CxxQtBuilder, PluginType, QmlModule};
fn main() {
CxxQtBuilder::new_qml_module(
QmlModule::new("one.krantz.rshell").plugin_type(PluginType::Dynamic),
)
.files(["src/my_object.rs"])
.build();
// This is a fix for "Could not resolve 'qt_plugin_instance' function"
// It works by using black magic with some rocket science to get things to work
println!("cargo::rustc-link-arg-cdylib=-Wl,--version-script=qt-plugin.version");
}