Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pcy
sspt
Commits
04ef34db
Commit
04ef34db
authored
Nov 16, 2017
by
pcy
Browse files
tweak autogen
parent
b5093bfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
local/libexec/sspt/sspt-autogen
View file @
04ef34db
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment