some prep in comments for potentially switching to cargo only build

This is a big possible step. The issue is that Cargo can't link or see
some things quite the same as cmake. At the very least, the app is
building with very minimal cpp now.
This commit is contained in:
Chris Cochrun 2024-09-25 11:20:14 -05:00
parent e933426000
commit 523191f93d

View file

@ -1,4 +1,4 @@
use cxx_qt_build::CxxQtBuilder;
use cxx_qt_build::{CxxQtBuilder, QmlModule};
fn main() {
CxxQtBuilder::new()
@ -16,4 +16,24 @@ fn main() {
.file("src/rust/utils.rs")
.file("src/rust/obs.rs")
.build();
// CxxQtBuilder::new()
// // Link Qt's Network library
// // - Qt Core is always linked
// // - Qt Gui is linked by enabling the qt_gui Cargo feature (default).
// // - Qt Qml is linked by enabling the qt_qml Cargo feature (default).
// // - Qt Qml requires linking Qt Network on macOS
// // .qt_module("Core5Compat")
// // .qt_module("Kirigami")
// // .qt_module("WebEngineQuick")
// .qt_module("Network")
// // .qt_module("I18n")
// // .qt_module("CoreAddons")
// .qml_module(QmlModule {
// uri: "com.cochrun.xyz",
// rust_files: &["src/rust/settings.rs"],
// qml_files: &["src/qml/main.qml"],
// ..Default::default()
// })
// .build();
}