Skip to content

Commit 3e0fac6

Browse files
committed
Updated build.rs:
- Updated reuse copyright year - Removed old comment in comment header - Updated imports to use glib-build-tools::compile_resources instead of adwaita::gio::compile_resources - Updated "main()" function to specify &str array of source_dirs rather than single str Signed-off-by: Deren Vural <35734401+derenv@users.noreply.github.com>
1 parent 10d0d7c commit 3e0fac6

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

build.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2022 Deren Vural
1+
// SPDX-FileCopyrightText: 2024 Deren Vural
22
// SPDX-License-Identifier: GPL-3.0-or-later
33

44
/**
@@ -15,14 +15,10 @@
1515
* Deren Vural
1616
*
1717
* Notes:
18-
* imports must be added as a dependancy for build scripts via:
19-
* `cargo add gtk4 --rename gtk --build`
20-
* which updates Cargo.toml with:
21-
* [build-dependencies]
22-
* gtk = { version = "^0.4.8", package = "gtk4" }
18+
*
2319
*/
2420
// Imports
25-
use adwaita::gio::compile_resources;
21+
use glib_build_tools::compile_resources;
2622

2723
/**
2824
* Name:
@@ -44,7 +40,7 @@ fn main() {
4440
// UI
4541
println!("..Compiling UI resources into `.gresource` file");
4642
compile_resources(
47-
"src/resources",
43+
&["src/resources"],
4844
"src/resources/resources.gresource.xml",
4945
"nvidiamonitorrust.gresource",
5046
);

0 commit comments

Comments
 (0)