2025-03-29 08:01:13 -04:00
|
|
|
use cxx_qt_build::{CxxQtBuilder, QmlModule};
|
|
|
|
|
|
|
|
|
|
fn main() {
|
2025-03-30 13:14:58 -04:00
|
|
|
CxxQtBuilder::new()
|
|
|
|
|
// Link Qt's Network library
|
|
|
|
|
// - Qt Core is always linked
|
|
|
|
|
// - Qt Gui is linked by enabling the qt_gui Cargo feature of cxx-qt-lib.
|
|
|
|
|
// - Qt Qml is linked by enabling the qt_qml Cargo feature of cxx-qt-lib.
|
|
|
|
|
// - Qt Qml requires linking Qt Network on macOS
|
|
|
|
|
.qt_module("Network")
|
2025-03-30 21:38:57 -04:00
|
|
|
.qt_module("Gui")
|
|
|
|
|
.qt_module("Svg")
|
|
|
|
|
.qt_module("Xml")
|
2025-03-30 13:14:58 -04:00
|
|
|
.qml_module(QmlModule {
|
|
|
|
|
uri: "clide.module",
|
|
|
|
|
rust_files: &["src/colors.rs", "src/filesystem.rs"],
|
|
|
|
|
qml_files: &[
|
|
|
|
|
"qml/main.qml",
|
|
|
|
|
"qml/ClideAboutWindow.qml",
|
2025-03-30 16:14:58 -04:00
|
|
|
"qml/ClideTreeView.qml",
|
2025-03-30 13:14:58 -04:00
|
|
|
"qml/ClideProjectView.qml",
|
|
|
|
|
"qml/ClideEditor.qml",
|
|
|
|
|
"qml/ClideMenuBar.qml",
|
|
|
|
|
],
|
|
|
|
|
..Default::default()
|
|
|
|
|
})
|
|
|
|
|
.build();
|
2025-03-29 08:01:13 -04:00
|
|
|
}
|