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

tweak autogen

parent b5093bfe
...@@ -465,32 +465,31 @@ EOF ...@@ -465,32 +465,31 @@ EOF
elif [ -f "meson.build" ]; then elif [ -f "meson.build" ]; then
cat >> "$SSPT_FILE" <<EOF cat >> "$SSPT_FILE" <<EOF
sspt_config() { 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() { sspt_build() {
(>&2 echo "NOTE: meson builds automatically install binaries," \ ninja -C "$REL_DIR/build"
"so the project will only be built when installing.")
} }
sspt_install() { sspt_install() {
ninja ninja -C "$REL_BUILD/build" install
} }
sspt_clean() { sspt_clean() {
ninja clean ninja -C "$REL_DIR/build" clean
} }
sspt_clean_config() { sspt_clean_config() {
rm -rf "$REL_DIR/meson-build" rm -rf "$REL_DIR/build"
} }
EOF EOF
elif [ -f "build.ninja" ]; then elif [ -f "build.ninja" ]; then
cat >> "$SSPT_FILE" <<EOF cat >> "$SSPT_FILE" <<EOF
sspt_config() { sspt_config() {
(>&2 echo "NOTE: ninja cannot install packages.") true
} }
sspt_build() { sspt_build() {
ninja ninja
} }
sspt_install() { sspt_install() {
(>&2 echo "NOTE: ninja cannot install packages.") ninja install
} }
sspt_clean() { sspt_clean() {
ninja clean ninja clean
...@@ -581,6 +580,23 @@ EOF ...@@ -581,6 +580,23 @@ EOF
DONT_LOOK_INTO_BUILD=1 autogen_buildsys DONT_LOOK_INTO_BUILD=1 autogen_buildsys
return $? return $?
else 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'.") (>&2 echo "Could not detect how to compile package '$1'.")
return 1 return 1
fi fi
......
Supports Markdown
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