2025-03-29 08:01:13 -04:00
|
|
|
use cxx_qt_build::{CxxQtBuilder, QmlModule};
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
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")
|
|
|
|
|
.qml_module(QmlModule {
|
2025-03-29 16:55:26 -04:00
|
|
|
uri: "clide.module",
|
2025-03-30 11:51:23 -04:00
|
|
|
rust_files: &["src/colors.rs"],
|
2025-03-29 08:01:13 -04:00
|
|
|
qml_files: &["qml/main.qml",
|
2025-03-30 12:52:44 -04:00
|
|
|
"qml/ClideAboutWindow.qml",
|
2025-03-30 11:49:00 -04:00
|
|
|
"qml/ClideProjectView.qml",
|
|
|
|
|
"qml/ClideEditor.qml",
|
|
|
|
|
"qml/ClideMenuBar.qml"],
|
2025-03-29 08:01:13 -04:00
|
|
|
..Default::default()
|
|
|
|
|
})
|
|
|
|
|
.build();
|
|
|
|
|
}
|