package "neuron-landing" {
    version "1.0.0"
    description "Neuron marketing landing page server"
    authors ["Will Anderson <will.anderson@neurontechnologies.ai>"]
    edition "2026"
}

build {
    target "release"
    entry "src/main.el"
    output "dist/"
    c_source "dist/web_stubs.c"
    c_source "dist/vessel_stubs.c"
    c_source "dist/elhtml_impl.c"
    c_source "dist/page_close.c"
    c_source "dist/page_css.c"
    c_source "dist/page_ga.c"
    c_source "dist/page_schema.c"
    // NOTE: neuron-web requires el_runtime.c to be compiled with -DHAVE_CURL
    // so that http_get/http_post forward to libcurl instead of returning
    // {"error":"not built with HAVE_CURL"}. The elb binary in ci-base:dev
    // hardcodes -DHAVE_CURL in its cc invocation, but older elb versions may
    // not. manifest.el does not support c_flags or link_flags directives —
    // if upgrading elb breaks HTTP, ensure ci-base:dev ships an elb built
    // with HAVE_CURL enabled in its hardcoded cc command, or pre-compile
    // el_runtime.o with -DHAVE_CURL on the host and pass it as a c_source.
}
