mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-07-03 18:18:44 +08:00
33 lines
609 B
Bash
33 lines
609 B
Bash
BUILD_DEPENDS=(liborbital llvm mesa mesa-glu zlib)
|
|
|
|
function recipe_version {
|
|
printf "1.0.0"
|
|
skip=1
|
|
}
|
|
|
|
function recipe_prepare {
|
|
rm -rf source
|
|
mkdir source
|
|
cp osdemo.c source
|
|
}
|
|
|
|
function recipe_build {
|
|
sysroot="$(realpath ../sysroot)"
|
|
set -x
|
|
"${CXX}" -O2 -I "$sysroot/include" -L "$sysroot/lib" osdemo.c -o osdemo -static -lorbital $("${PKG_CONFIG}" --libs glu) -lz
|
|
set +x
|
|
skip=1
|
|
}
|
|
|
|
function recipe_clean {
|
|
"$REDOX_MAKE" clean
|
|
skip=1
|
|
}
|
|
|
|
function recipe_stage {
|
|
dest="$(realpath $1)"
|
|
mkdir -pv "$dest/bin"
|
|
cp -v "osdemo" "$dest/bin/osdemo"
|
|
skip=1
|
|
}
|