void-packages/common/build-style/qmake.sh
Jürgen Buchmüller cabc226b2a build-style qmake: don't use configure_script
When running do_configure(), configure_script is already set to
./configure and we can't set another default.
Thus always use qmake directly.
2015-08-21 12:00:26 +02:00

26 lines
555 B
Bash

#
# This helper is for templates using Qt4/Qt5 qmake.
#
do_configure() {
if [ -n "$build_pie" ]; then
qmake ${configure_args} \
QMAKE_LFLAGS_SHLIB+=" -Wl,-z,now" \
QMAKE_LFLAGS_PLUGIN+=" -Wl,-z,now"
else
qmake ${configure_args}
fi
}
do_build() {
: ${make_cmd:=make}
${make_cmd} ${makejobs} ${make_build_args} ${make_build_target}
}
do_install() {
: ${make_cmd:=make}
: ${make_install_target:=install}
${make_cmd} STRIP=true PREFIX=/usr DESTDIR=${DESTDIR} \
INSTALL_ROOT=${DESTDIR}/usr ${make_install_args} ${make_install_target}
}