fn foundation(ctx: &mut Context) {
    let sources = include!("sources/foundation");
    ctx.add_component("foundation", &sources);

    let target_family = env::var("CARGO_CFG_TARGET_FAMILY").expect("TARGET_FAMILY not specified");
    let sources = match target_family.as_str() {
        "unix" => &include!("sources/foundation_unix"),
        "windows" => &include!("sources/foundation_windows"),
        other => panic!("unknown TARGET_FAMILY '{}'", other),
    };

    ctx.add_sources(&format!("source/foundation/src/{}", target_family), sources);
}
// The foundation component is really the only one that references platform
// specific compilands, so just calculate them here
The foundation component is really the only one that references platform
specific compilands, so just calculate them here
The foundation component is really the only one that references platform specific compilands so just calculate them here
fn foundation(ctx: &mut Context) {
    let sources = include!("sources/foundation");
    ctx.add_component("foundation", &sources);
    let target_family = env::var("CARGO_CFG_TARGET_FAMILY").expect("TARGET_FAMILY not specified");
    let sources = match target_family.as_str() {
        "unix" => &include!("sources/foundation_unix"),
        "windows" => &include!("sources/foundation_windows"),
        other => panic!("unknown TARGET_FAMILY '{}'", other),
    };
    ctx.add_sources(&format!("source/foundation/src/{}", target_family), sources);
}
fn foundation ( ctx : & mut Context ) { let sources = include ! ( " " ) ; ctx . add_component ( " " , & sources ) ; let target_family = env :: var ( " " ) . expect ( " " ) ; let sources = match target_family . as_str ( ) { " " => & include ! ( " " ) , " " => & include ! ( " " ) , other => panic ! ( " " other ) , } ; ctx . add_sources ( & format ! ( " " target_family ) , sources ) ; }
The foundation component is really the only one that references platform
specific compilands, so just calculate them here
The foundation component is really the only one that references platform specific compilands so just calculate them here
ctx
&mut Context