build: back to cmake.

This commit is contained in:
2025-07-06 23:51:45 +08:00
parent 13be630726
commit a04202c00e
33 changed files with 436 additions and 5247 deletions

View File

@@ -4,10 +4,6 @@
#include "Server.h"
#ifndef NO_CRASHELPER
#include <crashelper.h>
#endif
int main(int argc, char* argv[])
{
int port = 9009;
@@ -17,16 +13,6 @@ int main(int argc, char* argv[])
port = atoi(argv[1]);
}
#ifndef NO_CRASHELPER
auto configDir = Util::GetCurConfigPath("frelay");
#ifdef _WIN32
backward::SetDumpFileSavePath(configDir + "/dumpfile");
backward::SetDumpLogSavePath(configDir + "/dumplog");
#else
backward::SetDumpLogSavePath(configDir + QDir::separator() + "dumplog");
#endif
#endif
QCoreApplication app(argc, argv);
Util::InitLogger("frelayServer.log", "frelayServer");