Commit 46f65d52a808a24aec7abff4e672f5955c92f13f

Authored by Peter Zhigalov
1 parent 1d46871c

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

buildscripts/linux_qt4.8.7_gcc.sh 0 → 100755
  1 +#!/bin/bash
  2 +V_PROJECT="fem_draw_qt"
  3 +V_BUILDDIR="build_linux_qt4.8.7_gcc"
  4 +V_SUFFIX="$(gcc -dumpmachine)"
  5 +
  6 +QTDIR="/opt/qt-4.8.7-static"
  7 +CMD_QMAKE="${QTDIR}/bin/qmake"
  8 +
  9 +cd "$(dirname $0)"/..
  10 +rm -rf "${V_BUILDDIR}"
  11 +mkdir -p "${V_BUILDDIR}"
  12 +cd "${V_BUILDDIR}"
  13 +${CMD_QMAKE} CONFIG+="release" CONFIG+="use_static_qico" "../${V_PROJECT}.pro"
  14 +make
  15 +strip --strip-all "${V_PROJECT}"
  16 +cp "${V_PROJECT}" ../"${V_PROJECT}_${V_SUFFIX}.elf"
  17 +
... ...
fem_draw_qt.pro
... ... @@ -77,3 +77,10 @@ use_static_qtiff {
77 77 QTPLUGIN += qtiff
78 78 DEFINES += USE_STATIC_QTIFF
79 79 }
  80 +
  81 +# qmake CONFIG+=use_static_qico
  82 +use_static_qico {
  83 + QTPLUGIN += qico
  84 + DEFINES += USE_STATIC_QICO
  85 +}
  86 +
... ...
src_qt/main.cpp
... ... @@ -8,6 +8,9 @@ Q_IMPORT_PLUGIN(qjpeg)
8 8 #if defined (USE_STATIC_QTIFF)
9 9 Q_IMPORT_PLUGIN(qtiff)
10 10 #endif
  11 +#if defined (USE_STATIC_QICO)
  12 +Q_IMPORT_PLUGIN(qico)
  13 +#endif
11 14  
12 15 int main(int argc, char *argv[])
13 16 {
... ...