mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-03 07:45:30 +08:00
qt 6.5.1 original
This commit is contained in:
31
mkspecs/solaris-g++-64/qmake.conf
Normal file
31
mkspecs/solaris-g++-64/qmake.conf
Normal file
@ -0,0 +1,31 @@
|
||||
#
|
||||
# qmake configuration for solaris-g++-64
|
||||
#
|
||||
|
||||
MAKEFILE_GENERATOR = UNIX
|
||||
CONFIG += incremental
|
||||
QMAKE_INCREMENTAL_STYLE = sublib
|
||||
|
||||
include(../common/solaris.conf)
|
||||
|
||||
QMAKE_CFLAGS = -m64
|
||||
QMAKE_LFLAGS = -m64
|
||||
|
||||
QMAKE_LIBDIR_X11 = /usr/X11/lib/64
|
||||
QMAKE_LIBDIR_OPENGL = /usr/X11/lib/64
|
||||
|
||||
include(../common/gcc-base.conf)
|
||||
|
||||
QMAKE_LFLAGS_SHLIB = -shared
|
||||
QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
|
||||
QMAKE_LFLAGS_SONAME = -h$$LITERAL_WHITESPACE
|
||||
QMAKE_LFLAGS_THREAD =
|
||||
QMAKE_LFLAGS_NOUNDEF = -z defs
|
||||
QMAKE_LFLAGS_RPATH = -Wl,-R,
|
||||
|
||||
include(../common/g++-base.conf)
|
||||
|
||||
QMAKE_LFLAGS_RELEASE =
|
||||
QMAKE_LFLAGS_DEBUG = -g
|
||||
|
||||
load(qt_config)
|
65
mkspecs/solaris-g++-64/qplatformdefs.h
Normal file
65
mkspecs/solaris-g++-64/qplatformdefs.h
Normal file
@ -0,0 +1,65 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
#ifndef QPLATFORMDEFS_H
|
||||
#define QPLATFORMDEFS_H
|
||||
|
||||
// Get Qt defines/settings
|
||||
|
||||
#include "qglobal.h"
|
||||
|
||||
// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs
|
||||
#ifndef _POSIX_PTHREAD_SEMANTICS
|
||||
#define _POSIX_PTHREAD_SEMANTICS
|
||||
#endif
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
// We are hot - unistd.h should have turned on the specific APIs we requested
|
||||
|
||||
|
||||
#include <pthread.h>
|
||||
#include <dirent.h>
|
||||
#include <fcntl.h>
|
||||
#include <grp.h>
|
||||
#include <pwd.h>
|
||||
#include <signal.h>
|
||||
#include <dlfcn.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/filio.h>
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/shm.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/wait.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
#define QT_USE_XOPEN_LFS_EXTENSIONS
|
||||
#include "../common/posix/qplatformdefs.h"
|
||||
|
||||
#undef QT_SOCKET_CONNECT
|
||||
#define QT_SOCKET_CONNECT qt_socket_connect
|
||||
|
||||
// Solaris redefines connect -> __xnet_connect with _XOPEN_SOURCE_EXTENDED
|
||||
static inline int qt_socket_connect(int s, struct sockaddr *addr, QT_SOCKLEN_T addrlen)
|
||||
{ return ::connect(s, addr, addrlen); }
|
||||
#if defined (connect)
|
||||
# undef connect
|
||||
#endif
|
||||
|
||||
// Solaris redefines bind -> __xnet_bind with _XOPEN_SOURCE_EXTENDED
|
||||
static inline int qt_socket_bind(int s, struct sockaddr *addr, QT_SOCKLEN_T addrlen)
|
||||
{ return ::bind(s, addr, addrlen); }
|
||||
#if defined(bind)
|
||||
# undef bind
|
||||
#endif
|
||||
|
||||
// Only Solaris 7 and better support 64-bit
|
||||
#define QT_SNPRINTF ::snprintf
|
||||
#define QT_VSNPRINTF ::vsnprintf
|
||||
|
||||
#endif // QPLATFORMDEFS_H
|
Reference in New Issue
Block a user