void-packages/common/build-style/qmake.sh

27 lines
555 B
Bash
Raw Normal View History

2015-08-20 19:29:37 +00:00
#
# This helper is for templates using Qt4/Qt5 qmake.
#
do_configure() {
if [ -n "$build_pie" ]; then
qmake ${configure_args} \
2015-08-20 19:29:37 +00:00
QMAKE_LFLAGS_SHLIB+=" -Wl,-z,now" \
QMAKE_LFLAGS_PLUGIN+=" -Wl,-z,now"
else
qmake ${configure_args}
2015-08-20 19:29:37 +00:00
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}
}