lumina/build.rs
Chris Cochrun 523191f93d 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.
2024-09-25 11:20:14 -05:00

39 lines
1.4 KiB
Rust

use cxx_qt_build::{CxxQtBuilder, QmlModule};
fn main() {
CxxQtBuilder::new()
.file("src/rust/settings.rs")
.file("src/rust/file_helper.rs")
.file("src/rust/slide_object.rs")
.file("src/rust/slide_model.rs")
.file("src/rust/service_item_model.rs")
.file("src/rust/image_model.rs")
.file("src/rust/video_model.rs")
.file("src/rust/presentation_model.rs")
.file("src/rust/songs/song_model.rs")
.file("src/rust/songs/song_editor.rs")
.file("src/rust/ytdl.rs")
.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();
}