mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-05 08:45:25 +08:00
qt 6.5.1 original
This commit is contained in:
39
mkspecs/unsupported/qnx-X11-g++/qmake.conf
Normal file
39
mkspecs/unsupported/qnx-X11-g++/qmake.conf
Normal file
@ -0,0 +1,39 @@
|
||||
#
|
||||
# qmake configuration for qnx-x11-g++
|
||||
#
|
||||
# Written for QNX RTOS v6 with X11
|
||||
#
|
||||
|
||||
MAKEFILE_GENERATOR = UNIX
|
||||
QMAKE_PLATFORM = qnx
|
||||
|
||||
include(../common/unix.conf)
|
||||
include(../common/gcc-base-unix.conf)
|
||||
include(../common/g++-unix.conf)
|
||||
|
||||
QMAKE_CFLAGS_THREAD = -D_REENTRANT
|
||||
QMAKE_CXXFLAGS_THREAD = $$QMAKE_CLFAGS_THREAD
|
||||
QMAKE_COMPILER_DEFINES += __QNXNTO__
|
||||
|
||||
QMAKE_INCDIR =
|
||||
QMAKE_LIBDIR =
|
||||
QMAKE_INCDIR_X11 = /opt/X11R6/include
|
||||
QMAKE_LIBDIR_X11 = /opt/X11R6/lib
|
||||
QMAKE_INCDIR_OPENGL = /opt/X11R6/include
|
||||
QMAKE_LIBDIR_OPENGL = /opt/X11R6/lib
|
||||
|
||||
#QMAKE_LIBS = -lunix
|
||||
QMAKE_LIBS =
|
||||
QMAKE_LIBS_DYNLOAD =
|
||||
QMAKE_LIBS_X11 = -lXext -lX11 -lm -lsocket
|
||||
QMAKE_LIBS_OPENGL = -lGL
|
||||
QMAKE_LIBS_THREAD =
|
||||
QMAKE_LIBS_NETWORK = -lsocket
|
||||
|
||||
QMAKE_AR = ar cqs
|
||||
QMAKE_RANLIB =
|
||||
|
||||
QMAKE_STRIP = strip
|
||||
QMAKE_STRIPFLAGS_LIB += --strip-unneeded
|
||||
|
||||
load(qt_config)
|
63
mkspecs/unsupported/qnx-X11-g++/qplatformdefs.h
Normal file
63
mkspecs/unsupported/qnx-X11-g++/qplatformdefs.h
Normal file
@ -0,0 +1,63 @@
|
||||
// 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
|
||||
|
||||
#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 <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/time.h>
|
||||
// QNX doesn't have the System V <sys/shm.h> header. This is not a standard
|
||||
// POSIX header, it's only documented in the Single UNIX Specification.
|
||||
// The preferred POSIX compliant way to share memory is to use the functions
|
||||
// in <sys/mman.h> that comply with the POSIX Real Time Interface (1003.1b).
|
||||
#include <sys/mman.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/wait.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
// for htonl
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#define QT_USE_XOPEN_LFS_EXTENSIONS
|
||||
#include "../../common/posix/qplatformdefs.h"
|
||||
|
||||
#define QT_SNPRINTF ::snprintf
|
||||
#define QT_VSNPRINTF ::vsnprintf
|
||||
|
||||
// QNX6 doesn't have getpagesize()
|
||||
inline int getpagesize()
|
||||
{
|
||||
return ::sysconf(_SC_PAGESIZE);
|
||||
}
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
// QNX6 doesn't have strtof - use strtod instead
|
||||
inline float strtof(const char *b, char **e)
|
||||
{
|
||||
return float(strtod(b, e));
|
||||
}
|
||||
|
||||
#endif // QPLATFORMDEFS_H
|
Reference in New Issue
Block a user