6b97d076c3
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
23 lines
561 B
TOML
23 lines
561 B
TOML
[source]
|
|
path = "source"
|
|
|
|
[build]
|
|
template = "custom"
|
|
script = """
|
|
DYNAMIC_INIT
|
|
|
|
mkdir -p "${COOKBOOK_STAGE}/usr/lib"
|
|
|
|
"${COOKBOOK_CARGO}" build \
|
|
--manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
|
|
--lib \
|
|
${build_flags} \
|
|
-j "${COOKBOOK_MAKE_JOBS}" \
|
|
${COOKBOOK_CARGO_FLAGS[@]}
|
|
|
|
cp "${COOKBOOK_SOURCE}/target/${TARGET}/release/libredox_driver_sys.a" \
|
|
"${COOKBOOK_STAGE}/usr/lib/libredox_driver_sys.a"
|
|
cp "${COOKBOOK_SOURCE}/target/${TARGET}/release/libredox_driver_sys.rlib" \
|
|
"${COOKBOOK_STAGE}/usr/lib/libredox_driver_sys.rlib"
|
|
"""
|