mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-06 02:30:38 -08:00
some fixes for Windows
This commit is contained in:
parent
1ebfd77f35
commit
383382321c
7 changed files with 16 additions and 6 deletions
|
|
@ -10,3 +10,7 @@ MOC_DIR = ./tmp/
|
||||||
|
|
||||||
HEADERS += lib.h
|
HEADERS += lib.h
|
||||||
SOURCES += lib.cpp
|
SOURCES += lib.cpp
|
||||||
|
|
||||||
|
win32 {
|
||||||
|
include(../../src/windows.pri)
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,8 @@ QObject* ini() {
|
||||||
cpp = new CPP;
|
cpp = new CPP;
|
||||||
|
|
||||||
// needed for QMessageBox
|
// needed for QMessageBox
|
||||||
static int argc = 1;
|
static int argc = 0;
|
||||||
static char* argv[] = {"cpp"};
|
new QApplication(argc, nullptr);
|
||||||
new QApplication(argc, argv);
|
|
||||||
}
|
}
|
||||||
return cpp;
|
return cpp;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,8 @@ macx: LIBS += -L../../../platforms/macos/lib
|
||||||
win32: LIBS += -L../../../platforms/windows/lib
|
win32: LIBS += -L../../../platforms/windows/lib
|
||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
|
LIBS += ws2_32
|
||||||
|
|
||||||
include(../../src/windows.pri)
|
include(../../src/windows.pri)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,8 @@ macx: LIBS += -L../../../platforms/macos/lib
|
||||||
win32: LIBS += -L../../../platforms/windows/lib
|
win32: LIBS += -L../../../platforms/windows/lib
|
||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
|
LIBS += ws2_32
|
||||||
|
|
||||||
include(../../src/windows.pri)
|
include(../../src/windows.pri)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,8 @@ macx: LIBS += -L../../../platforms/macos/lib
|
||||||
win32: LIBS += -L../../../platforms/windows/lib
|
win32: LIBS += -L../../../platforms/windows/lib
|
||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
|
LIBS += ws2_32
|
||||||
|
|
||||||
include(../../src/windows.pri)
|
include(../../src/windows.pri)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,8 @@ macx: LIBS += -L../../../platforms/macos/lib
|
||||||
win32: LIBS += -L../../../platforms/windows/lib
|
win32: LIBS += -L../../../platforms/windows/lib
|
||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
|
LIBS += ws2_32
|
||||||
|
|
||||||
include(../../src/windows.pri)
|
include(../../src/windows.pri)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -107,9 +107,8 @@ int main(int argc, char* argv[]) {
|
||||||
view.show();
|
view.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#if (defined Q_OS_WIN) && (defined DESKTOP_APP)
|
||||||
// uncomment for apps without console
|
lqml.ignoreIOStreams();
|
||||||
//lqml.ignoreIOStreams();
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (defined Q_OS_ANDROID) || (defined Q_OS_IOS)
|
#if (defined Q_OS_ANDROID) || (defined Q_OS_IOS)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue