blob: 76df4b7f4e0f476590c74e16f16e1e669b5f1cdc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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();
}
|