//! Build script for core-lib crate
//!
//! PHASE 3.4: Code generation has been completely disabled in favor of
//! pure trait-based runtime resolution. This build script now only
//! provides configuration checks.

fn main() {
    // Tell cargo to check cfg name for generated resources
    println!("cargo:rustc-check-cfg=cfg(has_generated_resources)");

    // Skip shared resource generation in fast development mode or framework-only builds
    if std::env::var("SKIP_SHARED_RESOURCES_BUILD").is_ok() {
        println!("cargo:warning=Skipping shared resources generation due to SKIP_SHARED_RESOURCES_BUILD environment variable");
        return;
    }

    // PHASE 3.4: Code generation completely disabled - using trait-based runtime resolution
    println!("cargo:warning=Code generation disabled - using trait-based runtime resolution");
    println!("cargo:warning=Using pure trait implementations from traits_impl.rs");

    // All previous code generation functionality has been replaced with:
    // 1. Pure trait implementations in traits_impl.rs
    // 2. Configuration-driven runtime resolution
    // 3. No environment variable dependencies
    // 4. No build-time file generation
    //
    // This maintains PAP compliance: configuration-driven, language-agnostic design
    // while providing complete local customization freedom.
}
