Commit 46f65d52 authored by Peter Zhigalov's avatar Peter Zhigalov

Добавил сборочные скрипты для GNU/Linux

parent 1d46871c
#!/bin/bash
V_PROJECT="fem_draw_qt"
V_BUILDDIR="build_linux_qt4.8.7_gcc"
V_SUFFIX="$(gcc -dumpmachine)"
QTDIR="/opt/qt-4.8.7-static"
CMD_QMAKE="${QTDIR}/bin/qmake"
cd "$(dirname $0)"/..
rm -rf "${V_BUILDDIR}"
mkdir -p "${V_BUILDDIR}"
cd "${V_BUILDDIR}"
${CMD_QMAKE} CONFIG+="release" CONFIG+="use_static_qico" "../${V_PROJECT}.pro"
make
strip --strip-all "${V_PROJECT}"
cp "${V_PROJECT}" ../"${V_PROJECT}_${V_SUFFIX}.elf"
......@@ -77,3 +77,10 @@ use_static_qtiff {
QTPLUGIN += qtiff
DEFINES += USE_STATIC_QTIFF
}
# qmake CONFIG+=use_static_qico
use_static_qico {
QTPLUGIN += qico
DEFINES += USE_STATIC_QICO
}
......@@ -8,6 +8,9 @@ Q_IMPORT_PLUGIN(qjpeg)
#if defined (USE_STATIC_QTIFF)
Q_IMPORT_PLUGIN(qtiff)
#endif
#if defined (USE_STATIC_QICO)
Q_IMPORT_PLUGIN(qico)
#endif
int main(int argc, char *argv[])
{
......
Markdown is supported
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