Parcourir la source

change serverctrl in windows.

yuchuli il y a 1 an
Parent
commit
3dbff30a6f

+ 2 - 0
src/tool/groupctrl_grpc/groupctrl_grpc.pro

@@ -17,6 +17,8 @@ TEMPLATE = app
 # deprecated API in order to know how to port your code away from it.
 DEFINES += QT_DEPRECATED_WARNINGS
 
+win32: DEFINES +=  _WIN32_WINNT=0x0602
+
 # You can also make your code fail to compile if you use deprecated APIs.
 # In order to do so, uncomment the following line.
 # You can also select to disable deprecated APIs only up to a certain version of Qt.

+ 2 - 0
src/tool/serverctrl/mainwindow.cpp

@@ -28,6 +28,8 @@ MainWindow::MainWindow(QWidget *parent)
     mpTimer = new QTimer(this);
     mpTimer->setInterval(2000);
     connect(mpTimer,SIGNAL(timeout()),this,SLOT(onTimer()));
+
+    setWindowTitle(tr("服务器运行服务配置程序"));
 //    mpRP->run();
 }
 

+ 2 - 2
src/tool/serverctrl/serverctrl.pro

@@ -32,5 +32,5 @@ qnx: target.path = /tmp/$${TARGET}/bin
 else: unix:!android: target.path = /opt/$${TARGET}/bin
 !isEmpty(target.path): INSTALLS += target
 
-
-LIBS +=  -L$$PWD -lQSsh
+unix: LIBS +=  -L$$PWD -lQSsh
+win32: LIBS +=   -L$$PWD -lQSsh  -lws2_32