Changeset View
Changeset View
Standalone View
Standalone View
templates/qt_quick_cargo/build.rs
1 | extern crate rust_qt_binding_generator; | 1 | extern crate rust_qt_binding_generator; | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | use rust_qt_binding_generator::build::QtModule; | ||||
4 | | ||||
3 | fn main() { | 5 | fn main() { | ||
4 | let out_dir = ::std::env::var("OUT_DIR").unwrap(); | 6 | let out_dir = ::std::env::var("OUT_DIR").unwrap(); | ||
5 | rust_qt_binding_generator::build::Build::new(&out_dir) | 7 | rust_qt_binding_generator::build::Build::new(&out_dir) | ||
6 | .bindings("bindings.json") | 8 | .bindings("bindings.json") | ||
7 | .qrc("qml.qrc") | 9 | .qrc("qml.qrc") | ||
8 | .cpp("src/main.cpp") | 10 | .cpp("src/main.cpp") | ||
11 | .module(QtModule::Gui) | ||||
12 | .module(QtModule::Qml) | ||||
9 | .compile("qt_quick_cargo"); | 13 | .compile("qt_quick_cargo"); | ||
10 | } | 14 | } |