Skip to content

Commit

Permalink
- copy libqjson.dll from its new place to build/bin
Browse files Browse the repository at this point in the history
- more Qt5 adaptation
- use the linking flags just for linking, not for compiling
  • Loading branch information
adrpo committed Jul 29, 2015
1 parent cb8678a commit 5d264ad
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Makefile.omdev.mingw
Expand Up @@ -34,4 +34,7 @@ qjson-build:
(cd qjson/build && test -f Makefile || CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" $(CMAKE) -D CMAKE_AR:String="$(AR)" .. -G $(CMAKE_TARGET) -DCMAKE_INSTALL_PREFIX:PATH=`pwd`)
test -f qjson/build/lib/libqjson$(SHREXT) || $(MAKE) -C qjson/build install
cp -a qjson/build/lib/libqjson*$(SHREXT)* $(OMBUILDDIR)/lib/omc/
cp -a qjson/build/bin/libqjson*$(SHREXT)* $(OMBUILDDIR)/lib/omc/
cp -a qjson/build/lib/libqjson*$(SHREXT)* $(OMBUILDDIR)/bin/
cp -a qjson/build/bin/libqjson*$(SHREXT)* $(OMBUILDDIR)/bin/
cp -a qjson/src/*.h qjson/build/include/qjson
2 changes: 2 additions & 0 deletions OMEdit/OMEditGUI/CrashReport/CrashReportDialog.h
Expand Up @@ -41,6 +41,8 @@
#include <QtGlobal>
#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
#include <QtWidgets>
#include <QNetworkReply>
#include <QHttpMultiPart>
#else
#include <QtCore>
#include <QtGui>
Expand Down
1 change: 1 addition & 0 deletions OMEdit/OMEditGUI/MainWindow.h
Expand Up @@ -48,6 +48,7 @@
#include <QTextCodec>
#include <QUrlQuery>
#include <QItemDelegate>
#include <QDomDocument>
#else
#include <QtGui>
#include <QtWebKit>
Expand Down
4 changes: 1 addition & 3 deletions OMEdit/OMEditGUI/OMEditGUI.pro
Expand Up @@ -54,12 +54,10 @@ evil_hack_to_fool_lupdate {
# Windows libraries and includes
win32 {
OPENMODELICAHOME = $$(OPENMODELICAHOME)
QMAKE_LFLAGS += -Wl,--enable-auto-import
QMAKE_LFLAGS += -Wl,--stack,16777216,--enable-auto-import

DEFINES += IMPORT_INTO=1

QMAKE_CXXFLAGS += -Wl,--stack,16777216

CONFIG(release, debug|release) {
# In order to get the stack trace in Windows we must add -g flag. Qt automatically adds the -O2 flag for optimization.
# We should also unset the QMAKE_LFLAGS_RELEASE define because it is defined as QMAKE_LFLAGS_RELEASE = -Wl,-s in qmake.conf file for MinGW
Expand Down

0 comments on commit 5d264ad

Please sign in to comment.