-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.rs
51 lines (49 loc) · 897 Bytes
/
build.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// SPDX-FileCopyrightText: 2022 Deren Vural
// SPDX-License-Identifier: GPL-3.0-or-later
/**
* Name:
* build.rs
*
* Description:
* Build script for Nvidia Gnome Extension (Rust)
*
* Made:
* 09/10/2022
*
* Made by:
* Deren Vural
*
* Notes:
* imports must be added as a dependancy for build scripts via:
* `cargo add gtk4 --rename gtk --build`
* which updates Cargo.toml with:
* [build-dependencies]
* gtk = { version = "^0.4.8", package = "gtk4" }
*/
// Imports
use adwaita::gio::compile_resources;
/**
* Name:
* main
*
* Description:
* Runs pre-build
*
* Made:
* 09/10/2022
*
* Made by:
* Deren Vural
*
* Notes:
*
*/
fn main() {
// UI
println!("..Compiling UI resources into `.gresource` file");
compile_resources(
"src/resources",
"src/resources/resources.gresource.xml",
"nvidiamonitorrust.gresource",
);
}