Skip to content

Commit 0e4bc15

Browse files
Merge branch 'develop' of github.com:treefrogframework/treefrog-framework into develop
2 parents 0a686ac + d73fc7c commit 0e4bc15

6 files changed

Lines changed: 9 additions & 13 deletions

File tree

configure.bat

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ mklink /j mongo-driver mongo-c-driver-%MONBOC_VERSION% >nul 2>&1
178178
cd %BASEDIR%3rdparty\mongo-driver
179179
rd /s /q CMakeFiles >nul 2>&1
180180
del /f /q CMakeCache.txt Makefile >nul 2>&1
181-
set CMAKECMD=cmake %CMAKEOPT% -S . -DCMAKE_BUILD_TYPE=Release -DENABLE_STATIC=ON -DENABLE_SSL=OFF -DENABLE_SNAPPY=OFF -DENABLE_ZLIB=OFF -DENABLE_ZSTD=OFF -DENABLE_SRV=OFF -DENABLE_SASL=OFF -DENABLE_ZLIB=OFF -DENABLE_SHM_COUNTERS=OFF -DENABLE_TESTS=OFF
181+
set CMAKECMD=cmake %CMAKEOPT% -S . -DENABLE_STATIC=ON -DENABLE_SSL=OFF -DENABLE_SNAPPY=OFF -DENABLE_ZLIB=OFF -DENABLE_ZSTD=OFF -DENABLE_SRV=OFF -DENABLE_SASL=OFF -DENABLE_ZLIB=OFF -DENABLE_SHM_COUNTERS=OFF -DENABLE_TESTS=OFF
182182
echo %CMAKECMD%
183183
%CMAKECMD% >nul 2>&1
184184

@@ -228,11 +228,15 @@ del /f /q glog >nul 2>&1
228228
mklink /j glog glog-%GLOG_VERSION% >nul 2>&1
229229
cd %BASEDIR%3rdparty\glog
230230
rmdir /s /q build >nul 2>&1
231-
set CMAKECMD=cmake -S . -B build %CMAKEOPT% -DBUILD_SHARED_LIBS=OFF
231+
set CMAKECMD=cmake -S . -B build %CMAKEOPT% -DBUILD_SHARED_LIBS=OFF -DWITH_GFLAGS=OFF
232232
echo %CMAKECMD%
233233
%CMAKECMD%
234234

235-
set BUILDCMD=cmake --build build -j
235+
if "%DEBUG%" == "yes" (
236+
set BUILDCMD=cmake --build build --config Debug -j
237+
) else (
238+
set BUILDCMD=cmake --build build --config Release -j
239+
)
236240
echo %BUILDCMD%
237241
%BUILDCMD% >nul 2>&1
238242
if ERRORLEVEL 1 (

src/test/queue/main.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,9 @@ private slots:
8787

8888
void TestQueue::initTestCase()
8989
{
90-
#if defined(Q_OS_UNIX) || !defined(QT_NO_DEBUG)
9190
// Setup signal handlers for SIGSEGV, SIGILL, SIGFPE, SIGABRT and SIGBUS
9291
google::InstallFailureWriter(writeFailure);
9392
google::InstallFailureSignalHandler();
94-
#endif
9593
}
9694

9795

src/test/stack/main.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,9 @@ private slots:
110110

111111
void TestStack::initTestCase()
112112
{
113-
#if defined(Q_OS_UNIX) || !defined(QT_NO_DEBUG)
114113
// Setup signal handlers for SIGSEGV, SIGILL, SIGFPE, SIGABRT and SIGBUS
115114
google::InstallFailureWriter(writeFailure);
116115
google::InstallFailureSignalHandler();
117-
#endif
118116
}
119117

120118

src/test/test.pri

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ windows {
1717
TARGET = $$join(TARGET,,,d)
1818
LIBS += -L../../debug -ltreefrogd$${TF_VER_MAJ} ../../../3rdparty/glog/build/Debug/glogd.lib dbghelp.lib
1919
} else {
20-
LIBS += -L../../release -ltreefrog$${TF_VER_MAJ}
20+
LIBS += -L../../release -ltreefrog$${TF_VER_MAJ} ../../../3rdparty/glog/build/Release/glog.lib dbghelp.lib
2121
}
2222
INCLUDEPATH += ../../../3rdparty/glog/build ../../../3rdparty/glog/src
2323
} else:unix {

tools/tfserver/main.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,12 @@ void messageOutput(QtMsgType type, const QMessageLogContext &context, const QStr
5757
}
5858

5959

60-
#if defined(Q_OS_UNIX) || !defined(TF_NO_DEBUG)
6160
void writeFailure(const char *data, size_t size)
6261
{
6362
QByteArray message(data, qsizetype(size));
6463
message.replace('\n', "");
6564
tSystemError("{}", message.constData());
6665
}
67-
#endif
6866

6967

7068
QMap<QString, QString> convertArgs(const QStringList &args)
@@ -208,11 +206,9 @@ int main(int argc, char *argv[])
208206
bool showRoutesOption = args.contains(SHOW_ROUTES_OPTION);
209207
ushort portNumber = args.value(PORT_OPTION).toUShort();
210208

211-
#if defined(Q_OS_UNIX) || !defined(TF_NO_DEBUG)
212209
// Setup signal handlers for SIGSEGV, SIGILL, SIGFPE, SIGABRT and SIGBUS
213210
google::InstallFailureWriter(writeFailure);
214211
google::InstallFailureSignalHandler();
215-
#endif
216212

217213
#ifdef Q_OS_UNIX
218214
webapp.watchUnixSignal(SIGTERM);

tools/tfserver/tfserver.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ windows {
3232
TARGET = $$join(TARGET,,,d)
3333
LIBS += -ltreefrogd$${TF_VER_MAJ} ../../3rdparty/glog/build/Debug/glogd.lib dbghelp.lib
3434
} else {
35-
LIBS += -ltreefrog$${TF_VER_MAJ}
35+
LIBS += -ltreefrog$${TF_VER_MAJ} ../../3rdparty/glog/build/Release/glog.lib dbghelp.lib
3636
}
3737
INCLUDEPATH += ../../3rdparty/glog/build ../../3rdparty/glog/src
3838
LIBS += -L"$$target.path"

0 commit comments

Comments
 (0)