File size: 369 Bytes
48ca417
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
// Used to embed resources like files or binaries into the executable.
extern crate embed_resource;
use std::env;

fn main() {
    let target = env::var("TARGET").unwrap();
    if target.contains("windows") {
        // Sets the game icon in the executable for Windows.
        embed_resource::compile("build/windows/icon.rc", embed_resource::NONE);
    }
}