From 523191f93d702c290feb572a204ae2cb9e203f7d Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Wed, 25 Sep 2024 11:20:14 -0500 Subject: [PATCH] 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. --- build.rs | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 0fbd3d0..8d4b0d6 100644 --- a/build.rs +++ b/build.rs @@ -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(); }