Commit 04ef34db authored by pcy's avatar pcy
Browse files

tweak autogen

parent b5093bfe
......@@ -465,32 +465,31 @@ EOF
elif [ -f "meson.build" ]; then
cat >> "$SSPT_FILE" <<EOF
sspt_config() {
meson --backend ninja --buildtype release --strip --prefix \$SSPT_DEST_DIR "$REL_DIR/meson-build"
meson --backend ninja --buildtype release --strip --prefix \$SSPT_DEST_DIR "$REL_DIR/build"
}
sspt_build() {
(>&2 echo "NOTE: meson builds automatically install binaries," \
"so the project will only be built when installing.")
ninja -C "$REL_DIR/build"
}
sspt_install() {
ninja
ninja -C "$REL_BUILD/build" install
}
sspt_clean() {
ninja clean
ninja -C "$REL_DIR/build" clean
}
sspt_clean_config() {
rm -rf "$REL_DIR/meson-build"
rm -rf "$REL_DIR/build"
}
EOF
elif [ -f "build.ninja" ]; then
cat >> "$SSPT_FILE" <<EOF
sspt_config() {
(>&2 echo "NOTE: ninja cannot install packages.")
true
}
sspt_build() {
ninja
}
sspt_install() {
(>&2 echo "NOTE: ninja cannot install packages.")
ninja install
}
sspt_clean() {
ninja clean
......@@ -581,6 +580,23 @@ EOF
DONT_LOOK_INTO_BUILD=1 autogen_buildsys
return $?
else
cat >> "$SSPT_FILE" <<EOF
sspt_config() {
true
}
sspt_build() {
true
}
sspt_install() {
true
}
sspt_clean() {
true
}
sspt_clean_config() {
true
}
EOF
(>&2 echo "Could not detect how to compile package '$1'.")
return 1
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment