1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00

update macOS building

This commit is contained in:
tianduanrui 2019-03-27 15:13:39 +08:00
parent 8a1309df78
commit 6a7599c0bd
3 changed files with 4 additions and 2 deletions

View File

@ -6,6 +6,7 @@
#注释在qqt_header.pri打开 DEFINES += __PLUGINSUPPORT__
#TODO: macOS runtime crash
contains (DEFINES, __PLUGINSUPPORT__) {
#MinGW64 doesn't support contains(||) and contains(||)
#contains(QSYS_PRIVATE, Win32|Windows|Win64 || MSVC32|MSVC|MSVC64) {
win32{
wince*: SOURCES += $$PWD/pluginsupport/devicewatcher/qdevicewatcher_wince.cpp

View File

@ -54,7 +54,8 @@ HEADERS += \
#可以添加QQtProcess适配正常平台使用QProcess继承下来iOS下使用fork封装。
DEFINES += __PROCESSSUPPORT__
#ios has no backend process
contains(DEFINES, __IOS__ || __WINRT__) {
#ios doesn't support contains(||)
contains(DEFINES, __IOS__|__WINRT__) {
DEFINES -= __PROCESSSUPPORT__
}

View File

@ -27,7 +27,7 @@ extern "C" {
#include <netinet/tcp.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#if defined (__DARWIN__)
#if defined (__DESKTOP_DARWIN__)
#include <net/route.h>
#endif
#include <sys/socket.h>