File: build.rs

package info (click to toggle)
rust-framework-tool 0.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 180 kB
  • sloc: makefile: 4
file content (23 lines) | stat: -rw-r--r-- 727 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
fn main() {
    /* // Add app icon
    if std::env::var_os("CARGO_CFG_WINDOWS").is_some() {
        winresource::WindowsResource::new()
            .set_icon("../res/framework_startmenuicon.ico")
            .compile()
            .unwrap();
    }

    let is_msvc = std::env::var("CARGO_CFG_TARGET_ENV")
        .map(|v| v == "msvc")
        .unwrap_or(false);

    if !cfg!(debug_assertions) && is_msvc {
        // Statically link vcruntime to allow running on clean install
        static_vcruntime::metabuild();

        // Embed resources file to force running as admin
        embed_resource::compile("framework_tool-manifest.rc", embed_resource::NONE)
            .manifest_optional()
            .unwrap();
    } */
}