mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-07-04 18:48:43 +08:00
26 lines
809 B
TOML
26 lines
809 B
TOML
#TODO camino crate error
|
|
[source]
|
|
git = "https://github.com/http-server-rs/http-server"
|
|
# Broken since https://github.com/http-server-rs/http-server/pull/461
|
|
# because it needs https://trunkrs.dev to work
|
|
rev = "9ffa604de326e013330bced8e36dd7a6945ecb9f"
|
|
shallow_clone = true
|
|
|
|
[build]
|
|
template = "custom"
|
|
dependencies = [
|
|
"openssl1",
|
|
]
|
|
script = """
|
|
DYNAMIC_INIT
|
|
export OPENSSL_DIR="${COOKBOOK_SYSROOT}"
|
|
export OPENSSL_STATIC="true"
|
|
"${COOKBOOK_CARGO}" build \
|
|
--manifest-path "${COOKBOOK_SOURCE}/crates/file-explorer-plugin/Cargo.toml" \
|
|
--locked ${build_flags} --lib
|
|
cp -v \
|
|
"target/${TARGET}/${build_type}/libfile_explorer_plugin.dylib" \
|
|
"${COOKBOOK_SOURCE}"/lib/http-server/inline/file_explorer.plugin.httprs
|
|
PACKAGE_PATH=crates/http-server cookbook_cargo --bin http-server
|
|
"""
|