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 "Console.h"
#ifndef NO_CRASHELPER
#include <crashelper.h>
#endif
int main(int argc, char* argv[])
{
if (argc < 3) {
@@ -15,16 +11,6 @@ int main(int argc, char* argv[])
return 0;
}
#ifndef NO_CRASHELPER
auto configDir = Util::GetCurConfigPath("frelay");
#ifdef _WIN32
backward::SetDumpFileSavePath(configDir + "/dumpfile");
backward::SetDumpLogSavePath(configDir + "/dumplog");
#else
backward::SetDumpLogSavePath(configDir + "/dumplog");
#endif
#endif
qRegisterMetaType<QSharedPointer<FrameBuffer>>("QSharedPointer<FrameBuffer>");
qRegisterMetaType<InfoClientVec>("InfoClientVec");
qRegisterMetaType<DirFileInfoVec>("DirFileInfoVec");