Merge pull request #4110 from Gottox/waf-custom-file
common/build-style/waf.sh: allow custom waf script
This commit is contained in:
commit
fd01a9a601
|
@ -2,13 +2,19 @@
|
|||
# This helper is for templates using WAF to build/install.
|
||||
#
|
||||
do_configure() {
|
||||
python waf configure --prefix=/usr ${configure_args}
|
||||
: ${configure_script:=waf}
|
||||
|
||||
python ${configure_script} configure --prefix=/usr ${configure_args}
|
||||
}
|
||||
|
||||
do_build() {
|
||||
python waf build ${make_build_args}
|
||||
: ${configure_script:=waf}
|
||||
|
||||
python ${configure_script} build ${make_build_args}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
python waf install --destdir=${DESTDIR} ${make_install_args}
|
||||
: ${configure_script:=waf}
|
||||
|
||||
python ${configure_script} install --destdir=${DESTDIR} ${make_install_args}
|
||||
}
|
||||
|
|
|
@ -2,13 +2,19 @@
|
|||
# This helper is for templates using WAF with python3 to build/install.
|
||||
#
|
||||
do_configure() {
|
||||
PYTHON=python3 python3 waf configure --prefix=/usr ${configure_args}
|
||||
: ${configure_script:=waf}
|
||||
|
||||
PYTHON=python3 python3 ${configure_script} configure --prefix=/usr ${configure_args}
|
||||
}
|
||||
|
||||
do_build() {
|
||||
PYTHON=python3 python3 waf build ${make_build_args}
|
||||
: ${configure_script:=waf}
|
||||
|
||||
PYTHON=python3 python3 ${configure_script} build ${make_build_args}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
PYTHON=python3 python3 waf install --destdir=${DESTDIR} ${make_install_args}
|
||||
: ${configure_script:=waf}
|
||||
|
||||
PYTHON=python3 python3 ${configure_script} install --destdir=${DESTDIR} ${make_install_args}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue