Initial commit.

This commit is contained in:
2025-03-29 08:01:13 -04:00
commit 59acdc48fa
10 changed files with 878 additions and 0 deletions

21
build.rs Normal file
View File

@@ -0,0 +1,21 @@
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 {
uri: "test",
rust_files: &["src/main.rs"],
qml_files: &["qml/main.qml",
"qml/Menu/ClideMenu.qml",
"qml/Menu/ClideMenuBar.qml",
"qml/Menu/ClideMenuBarItem.qml"],
..Default::default()
})
.build();
}