blob: 25e03ae95e069b4f9be3b07552e6d59822a35989 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
use cxx_qt_build::{CxxQtBuilder, PluginType, QmlModule};
const NAME: &str = "core";
fn main() {
let version_script =
std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("qml_plugin.version");
println!("cargo:rustc-cdylib-link-arg=-Wl,--version-script={}", version_script.display());
CxxQtBuilder::new_qml_module(QmlModule::new(NAME).plugin_type(PluginType::Dynamic))
.qt_module("Qml")
.files([
"src/launcher/smartcalc.rs",
"src/launcher/mathcalc.rs",
"src/launcher/duckduckgo.rs",
])
.build();
}
|