bevy-game

A bevy game
git clone git://archive.git.mtrnord.blog/MTRNord/bevy-game.git
Log | Files | Refs | README | LICENSE

build.rs (279B)


      1 extern crate embed_resource;
      2 use std::env;
      3 
      4 fn main() {
      5     let target = env::var("TARGET").unwrap();
      6     if target.contains("windows") {
      7         // on windows we will set our game icon as icon for the executable
      8         embed_resource::compile("build/windows/icon.rc");
      9     }
     10 }