1// Copyright © SixtyFPS GmbH <info@slint.dev>
2// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
3
4fn main() {
5 #[cfg(feature = "system-testing")]
6 {
7 let out_dir = std::path::PathBuf::from(std::env::var("OUT_DIR").unwrap());
8 let proto_file = std::path::PathBuf::from(::std::env::var("CARGO_MANIFEST_DIR").unwrap())
9 .join("slint_systest.proto");
10 let config_builder = pb_rs::ConfigBuilder::new(&[proto_file], None, Some(&out_dir), &[])
11 .unwrap()
12 .headers(false)
13 .dont_use_cow(true);
14 pb_rs::types::FileDescriptor::run(&config_builder.build()).unwrap();
15 }
16}
17