2025-03-29 08:01:13 -04:00
|
|
|
use cxx_qt_build::{CxxQtBuilder, QmlModule};
|
|
|
|
|
|
|
|
|
|
fn main() {
|
2026-01-25 20:57:36 +00:00
|
|
|
CxxQtBuilder::new_qml_module(QmlModule::new("clide.module").qml_files(&[
|
2026-02-08 21:25:03 +00:00
|
|
|
"qml/ClideApplicationView.qml",
|
|
|
|
|
"qml/ClideEditorView.qml",
|
|
|
|
|
"qml/ClideExplorerView.qml",
|
2026-01-25 20:57:36 +00:00
|
|
|
"qml/ClideTreeView.qml",
|
2026-02-08 21:25:03 +00:00
|
|
|
"qml/Components/ClideAboutWindow.qml",
|
|
|
|
|
"qml/Components/ClideBreadCrumbs.qml",
|
|
|
|
|
"qml/Components/ClideEditor.qml",
|
|
|
|
|
"qml/Components/ClideHandle.qml",
|
|
|
|
|
"qml/Components/ClideLogger.qml",
|
|
|
|
|
"qml/Components/ClideMenu.qml",
|
|
|
|
|
"qml/Components/ClideMenuBar.qml",
|
|
|
|
|
"qml/Components/ClideMenuItem.qml",
|
|
|
|
|
"qml/Components/ClideScrollBar.qml",
|
|
|
|
|
"qml/Logger/Logger.qml",
|
|
|
|
|
"qml/main.qml",
|
2026-01-25 20:57:36 +00:00
|
|
|
]))
|
|
|
|
|
// 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")
|
|
|
|
|
.qt_module("Gui")
|
|
|
|
|
.qt_module("Svg")
|
|
|
|
|
.qt_module("Xml")
|
2026-02-08 21:25:03 +00:00
|
|
|
.qrc("./resources.qrc")
|
2026-01-25 20:57:36 +00:00
|
|
|
.files(["src/gui/colors.rs", "src/gui/filesystem.rs"])
|
|
|
|
|
.build();
|
2025-03-29 08:01:13 -04:00
|
|
|
}
|