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:
parent
e933426000
commit
523191f93d
1 changed files with 21 additions and 1 deletions
22
build.rs
22
build.rs
|
@ -1,4 +1,4 @@
|
||||||
use cxx_qt_build::CxxQtBuilder;
|
use cxx_qt_build::{CxxQtBuilder, QmlModule};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
CxxQtBuilder::new()
|
CxxQtBuilder::new()
|
||||||
|
@ -16,4 +16,24 @@ fn main() {
|
||||||
.file("src/rust/utils.rs")
|
.file("src/rust/utils.rs")
|
||||||
.file("src/rust/obs.rs")
|
.file("src/rust/obs.rs")
|
||||||
.build();
|
.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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue