parent
944912027d
commit
686b9289cf
@ -0,0 +1,342 @@
|
||||
#############################################################################
|
||||
# Makefile for building: com_linux
|
||||
# Generated by qmake (3.0) (Qt 5.6.1)
|
||||
# Project: ../com_linux/com_linux.pro
|
||||
# Template: app
|
||||
# Command: /usr/lib/x86_64-linux-gnu/qt5/bin/qmake -spec linux-g++-64 CONFIG+=debug CONFIG+=qml_debug -o Makefile ../com_linux/com_linux.pro
|
||||
#############################################################################
|
||||
|
||||
MAKEFILE = Makefile
|
||||
|
||||
####### Compiler, tools and options
|
||||
|
||||
CC = gcc
|
||||
CXX = g++
|
||||
DEFINES = -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SERIALPORT_LIB -DQT_CORE_LIB
|
||||
CFLAGS = -m64 -pipe -g -Wall -W -D_REENTRANT -fPIC $(DEFINES)
|
||||
CXXFLAGS = -m64 -pipe -g -std=gnu++0x -Wall -W -D_REENTRANT -fPIC $(DEFINES)
|
||||
INCPATH = -I../com_linux -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtSerialPort -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64
|
||||
QMAKE = /usr/lib/x86_64-linux-gnu/qt5/bin/qmake
|
||||
DEL_FILE = rm -f
|
||||
CHK_DIR_EXISTS= test -d
|
||||
MKDIR = mkdir -p
|
||||
COPY = cp -f
|
||||
COPY_FILE = cp -f
|
||||
COPY_DIR = cp -f -R
|
||||
INSTALL_FILE = install -m 644 -p
|
||||
INSTALL_PROGRAM = install -m 755 -p
|
||||
INSTALL_DIR = cp -f -R
|
||||
DEL_FILE = rm -f
|
||||
SYMLINK = ln -f -s
|
||||
DEL_DIR = rmdir
|
||||
MOVE = mv -f
|
||||
TAR = tar -cf
|
||||
COMPRESS = gzip -9f
|
||||
DISTNAME = com_linux1.0.0
|
||||
DISTDIR = /home/t-bird/qt_work/com_linux/build-com_linux-Desktop-Debug/.tmp/com_linux1.0.0
|
||||
LINK = g++
|
||||
LFLAGS = -m64
|
||||
LIBS = $(SUBLIBS) -L/usr/X11R6/lib64 -lQt5Widgets -lQt5Gui -lQt5SerialPort -ludev -lQt5Core -lGL -lpthread
|
||||
AR = ar cqs
|
||||
RANLIB =
|
||||
SED = sed
|
||||
STRIP = strip
|
||||
|
||||
####### Output directory
|
||||
|
||||
OBJECTS_DIR = ./
|
||||
|
||||
####### Files
|
||||
|
||||
SOURCES = ../com_linux/main.cpp \
|
||||
../com_linux/lattice_com_reign.cpp moc_lattice_com_reign.cpp
|
||||
OBJECTS = main.o \
|
||||
lattice_com_reign.o \
|
||||
moc_lattice_com_reign.o
|
||||
DIST = /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_pre.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/unix.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/linux.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/sanitize.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base-unix.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-base.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-unix.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/qconfig.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfs_device_lib_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_platformsupport_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_serialport.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_serialport_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_functions.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_config.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64/qmake.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_post.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exclusive_builds.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_pre.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resolve_config.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_post.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qml_debug.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/warn_on.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resources.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/moc.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/opengl.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/uic.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/thread.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/file_copies.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/testcase_targets.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exceptions.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/yacc.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/lex.prf \
|
||||
../com_linux/com_linux.pro ../com_linux/lattice_com_reign.h ../com_linux/main.cpp \
|
||||
../com_linux/lattice_com_reign.cpp
|
||||
QMAKE_TARGET = com_linux
|
||||
DESTDIR =
|
||||
TARGET = com_linux
|
||||
|
||||
|
||||
first: all
|
||||
####### Build rules
|
||||
|
||||
$(TARGET): ui_lattice_com_reign.h $(OBJECTS)
|
||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
|
||||
|
||||
Makefile: ../com_linux/com_linux.pro /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64/qmake.conf /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_pre.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/unix.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/linux.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/sanitize.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base-unix.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-base.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-unix.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/qconfig.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfs_device_lib_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_platformsupport_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_serialport.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_serialport_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_functions.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_config.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64/qmake.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_post.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exclusive_builds.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_pre.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resolve_config.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_post.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qml_debug.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/warn_on.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resources.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/moc.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/opengl.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/uic.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/thread.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/file_copies.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/testcase_targets.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exceptions.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/yacc.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/lex.prf \
|
||||
../com_linux/com_linux.pro \
|
||||
/usr/lib/x86_64-linux-gnu/libQt5Widgets.prl \
|
||||
/usr/lib/x86_64-linux-gnu/libQt5Gui.prl \
|
||||
/usr/lib/x86_64-linux-gnu/libQt5SerialPort.prl \
|
||||
/usr/lib/x86_64-linux-gnu/libQt5Core.prl
|
||||
$(QMAKE) -spec linux-g++-64 CONFIG+=debug CONFIG+=qml_debug -o Makefile ../com_linux/com_linux.pro
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_pre.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/unix.conf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/linux.conf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/sanitize.conf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base.conf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base-unix.conf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-base.conf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-unix.conf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/qconfig.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfs_device_lib_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_platformsupport_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_serialport.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_serialport_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_functions.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_config.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64/qmake.conf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_post.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exclusive_builds.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_pre.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resolve_config.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_post.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qml_debug.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/warn_on.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resources.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/moc.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/opengl.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/uic.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/thread.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/file_copies.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/testcase_targets.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exceptions.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/yacc.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/lex.prf:
|
||||
../com_linux/com_linux.pro:
|
||||
/usr/lib/x86_64-linux-gnu/libQt5Widgets.prl:
|
||||
/usr/lib/x86_64-linux-gnu/libQt5Gui.prl:
|
||||
/usr/lib/x86_64-linux-gnu/libQt5SerialPort.prl:
|
||||
/usr/lib/x86_64-linux-gnu/libQt5Core.prl:
|
||||
qmake: FORCE
|
||||
@$(QMAKE) -spec linux-g++-64 CONFIG+=debug CONFIG+=qml_debug -o Makefile ../com_linux/com_linux.pro
|
||||
|
||||
qmake_all: FORCE
|
||||
|
||||
|
||||
all: Makefile $(TARGET)
|
||||
|
||||
dist: distdir FORCE
|
||||
(cd `dirname $(DISTDIR)` && $(TAR) $(DISTNAME).tar $(DISTNAME) && $(COMPRESS) $(DISTNAME).tar) && $(MOVE) `dirname $(DISTDIR)`/$(DISTNAME).tar.gz . && $(DEL_FILE) -r $(DISTDIR)
|
||||
|
||||
distdir: FORCE
|
||||
@test -d $(DISTDIR) || mkdir -p $(DISTDIR)
|
||||
$(COPY_FILE) --parents $(DIST) $(DISTDIR)/
|
||||
$(COPY_FILE) --parents ../com_linux/lattice_com_reign.h $(DISTDIR)/
|
||||
$(COPY_FILE) --parents ../com_linux/main.cpp ../com_linux/lattice_com_reign.cpp $(DISTDIR)/
|
||||
$(COPY_FILE) --parents ../com_linux/lattice_com_reign.ui $(DISTDIR)/
|
||||
|
||||
|
||||
clean: compiler_clean
|
||||
-$(DEL_FILE) $(OBJECTS)
|
||||
-$(DEL_FILE) *~ core *.core
|
||||
|
||||
|
||||
distclean: clean
|
||||
-$(DEL_FILE) $(TARGET)
|
||||
-$(DEL_FILE) Makefile
|
||||
|
||||
|
||||
####### Sub-libraries
|
||||
|
||||
mocclean: compiler_moc_header_clean compiler_moc_source_clean
|
||||
|
||||
mocables: compiler_moc_header_make_all compiler_moc_source_make_all
|
||||
|
||||
check: first
|
||||
|
||||
benchmark: first
|
||||
|
||||
compiler_rcc_make_all:
|
||||
compiler_rcc_clean:
|
||||
compiler_moc_header_make_all: moc_lattice_com_reign.cpp
|
||||
compiler_moc_header_clean:
|
||||
-$(DEL_FILE) moc_lattice_com_reign.cpp
|
||||
moc_lattice_com_reign.cpp: ../com_linux/lattice_com_reign.h
|
||||
/usr/lib/x86_64-linux-gnu/qt5/bin/moc $(DEFINES) -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I/home/t-bird/qt_work/com_linux/com_linux -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtSerialPort -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/include/c++/5 -I/usr/include/x86_64-linux-gnu/c++/5 -I/usr/include/c++/5/backward -I/usr/lib/gcc/x86_64-linux-gnu/5/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include ../com_linux/lattice_com_reign.h -o moc_lattice_com_reign.cpp
|
||||
|
||||
compiler_moc_source_make_all:
|
||||
compiler_moc_source_clean:
|
||||
compiler_uic_make_all: ui_lattice_com_reign.h
|
||||
compiler_uic_clean:
|
||||
-$(DEL_FILE) ui_lattice_com_reign.h
|
||||
ui_lattice_com_reign.h: ../com_linux/lattice_com_reign.ui
|
||||
/usr/lib/x86_64-linux-gnu/qt5/bin/uic ../com_linux/lattice_com_reign.ui -o ui_lattice_com_reign.h
|
||||
|
||||
compiler_yacc_decl_make_all:
|
||||
compiler_yacc_decl_clean:
|
||||
compiler_yacc_impl_make_all:
|
||||
compiler_yacc_impl_clean:
|
||||
compiler_lex_make_all:
|
||||
compiler_lex_clean:
|
||||
compiler_clean: compiler_moc_header_clean compiler_uic_clean
|
||||
|
||||
####### Compile
|
||||
|
||||
main.o: ../com_linux/main.cpp ../com_linux/lattice_com_reign.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o ../com_linux/main.cpp
|
||||
|
||||
lattice_com_reign.o: ../com_linux/lattice_com_reign.cpp ../com_linux/lattice_com_reign.h \
|
||||
ui_lattice_com_reign.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o lattice_com_reign.o ../com_linux/lattice_com_reign.cpp
|
||||
|
||||
moc_lattice_com_reign.o: moc_lattice_com_reign.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lattice_com_reign.o moc_lattice_com_reign.cpp
|
||||
|
||||
####### Install
|
||||
|
||||
install: FORCE
|
||||
|
||||
uninstall: FORCE
|
||||
|
||||
FORCE:
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,140 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'lattice_com_reign.h'
|
||||
**
|
||||
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.1)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../com_linux/lattice_com_reign.h"
|
||||
#include <QtCore/qbytearray.h>
|
||||
#include <QtCore/qmetatype.h>
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'lattice_com_reign.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 67
|
||||
#error "This file was generated using the moc from 5.6.1. It"
|
||||
#error "cannot be used with the include files from this version of Qt."
|
||||
#error "(The moc has changed too much.)"
|
||||
#endif
|
||||
|
||||
QT_BEGIN_MOC_NAMESPACE
|
||||
struct qt_meta_stringdata_lattice_com_reign_t {
|
||||
QByteArrayData data[11];
|
||||
char stringdata0[166];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
qptrdiff(offsetof(qt_meta_stringdata_lattice_com_reign_t, stringdata0) + ofs \
|
||||
- idx * sizeof(QByteArrayData)) \
|
||||
)
|
||||
static const qt_meta_stringdata_lattice_com_reign_t qt_meta_stringdata_lattice_com_reign = {
|
||||
{
|
||||
QT_MOC_LITERAL(0, 0, 17), // "lattice_com_reign"
|
||||
QT_MOC_LITERAL(1, 18, 5), // "toLog"
|
||||
QT_MOC_LITERAL(2, 24, 0), // ""
|
||||
QT_MOC_LITERAL(3, 25, 3), // "str"
|
||||
QT_MOC_LITERAL(4, 29, 22), // "on_com_reflseh_clicked"
|
||||
QT_MOC_LITERAL(5, 52, 31), // "on_com_list_currentIndexChanged"
|
||||
QT_MOC_LITERAL(6, 84, 5), // "index"
|
||||
QT_MOC_LITERAL(7, 90, 18), // "on_connect_clicked"
|
||||
QT_MOC_LITERAL(8, 109, 17), // "on_com_tx_clicked"
|
||||
QT_MOC_LITERAL(9, 127, 20), // "on_clear_log_clicked"
|
||||
QT_MOC_LITERAL(10, 148, 17) // "com_data_received"
|
||||
|
||||
},
|
||||
"lattice_com_reign\0toLog\0\0str\0"
|
||||
"on_com_reflseh_clicked\0"
|
||||
"on_com_list_currentIndexChanged\0index\0"
|
||||
"on_connect_clicked\0on_com_tx_clicked\0"
|
||||
"on_clear_log_clicked\0com_data_received"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
static const uint qt_meta_data_lattice_com_reign[] = {
|
||||
|
||||
// content:
|
||||
7, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
7, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
0, // signalCount
|
||||
|
||||
// slots: name, argc, parameters, tag, flags
|
||||
1, 1, 49, 2, 0x08 /* Private */,
|
||||
4, 0, 52, 2, 0x08 /* Private */,
|
||||
5, 1, 53, 2, 0x08 /* Private */,
|
||||
7, 0, 56, 2, 0x08 /* Private */,
|
||||
8, 0, 57, 2, 0x08 /* Private */,
|
||||
9, 0, 58, 2, 0x08 /* Private */,
|
||||
10, 0, 59, 2, 0x09 /* Protected */,
|
||||
|
||||
// slots: parameters
|
||||
QMetaType::Void, QMetaType::QString, 3,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void, QMetaType::Int, 6,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
QMetaType::Void,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
void lattice_com_reign::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
lattice_com_reign *_t = static_cast<lattice_com_reign *>(_o);
|
||||
Q_UNUSED(_t)
|
||||
switch (_id) {
|
||||
case 0: _t->toLog((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 1: _t->on_com_reflseh_clicked(); break;
|
||||
case 2: _t->on_com_list_currentIndexChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 3: _t->on_connect_clicked(); break;
|
||||
case 4: _t->on_com_tx_clicked(); break;
|
||||
case 5: _t->on_clear_log_clicked(); break;
|
||||
case 6: _t->com_data_received(); break;
|
||||
default: ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const QMetaObject lattice_com_reign::staticMetaObject = {
|
||||
{ &QMainWindow::staticMetaObject, qt_meta_stringdata_lattice_com_reign.data,
|
||||
qt_meta_data_lattice_com_reign, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
|
||||
};
|
||||
|
||||
|
||||
const QMetaObject *lattice_com_reign::metaObject() const
|
||||
{
|
||||
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
|
||||
}
|
||||
|
||||
void *lattice_com_reign::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return Q_NULLPTR;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_lattice_com_reign.stringdata0))
|
||||
return static_cast<void*>(const_cast< lattice_com_reign*>(this));
|
||||
return QMainWindow::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int lattice_com_reign::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QMainWindow::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
if (_id < 7)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 7;
|
||||
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
|
||||
if (_id < 7)
|
||||
*reinterpret_cast<int*>(_a[0]) = -1;
|
||||
_id -= 7;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
QT_END_MOC_NAMESPACE
|
Binary file not shown.
@ -0,0 +1,120 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading UI file 'lattice_com_reign.ui'
|
||||
**
|
||||
** Created by: Qt User Interface Compiler version 5.6.1
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef UI_LATTICE_COM_REIGN_H
|
||||
#define UI_LATTICE_COM_REIGN_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtWidgets/QAction>
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtWidgets/QButtonGroup>
|
||||
#include <QtWidgets/QComboBox>
|
||||
#include <QtWidgets/QHeaderView>
|
||||
#include <QtWidgets/QLabel>
|
||||
#include <QtWidgets/QMainWindow>
|
||||
#include <QtWidgets/QMenuBar>
|
||||
#include <QtWidgets/QPushButton>
|
||||
#include <QtWidgets/QSpinBox>
|
||||
#include <QtWidgets/QStatusBar>
|
||||
#include <QtWidgets/QTextEdit>
|
||||
#include <QtWidgets/QToolBar>
|
||||
#include <QtWidgets/QWidget>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_lattice_com_reign
|
||||
{
|
||||
public:
|
||||
QWidget *centralWidget;
|
||||
QPushButton *com_reflesh;
|
||||
QComboBox *com_list;
|
||||
QPushButton *connect;
|
||||
QTextEdit *log;
|
||||
QSpinBox *byte_to_transmit;
|
||||
QPushButton *com_tx;
|
||||
QLabel *time;
|
||||
QPushButton *clear_log;
|
||||
QMenuBar *menuBar;
|
||||
QToolBar *mainToolBar;
|
||||
QStatusBar *statusBar;
|
||||
|
||||
void setupUi(QMainWindow *lattice_com_reign)
|
||||
{
|
||||
if (lattice_com_reign->objectName().isEmpty())
|
||||
lattice_com_reign->setObjectName(QStringLiteral("lattice_com_reign"));
|
||||
lattice_com_reign->resize(588, 492);
|
||||
centralWidget = new QWidget(lattice_com_reign);
|
||||
centralWidget->setObjectName(QStringLiteral("centralWidget"));
|
||||
com_reflesh = new QPushButton(centralWidget);
|
||||
com_reflesh->setObjectName(QStringLiteral("com_reflesh"));
|
||||
com_reflesh->setGeometry(QRect(10, 0, 31, 27));
|
||||
com_list = new QComboBox(centralWidget);
|
||||
com_list->setObjectName(QStringLiteral("com_list"));
|
||||
com_list->setGeometry(QRect(54, 0, 91, 27));
|
||||
connect = new QPushButton(centralWidget);
|
||||
connect->setObjectName(QStringLiteral("connect"));
|
||||
connect->setGeometry(QRect(160, 0, 99, 27));
|
||||
log = new QTextEdit(centralWidget);
|
||||
log->setObjectName(QStringLiteral("log"));
|
||||
log->setGeometry(QRect(10, 90, 571, 331));
|
||||
byte_to_transmit = new QSpinBox(centralWidget);
|
||||
byte_to_transmit->setObjectName(QStringLiteral("byte_to_transmit"));
|
||||
byte_to_transmit->setGeometry(QRect(310, 0, 51, 27));
|
||||
byte_to_transmit->setMaximum(255);
|
||||
byte_to_transmit->setValue(0);
|
||||
byte_to_transmit->setDisplayIntegerBase(16);
|
||||
com_tx = new QPushButton(centralWidget);
|
||||
com_tx->setObjectName(QStringLiteral("com_tx"));
|
||||
com_tx->setGeometry(QRect(370, 0, 99, 27));
|
||||
time = new QLabel(centralWidget);
|
||||
time->setObjectName(QStringLiteral("time"));
|
||||
time->setGeometry(QRect(480, -4, 101, 31));
|
||||
QFont font;
|
||||
font.setPointSize(18);
|
||||
font.setBold(true);
|
||||
font.setWeight(75);
|
||||
time->setFont(font);
|
||||
clear_log = new QPushButton(centralWidget);
|
||||
clear_log->setObjectName(QStringLiteral("clear_log"));
|
||||
clear_log->setGeometry(QRect(10, 50, 99, 27));
|
||||
lattice_com_reign->setCentralWidget(centralWidget);
|
||||
menuBar = new QMenuBar(lattice_com_reign);
|
||||
menuBar->setObjectName(QStringLiteral("menuBar"));
|
||||
menuBar->setGeometry(QRect(0, 0, 588, 25));
|
||||
lattice_com_reign->setMenuBar(menuBar);
|
||||
mainToolBar = new QToolBar(lattice_com_reign);
|
||||
mainToolBar->setObjectName(QStringLiteral("mainToolBar"));
|
||||
lattice_com_reign->addToolBar(Qt::TopToolBarArea, mainToolBar);
|
||||
statusBar = new QStatusBar(lattice_com_reign);
|
||||
statusBar->setObjectName(QStringLiteral("statusBar"));
|
||||
lattice_com_reign->setStatusBar(statusBar);
|
||||
|
||||
retranslateUi(lattice_com_reign);
|
||||
|
||||
QMetaObject::connectSlotsByName(lattice_com_reign);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QMainWindow *lattice_com_reign)
|
||||
{
|
||||
lattice_com_reign->setWindowTitle(QApplication::translate("lattice_com_reign", "lattice_com_reign", 0));
|
||||
com_reflesh->setText(QApplication::translate("lattice_com_reign", "R", 0));
|
||||
connect->setText(QApplication::translate("lattice_com_reign", "Connect", 0));
|
||||
com_tx->setText(QApplication::translate("lattice_com_reign", "Transmit", 0));
|
||||
time->setText(QApplication::translate("lattice_com_reign", "12:15:28", 0));
|
||||
clear_log->setText(QApplication::translate("lattice_com_reign", "CLR", 0));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class lattice_com_reign: public Ui_lattice_com_reign {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // UI_LATTICE_COM_REIGN_H
|
@ -0,0 +1,342 @@
|
||||
#############################################################################
|
||||
# Makefile for building: com_linux
|
||||
# Generated by qmake (3.0) (Qt 5.6.1)
|
||||
# Project: ../com_linux/com_linux.pro
|
||||
# Template: app
|
||||
# Command: /usr/lib/x86_64-linux-gnu/qt5/bin/qmake -spec linux-g++-64 CONFIG+=qml_debug CONFIG+=force_debug_info CONFIG+=separate_debug_info -o Makefile ../com_linux/com_linux.pro
|
||||
#############################################################################
|
||||
|
||||
MAKEFILE = Makefile
|
||||
|
||||
####### Compiler, tools and options
|
||||
|
||||
CC = gcc
|
||||
CXX = g++
|
||||
DEFINES = -DQT_QML_DEBUG -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB
|
||||
CFLAGS = -m64 -pipe -O2 -g -Wall -W -D_REENTRANT -fPIC $(DEFINES)
|
||||
CXXFLAGS = -m64 -pipe -O2 -g -std=gnu++0x -Wall -W -D_REENTRANT -fPIC $(DEFINES)
|
||||
INCPATH = -I../com_linux -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64
|
||||
QMAKE = /usr/lib/x86_64-linux-gnu/qt5/bin/qmake
|
||||
DEL_FILE = rm -f
|
||||
CHK_DIR_EXISTS= test -d
|
||||
MKDIR = mkdir -p
|
||||
COPY = cp -f
|
||||
COPY_FILE = cp -f
|
||||
COPY_DIR = cp -f -R
|
||||
INSTALL_FILE = install -m 644 -p
|
||||
INSTALL_PROGRAM = install -m 755 -p
|
||||
INSTALL_DIR = cp -f -R
|
||||
DEL_FILE = rm -f
|
||||
SYMLINK = ln -f -s
|
||||
DEL_DIR = rmdir
|
||||
MOVE = mv -f
|
||||
TAR = tar -cf
|
||||
COMPRESS = gzip -9f
|
||||
DISTNAME = com_linux1.0.0
|
||||
DISTDIR = /home/t-bird/qt_work/com_linux/build-com_linux-Desktop-Profile/.tmp/com_linux1.0.0
|
||||
LINK = g++
|
||||
LFLAGS = -m64
|
||||
LIBS = $(SUBLIBS) -L/usr/X11R6/lib64 -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
|
||||
AR = ar cqs
|
||||
RANLIB =
|
||||
SED = sed
|
||||
STRIP = strip
|
||||
|
||||
####### Output directory
|
||||
|
||||
OBJECTS_DIR = ./
|
||||
|
||||
####### Files
|
||||
|
||||
SOURCES = ../com_linux/main.cpp \
|
||||
../com_linux/lattice_com_reign.cpp moc_lattice_com_reign.cpp
|
||||
OBJECTS = main.o \
|
||||
lattice_com_reign.o \
|
||||
moc_lattice_com_reign.o
|
||||
DIST = /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_pre.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/unix.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/linux.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/sanitize.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base-unix.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-base.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-unix.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/qconfig.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfs_device_lib_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_platformsupport_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_functions.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_config.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64/qmake.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_post.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exclusive_builds.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_pre.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resolve_config.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_post.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resolve_target.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/separate_debug_info.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qml_debug.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/warn_on.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resources.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/moc.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/opengl.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/uic.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/thread.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/file_copies.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/testcase_targets.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exceptions.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/yacc.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/lex.prf \
|
||||
../com_linux/com_linux.pro ../com_linux/lattice_com_reign.h ../com_linux/main.cpp \
|
||||
../com_linux/lattice_com_reign.cpp
|
||||
QMAKE_TARGET = com_linux
|
||||
DESTDIR =
|
||||
TARGET = com_linux
|
||||
|
||||
|
||||
first: all
|
||||
####### Build rules
|
||||
|
||||
$(TARGET): ui_lattice_com_reign.h $(OBJECTS)
|
||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
|
||||
objcopy --only-keep-debug com_linux com_linux.debug && objcopy --strip-debug com_linux && objcopy --add-gnu-debuglink=com_linux.debug com_linux && chmod -x com_linux.debug
|
||||
|
||||
Makefile: ../com_linux/com_linux.pro /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64/qmake.conf /usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_pre.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/unix.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/linux.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/sanitize.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base-unix.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-base.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-unix.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/qconfig.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfs_device_lib_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_platformsupport_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml_private.pri \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_functions.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_config.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64/qmake.conf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_post.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exclusive_builds.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_pre.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resolve_config.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_post.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resolve_target.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/separate_debug_info.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qml_debug.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/warn_on.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resources.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/moc.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/opengl.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/uic.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/thread.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/file_copies.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/testcase_targets.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exceptions.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/yacc.prf \
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/lex.prf \
|
||||
../com_linux/com_linux.pro \
|
||||
/usr/lib/x86_64-linux-gnu/libQt5Widgets.prl \
|
||||
/usr/lib/x86_64-linux-gnu/libQt5Gui.prl \
|
||||
/usr/lib/x86_64-linux-gnu/libQt5Core.prl
|
||||
$(QMAKE) -spec linux-g++-64 CONFIG+=qml_debug CONFIG+=force_debug_info CONFIG+=separate_debug_info -o Makefile ../com_linux/com_linux.pro
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_pre.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/unix.conf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/linux.conf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/sanitize.conf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base.conf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/gcc-base-unix.conf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-base.conf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/common/g++-unix.conf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/qconfig.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_concurrent_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_core_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dbus_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_eglfs_device_lib_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_gui_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_network_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_opengl_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_openglextensions_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_platformsupport_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_printsupport_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_sql_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_testlib_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_widgets_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_xml_private.pri:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_functions.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt_config.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64/qmake.conf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/spec_post.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exclusive_builds.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_pre.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resolve_config.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/default_post.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resolve_target.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/separate_debug_info.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qml_debug.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/warn_on.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/qt.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/resources.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/moc.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/opengl.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/uic.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/unix/thread.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/file_copies.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/testcase_targets.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/exceptions.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/yacc.prf:
|
||||
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/lex.prf:
|
||||
../com_linux/com_linux.pro:
|
||||
/usr/lib/x86_64-linux-gnu/libQt5Widgets.prl:
|
||||
/usr/lib/x86_64-linux-gnu/libQt5Gui.prl:
|
||||
/usr/lib/x86_64-linux-gnu/libQt5Core.prl:
|
||||
qmake: FORCE
|
||||
@$(QMAKE) -spec linux-g++-64 CONFIG+=qml_debug CONFIG+=force_debug_info CONFIG+=separate_debug_info -o Makefile ../com_linux/com_linux.pro
|
||||
|
||||
qmake_all: FORCE
|
||||
|
||||
|
||||
all: Makefile $(TARGET)
|
||||
|
||||
dist: distdir FORCE
|
||||
(cd `dirname $(DISTDIR)` && $(TAR) $(DISTNAME).tar $(DISTNAME) && $(COMPRESS) $(DISTNAME).tar) && $(MOVE) `dirname $(DISTDIR)`/$(DISTNAME).tar.gz . && $(DEL_FILE) -r $(DISTDIR)
|
||||
|
||||
distdir: FORCE
|
||||
@test -d $(DISTDIR) || mkdir -p $(DISTDIR)
|
||||
$(COPY_FILE) --parents $(DIST) $(DISTDIR)/
|
||||
$(COPY_FILE) --parents ../com_linux/lattice_com_reign.h $(DISTDIR)/
|
||||
$(COPY_FILE) --parents ../com_linux/main.cpp ../com_linux/lattice_com_reign.cpp $(DISTDIR)/
|
||||
$(COPY_FILE) --parents ../com_linux/lattice_com_reign.ui $(DISTDIR)/
|
||||
|
||||
|
||||
clean: compiler_clean
|
||||
-$(DEL_FILE) $(OBJECTS)
|
||||
-$(DEL_FILE) *~ core *.core
|
||||
|
||||
|
||||
distclean: clean
|
||||
-$(DEL_FILE) $(TARGET)
|
||||
-$(DEL_FILE) /home/t-bird/qt_work/com_linux/build-com_linux-Desktop-Profile/com_linux.debug
|
||||
-$(DEL_FILE) Makefile
|
||||
|
||||
|
||||
####### Sub-libraries
|
||||
|
||||
mocclean: compiler_moc_header_clean compiler_moc_source_clean
|
||||
|
||||
mocables: compiler_moc_header_make_all compiler_moc_source_make_all
|
||||
|
||||
check: first
|
||||
|
||||
benchmark: first
|
||||
|
||||
compiler_rcc_make_all:
|
||||
compiler_rcc_clean:
|
||||
compiler_moc_header_make_all: moc_lattice_com_reign.cpp
|
||||
compiler_moc_header_clean:
|
||||
-$(DEL_FILE) moc_lattice_com_reign.cpp
|
||||
moc_lattice_com_reign.cpp: ../com_linux/lattice_com_reign.h
|
||||
/usr/lib/x86_64-linux-gnu/qt5/bin/moc $(DEFINES) -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I/home/t-bird/qt_work/com_linux/com_linux -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/include/c++/5 -I/usr/include/x86_64-linux-gnu/c++/5 -I/usr/include/c++/5/backward -I/usr/lib/gcc/x86_64-linux-gnu/5/include -I/usr/local/include -I/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed -I/usr/include/x86_64-linux-gnu -I/usr/include ../com_linux/lattice_com_reign.h -o moc_lattice_com_reign.cpp
|
||||
|
||||
compiler_moc_source_make_all:
|
||||
compiler_moc_source_clean:
|
||||
compiler_uic_make_all: ui_lattice_com_reign.h
|
||||
compiler_uic_clean:
|
||||
-$(DEL_FILE) ui_lattice_com_reign.h
|
||||
ui_lattice_com_reign.h: ../com_linux/lattice_com_reign.ui
|
||||
/usr/lib/x86_64-linux-gnu/qt5/bin/uic ../com_linux/lattice_com_reign.ui -o ui_lattice_com_reign.h
|
||||
|
||||
compiler_yacc_decl_make_all:
|
||||
compiler_yacc_decl_clean:
|
||||
compiler_yacc_impl_make_all:
|
||||
compiler_yacc_impl_clean:
|
||||
compiler_lex_make_all:
|
||||
compiler_lex_clean:
|
||||
compiler_clean: compiler_moc_header_clean compiler_uic_clean
|
||||
|
||||
####### Compile
|
||||
|
||||
main.o: ../com_linux/main.cpp ../com_linux/lattice_com_reign.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o ../com_linux/main.cpp
|
||||
|
||||
lattice_com_reign.o: ../com_linux/lattice_com_reign.cpp ../com_linux/lattice_com_reign.h \
|
||||
ui_lattice_com_reign.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o lattice_com_reign.o ../com_linux/lattice_com_reign.cpp
|
||||
|
||||
moc_lattice_com_reign.o: moc_lattice_com_reign.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_lattice_com_reign.o moc_lattice_com_reign.cpp
|
||||
|
||||
####### Install
|
||||
|
||||
install: FORCE
|
||||
|
||||
uninstall: FORCE
|
||||
|
||||
FORCE:
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,89 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'lattice_com_reign.h'
|
||||
**
|
||||
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.1)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../com_linux/lattice_com_reign.h"
|
||||
#include <QtCore/qbytearray.h>
|
||||
#include <QtCore/qmetatype.h>
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'lattice_com_reign.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 67
|
||||
#error "This file was generated using the moc from 5.6.1. It"
|
||||
#error "cannot be used with the include files from this version of Qt."
|
||||
#error "(The moc has changed too much.)"
|
||||
#endif
|
||||
|
||||
QT_BEGIN_MOC_NAMESPACE
|
||||
struct qt_meta_stringdata_lattice_com_reign_t {
|
||||
QByteArrayData data[1];
|
||||
char stringdata0[18];
|
||||
};
|
||||
#define QT_MOC_LITERAL(idx, ofs, len) \
|
||||
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
|
||||
qptrdiff(offsetof(qt_meta_stringdata_lattice_com_reign_t, stringdata0) + ofs \
|
||||
- idx * sizeof(QByteArrayData)) \
|
||||
)
|
||||
static const qt_meta_stringdata_lattice_com_reign_t qt_meta_stringdata_lattice_com_reign = {
|
||||
{
|
||||
QT_MOC_LITERAL(0, 0, 17) // "lattice_com_reign"
|
||||
|
||||
},
|
||||
"lattice_com_reign"
|
||||
};
|
||||
#undef QT_MOC_LITERAL
|
||||
|
||||
static const uint qt_meta_data_lattice_com_reign[] = {
|
||||
|
||||
// content:
|
||||
7, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
0, 0, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
0, // signalCount
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
void lattice_com_reign::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
Q_UNUSED(_o);
|
||||
Q_UNUSED(_id);
|
||||
Q_UNUSED(_c);
|
||||
Q_UNUSED(_a);
|
||||
}
|
||||
|
||||
const QMetaObject lattice_com_reign::staticMetaObject = {
|
||||
{ &QMainWindow::staticMetaObject, qt_meta_stringdata_lattice_com_reign.data,
|
||||
qt_meta_data_lattice_com_reign, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
|
||||
};
|
||||
|
||||
|
||||
const QMetaObject *lattice_com_reign::metaObject() const
|
||||
{
|
||||
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
|
||||
}
|
||||
|
||||
void *lattice_com_reign::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return Q_NULLPTR;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_lattice_com_reign.stringdata0))
|
||||
return static_cast<void*>(const_cast< lattice_com_reign*>(this));
|
||||
return QMainWindow::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int lattice_com_reign::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QMainWindow::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
return _id;
|
||||
}
|
||||
QT_END_MOC_NAMESPACE
|
Binary file not shown.
@ -0,0 +1,69 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading UI file 'lattice_com_reign.ui'
|
||||
**
|
||||
** Created by: Qt User Interface Compiler version 5.6.1
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef UI_LATTICE_COM_REIGN_H
|
||||
#define UI_LATTICE_COM_REIGN_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtWidgets/QAction>
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtWidgets/QButtonGroup>
|
||||
#include <QtWidgets/QHeaderView>
|
||||
#include <QtWidgets/QMainWindow>
|
||||
#include <QtWidgets/QMenuBar>
|
||||
#include <QtWidgets/QStatusBar>
|
||||
#include <QtWidgets/QToolBar>
|
||||
#include <QtWidgets/QWidget>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_lattice_com_reign
|
||||
{
|
||||
public:
|
||||
QMenuBar *menuBar;
|
||||
QToolBar *mainToolBar;
|
||||
QWidget *centralWidget;
|
||||
QStatusBar *statusBar;
|
||||
|
||||
void setupUi(QMainWindow *lattice_com_reign)
|
||||
{
|
||||
if (lattice_com_reign->objectName().isEmpty())
|
||||
lattice_com_reign->setObjectName(QStringLiteral("lattice_com_reign"));
|
||||
lattice_com_reign->resize(400, 300);
|
||||
menuBar = new QMenuBar(lattice_com_reign);
|
||||
menuBar->setObjectName(QStringLiteral("menuBar"));
|
||||
lattice_com_reign->setMenuBar(menuBar);
|
||||
mainToolBar = new QToolBar(lattice_com_reign);
|
||||
mainToolBar->setObjectName(QStringLiteral("mainToolBar"));
|
||||
lattice_com_reign->addToolBar(mainToolBar);
|
||||
centralWidget = new QWidget(lattice_com_reign);
|
||||
centralWidget->setObjectName(QStringLiteral("centralWidget"));
|
||||
lattice_com_reign->setCentralWidget(centralWidget);
|
||||
statusBar = new QStatusBar(lattice_com_reign);
|
||||
statusBar->setObjectName(QStringLiteral("statusBar"));
|
||||
lattice_com_reign->setStatusBar(statusBar);
|
||||
|
||||
retranslateUi(lattice_com_reign);
|
||||
|
||||
QMetaObject::connectSlotsByName(lattice_com_reign);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QMainWindow *lattice_com_reign)
|
||||
{
|
||||
lattice_com_reign->setWindowTitle(QApplication::translate("lattice_com_reign", "lattice_com_reign", 0));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class lattice_com_reign: public Ui_lattice_com_reign {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // UI_LATTICE_COM_REIGN_H
|
@ -0,0 +1,21 @@
|
||||
#-------------------------------------------------
|
||||
#
|
||||
# Project created by QtCreator 2018-10-06T21:22:33
|
||||
#
|
||||
#-------------------------------------------------
|
||||
|
||||
QT += core gui
|
||||
QT += serialport
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
|
||||
TARGET = com_linux
|
||||
TEMPLATE = app
|
||||
|
||||
|
||||
SOURCES += main.cpp\
|
||||
lattice_com_reign.cpp
|
||||
|
||||
HEADERS += lattice_com_reign.h
|
||||
|
||||
FORMS += lattice_com_reign.ui
|
@ -0,0 +1,336 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 4.0.2, 2018-10-07T17:13:05. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
<value type="QByteArray">{9f5795d5-b622-4dd0-a24e-5a8fef00d441}</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.ActiveTarget</variable>
|
||||
<value type="int">0</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.EditorSettings</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
|
||||
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
|
||||
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
|
||||
<value type="QString" key="language">Cpp</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
|
||||
<value type="QString" key="language">QmlJS</value>
|
||||
<valuemap type="QVariantMap" key="value">
|
||||
<value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
|
||||
</valuemap>
|
||||
</valuemap>
|
||||
<value type="int" key="EditorConfiguration.CodeStyle.Count">2</value>
|
||||
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
|
||||
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.IndentSize">4</value>
|
||||
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
|
||||
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
|
||||
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
|
||||
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
|
||||
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
|
||||
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
|
||||
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
|
||||
<value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value>
|
||||
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
|
||||
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
|
||||
<value type="int" key="EditorConfiguration.TabSize">8</value>
|
||||
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
|
||||
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
|
||||
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
|
||||
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
|
||||
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.PluginSettings</variable>
|
||||
<valuemap type="QVariantMap"/>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Target.0</variable>
|
||||
<valuemap type="QVariantMap">
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{25311bd8-1f8c-4ae8-a25e-4d0e50893f82}</value>
|
||||
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
|
||||
<value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
|
||||
<value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/t-bird/qt_work/com_linux/build-com_linux-Desktop-Debug</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value>
|
||||
<value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Сборка</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
|
||||
<value type="QString">-w</value>
|
||||
<value type="QString">-r</value>
|
||||
</valuelist>
|
||||
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Сборка</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Сборка</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
|
||||
<value type="QString">-w</value>
|
||||
<value type="QString">-r</value>
|
||||
</valuelist>
|
||||
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Очистка</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Отладка</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">2</value>
|
||||
<value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/t-bird/qt_work/com_linux/build-com_linux-Desktop-Release</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">false</value>
|
||||
<value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">false</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Сборка</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
|
||||
<value type="QString">-w</value>
|
||||
<value type="QString">-r</value>
|
||||
</valuelist>
|
||||
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Сборка</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Сборка</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
|
||||
<value type="QString">-w</value>
|
||||
<value type="QString">-r</value>
|
||||
</valuelist>
|
||||
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Очистка</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Выпуск</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.2">
|
||||
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/t-bird/qt_work/com_linux/build-com_linux-Desktop-Profile</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">qmake</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QtProjectManager.QMakeBuildStep</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.LinkQmlDebuggingLibrary">true</value>
|
||||
<value type="QString" key="QtProjectManager.QMakeBuildStep.QMakeArguments"></value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.QMakeForced">false</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.SeparateDebugInfo">true</value>
|
||||
<value type="bool" key="QtProjectManager.QMakeBuildStep.UseQtQuickCompiler">false</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.1">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Сборка</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
|
||||
<value type="QString">-w</value>
|
||||
<value type="QString">-r</value>
|
||||
</valuelist>
|
||||
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">false</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments"></value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">2</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Сборка</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Build</value>
|
||||
</valuemap>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.1">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
|
||||
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Сборка</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.MakeStep</value>
|
||||
<valuelist type="QVariantList" key="Qt4ProjectManager.MakeStep.AutomaticallyAddedMakeArguments">
|
||||
<value type="QString">-w</value>
|
||||
<value type="QString">-r</value>
|
||||
</valuelist>
|
||||
<value type="bool" key="Qt4ProjectManager.MakeStep.Clean">true</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeArguments">clean</value>
|
||||
<value type="QString" key="Qt4ProjectManager.MakeStep.MakeCommand"></value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Очистка</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Clean</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">2</value>
|
||||
<value type="bool" key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment">false</value>
|
||||
<valuelist type="QVariantList" key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Профилирование</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4BuildConfiguration</value>
|
||||
<value type="int" key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration">0</value>
|
||||
<value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">3</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
|
||||
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Установка</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Локальная установка</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/>
|
||||
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
|
||||
<value type="bool" key="Analyzer.QmlProfiler.AggregateTraces">false</value>
|
||||
<value type="bool" key="Analyzer.QmlProfiler.FlushEnabled">false</value>
|
||||
<value type="uint" key="Analyzer.QmlProfiler.FlushInterval">1000</value>
|
||||
<value type="QString" key="Analyzer.QmlProfiler.LastTraceFile"></value>
|
||||
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
|
||||
<valuelist type="QVariantList" key="Analyzer.Valgrind.AddedSuppressionFiles"/>
|
||||
<value type="bool" key="Analyzer.Valgrind.Callgrind.CollectBusEvents">false</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.Callgrind.CollectSystime">false</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableBranchSim">false</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableCacheSim">false</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.Callgrind.EnableEventToolTips">true</value>
|
||||
<value type="double" key="Analyzer.Valgrind.Callgrind.MinimumCostRatio">0.01</value>
|
||||
<value type="double" key="Analyzer.Valgrind.Callgrind.VisualisationMinimumCostRatio">10</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.FilterExternalIssues">true</value>
|
||||
<value type="int" key="Analyzer.Valgrind.LeakCheckOnFinish">1</value>
|
||||
<value type="int" key="Analyzer.Valgrind.NumCallers">25</value>
|
||||
<valuelist type="QVariantList" key="Analyzer.Valgrind.RemovedSuppressionFiles"/>
|
||||
<value type="int" key="Analyzer.Valgrind.SelfModifyingCodeDetection">1</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.Settings.UseGlobalSettings">true</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.ShowReachable">false</value>
|
||||
<value type="bool" key="Analyzer.Valgrind.TrackOrigins">true</value>
|
||||
<value type="QString" key="Analyzer.Valgrind.ValgrindExecutable">valgrind</value>
|
||||
<valuelist type="QVariantList" key="Analyzer.Valgrind.VisibleErrorKinds">
|
||||
<value type="int">0</value>
|
||||
<value type="int">1</value>
|
||||
<value type="int">2</value>
|
||||
<value type="int">3</value>
|
||||
<value type="int">4</value>
|
||||
<value type="int">5</value>
|
||||
<value type="int">6</value>
|
||||
<value type="int">7</value>
|
||||
<value type="int">8</value>
|
||||
<value type="int">9</value>
|
||||
<value type="int">10</value>
|
||||
<value type="int">11</value>
|
||||
<value type="int">12</value>
|
||||
<value type="int">13</value>
|
||||
<value type="int">14</value>
|
||||
</valuelist>
|
||||
<value type="int" key="PE.EnvironmentAspect.Base">2</value>
|
||||
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">com_linux</value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
|
||||
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/home/t-bird/qt_work/com_linux/com_linux/com_linux.pro</value>
|
||||
<value type="bool" key="QmakeProjectManager.QmakeRunConfiguration.UseLibrarySearchPath">true</value>
|
||||
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value>
|
||||
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">com_linux.pro</value>
|
||||
<value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value>
|
||||
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value>
|
||||
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory.default">/home/t-bird/qt_work/com_linux/build-com_linux-Desktop-Debug</value>
|
||||
<value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
|
||||
<value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
|
||||
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
|
||||
</valuemap>
|
||||
<value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
|
||||
</valuemap>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.TargetCount</variable>
|
||||
<value type="int">1</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
|
||||
<value type="int">18</value>
|
||||
</data>
|
||||
<data>
|
||||
<variable>Version</variable>
|
||||
<value type="int">18</value>
|
||||
</data>
|
||||
</qtcreator>
|
@ -0,0 +1,118 @@
|
||||
#include "lattice_com_reign.h"
|
||||
#include "ui_lattice_com_reign.h"
|
||||
|
||||
#include <QTime>
|
||||
|
||||
lattice_com_reign::lattice_com_reign(QWidget *parent) :
|
||||
QMainWindow(parent),
|
||||
ui(new Ui::lattice_com_reign)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
log = "";
|
||||
on_com_reflseh_clicked();
|
||||
tmr.setInterval(100);
|
||||
tmr.setSingleShot(false);
|
||||
//tmr.setTimerType();
|
||||
QObject::connect(&tmr, SIGNAL(timeout()), this, SLOT (com_data_received()));
|
||||
//QObject::connect(&com, SIGNAL(readyRead()), this, SLOT (com_data_received()));
|
||||
QWidget* widgets_unlocked[] = { ui->com_tx };
|
||||
for (int i = 0; i < sizeof(widgets_unlocked)/sizeof(QWidget*); i++)
|
||||
widgets_unlocked[i]->setEnabled(com.isOpen());
|
||||
tmr.start(1);
|
||||
}
|
||||
|
||||
lattice_com_reign::~lattice_com_reign()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void lattice_com_reign::on_com_reflseh_clicked()
|
||||
{
|
||||
com_list = QSerialPortInfo::availablePorts();
|
||||
for (int i = 0; i < com_list.length(); i++) {
|
||||
if (com_list.at(i).portName() == "ttyUSB0")
|
||||
com_list.removeAt(i);
|
||||
}
|
||||
for (int i = 0; i < com_list.length(); i++)
|
||||
ui->com_list->addItem(com_list.at(i).portName());
|
||||
}
|
||||
|
||||
void lattice_com_reign::on_com_list_currentIndexChanged(int index)
|
||||
{
|
||||
ui->com_list->setToolTip(com_list.at(index).description());
|
||||
}
|
||||
|
||||
void lattice_com_reign::on_connect_clicked()
|
||||
{
|
||||
QWidget* widgets_locked[] = { ui->com_list, ui->com_reflesh };
|
||||
QWidget* widgets_unlocked[] = { ui->com_tx };
|
||||
if (ui->connect->text() == "Connect") {
|
||||
com.setPortName(com_list.at(ui->com_list->currentIndex()).portName());
|
||||
if (com.open(QSerialPort::ReadWrite)) {
|
||||
com.setParity(QSerialPort::NoParity);
|
||||
com.setDataBits(QSerialPort::Data8);
|
||||
com.setStopBits(QSerialPort::OneStop);
|
||||
com.setFlowControl(QSerialPort::NoFlowControl);
|
||||
com.setBaudRate(921600);
|
||||
ui->connect->setText("Disconnect");
|
||||
toLog ("COM " + com.portName() + " OPENED OK");
|
||||
}
|
||||
else
|
||||
toLog ("COM " + com.portName() + " OPEN ERROR");
|
||||
}
|
||||
else {
|
||||
com.close();
|
||||
toLog ("COM " + com.portName() + " CLOSED");
|
||||
ui->connect->setText("Connect");
|
||||
}
|
||||
for (int i = 0; i < sizeof(widgets_locked)/sizeof(QWidget*); i++)
|
||||
widgets_locked[i]->setEnabled(!com.isOpen());
|
||||
for (int i = 0; i < sizeof(widgets_unlocked)/sizeof(QWidget*); i++)
|
||||
widgets_unlocked[i]->setEnabled(com.isOpen());
|
||||
}
|
||||
|
||||
void lattice_com_reign::toLog(QString str)
|
||||
{
|
||||
log = QTime::currentTime().toString("HH:mm:ss") + "\t" + str + "\n" + log;
|
||||
ui->log->setText("LOG\n\n" + log);
|
||||
}
|
||||
|
||||
void lattice_com_reign::on_com_tx_clicked()
|
||||
{
|
||||
QByteArray a;
|
||||
a.push_back(ui->byte_to_transmit->value());
|
||||
com.write(a);
|
||||
toLog ("BYTE " + QString::number(ui->byte_to_transmit->value(), 16) + " TX");
|
||||
}
|
||||
|
||||
void lattice_com_reign::com_data_received()
|
||||
{
|
||||
ui->time->setText(QTime::currentTime().toString("HH:mm:ss"));
|
||||
if (com.isOpen() == false)
|
||||
return;
|
||||
QByteArray bytes_read = com.readAll();
|
||||
QString com_outs_now = "CTS ";/*
|
||||
if (com.isRequestToSend()) com_outs_now = com_outs_now + "1, DTR ";
|
||||
else com_outs_now = com_outs_now + "0, DTR ";
|
||||
if (com.isDataTerminalReady()) com_outs_now = com_outs_now + "1";
|
||||
else com_outs_now = com_outs_now + "0";*/
|
||||
int pinout = com.pinoutSignals();
|
||||
if (pinout & (QSerialPort::ClearToSendSignal)) com_outs_now = com_outs_now + "1, DSR ";
|
||||
else com_outs_now = com_outs_now + "0, DSR ";
|
||||
if (pinout & (QSerialPort::DataSetReadySignal)) com_outs_now = com_outs_now + "1, DCD ";
|
||||
else com_outs_now = com_outs_now + "0, DCD ";
|
||||
if (pinout & (QSerialPort::DataCarrierDetectSignal)) com_outs_now = com_outs_now + "1";
|
||||
else com_outs_now = com_outs_now + "0";
|
||||
if (com_outs_now != com_outs) {
|
||||
com_outs = com_outs_now;
|
||||
toLog(com_outs);
|
||||
}
|
||||
for (int i = 0; i < bytes_read.length(); i++)
|
||||
toLog ("RECEIVED BYTE " + QString::number(((int)(bytes_read.at(i)) & 0xFF), 16) + ", PINOUT " + QString::number(pinout, 16));
|
||||
}
|
||||
|
||||
void lattice_com_reign::on_clear_log_clicked()
|
||||
{
|
||||
log = "";
|
||||
ui->log->setText("LOG\n\n" + log);
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
#ifndef LATTICE_COM_REIGN_H
|
||||
#define LATTICE_COM_REIGN_H
|
||||
|
||||
#include <QMainWindow>
|
||||
|
||||
#include <QtSerialPort/qserialport.h>
|
||||
#include <QtSerialPort/qserialportinfo.h>
|
||||
|
||||
#include <qtimer.h>
|
||||
|
||||
namespace Ui {
|
||||
class lattice_com_reign;
|
||||
}
|
||||
|
||||
class lattice_com_reign : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit lattice_com_reign(QWidget *parent = 0);
|
||||
~lattice_com_reign();
|
||||
|
||||
private slots:
|
||||
void toLog (QString str);
|
||||
|
||||
void on_com_reflseh_clicked();
|
||||
|
||||
void on_com_list_currentIndexChanged(int index);
|
||||
|
||||
void on_connect_clicked();
|
||||
|
||||
void on_com_tx_clicked();
|
||||
|
||||
void on_clear_log_clicked();
|
||||
|
||||
protected slots:
|
||||
void com_data_received();
|
||||
|
||||
private:
|
||||
Ui::lattice_com_reign *ui;
|
||||
QList<QSerialPortInfo> com_list;
|
||||
QSerialPort com;
|
||||
|
||||
QString log;
|
||||
QString com_outs;
|
||||
|
||||
QTimer tmr;
|
||||
};
|
||||
|
||||
#endif // LATTICE_COM_REIGN_H
|
@ -0,0 +1,152 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>lattice_com_reign</class>
|
||||
<widget class="QMainWindow" name="lattice_com_reign">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>588</width>
|
||||
<height>492</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>lattice_com_reign</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralWidget">
|
||||
<widget class="QPushButton" name="com_reflesh">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>0</y>
|
||||
<width>31</width>
|
||||
<height>27</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>R</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QComboBox" name="com_list">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>54</x>
|
||||
<y>0</y>
|
||||
<width>91</width>
|
||||
<height>27</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="connect">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>160</x>
|
||||
<y>0</y>
|
||||
<width>99</width>
|
||||
<height>27</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Connect</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QTextEdit" name="log">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>90</y>
|
||||
<width>571</width>
|
||||
<height>331</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QSpinBox" name="byte_to_transmit">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>310</x>
|
||||
<y>0</y>
|
||||
<width>51</width>
|
||||
<height>27</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>255</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="displayIntegerBase">
|
||||
<number>16</number>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="com_tx">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>370</x>
|
||||
<y>0</y>
|
||||
<width>99</width>
|
||||
<height>27</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Transmit</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="time">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>480</x>
|
||||
<y>-4</y>
|
||||
<width>101</width>
|
||||
<height>31</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>18</pointsize>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>12:15:28</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="clear_log">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>50</y>
|
||||
<width>99</width>
|
||||
<height>27</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>CLR</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QMenuBar" name="menuBar">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>588</width>
|
||||
<height>25</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QToolBar" name="mainToolBar">
|
||||
<attribute name="toolBarArea">
|
||||
<enum>TopToolBarArea</enum>
|
||||
</attribute>
|
||||
<attribute name="toolBarBreak">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
</widget>
|
||||
<widget class="QStatusBar" name="statusBar"/>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
@ -0,0 +1,11 @@
|
||||
#include "lattice_com_reign.h"
|
||||
#include <QApplication>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
lattice_com_reign w;
|
||||
w.show();
|
||||
|
||||
return a.exec();
|
||||
}
|
@ -0,0 +1,268 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2011-2012 Denis Shienkov <denis.shienkov@gmail.com>
|
||||
** Copyright (C) 2011 Sergey Belyashov <Sergey.Belyashov@gmail.com>
|
||||
** Copyright (C) 2012 Laszlo Papp <lpapp@kde.org>
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the QtSerialPort module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QSERIALPORT_P_H
|
||||
#define QSERIALPORT_P_H
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
// -------------
|
||||
//
|
||||
// This file is not part of the Qt API. It exists purely as an
|
||||
// implementation detail. This header file may change from version to
|
||||
// version without notice, or even be removed.
|
||||
//
|
||||
// We mean it.
|
||||
//
|
||||
|
||||
#include "qserialport.h"
|
||||
|
||||
#include <private/qiodevice_p.h>
|
||||
#include <qdeadlinetimer.h>
|
||||
|
||||
#if defined(Q_OS_WIN32)
|
||||
# include <qt_windows.h>
|
||||
#elif defined(Q_OS_UNIX)
|
||||
# include <QtCore/qlockfile.h>
|
||||
# include <QtCore/qscopedpointer.h>
|
||||
# include <QtCore/qfileinfo.h>
|
||||
# include <QtCore/qstringlist.h>
|
||||
# include <limits.h>
|
||||
# include <termios.h>
|
||||
# ifdef Q_OS_ANDROID
|
||||
struct serial_struct {
|
||||
int type;
|
||||
int line;
|
||||
unsigned int port;
|
||||
int irq;
|
||||
int flags;
|
||||
int xmit_fifo_size;
|
||||
int custom_divisor;
|
||||
int baud_base;
|
||||
unsigned short close_delay;
|
||||
char io_type;
|
||||
char reserved_char[1];
|
||||
int hub6;
|
||||
unsigned short closing_wait;
|
||||
unsigned short closing_wait2;
|
||||
unsigned char *iomem_base;
|
||||
unsigned short iomem_reg_shift;
|
||||
unsigned int port_high;
|
||||
unsigned long iomap_base;
|
||||
};
|
||||
# define ASYNC_SPD_CUST 0x0030
|
||||
# define ASYNC_SPD_MASK 0x1030
|
||||
# define PORT_UNKNOWN 0
|
||||
# elif defined(Q_OS_LINUX)
|
||||
# include <linux/serial.h>
|
||||
# endif
|
||||
#else
|
||||
# error Unsupported OS
|
||||
#endif
|
||||
|
||||
#ifndef QSERIALPORT_BUFFERSIZE
|
||||
#define QSERIALPORT_BUFFERSIZE 32768
|
||||
#endif
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QWinOverlappedIoNotifier;
|
||||
class QTimer;
|
||||
class QSocketNotifier;
|
||||
|
||||
#if defined(Q_OS_UNIX)
|
||||
QString serialPortLockFilePath(const QString &portName);
|
||||
#endif
|
||||
|
||||
class QSerialPortErrorInfo
|
||||
{
|
||||
public:
|
||||
explicit QSerialPortErrorInfo(QSerialPort::SerialPortError newErrorCode = QSerialPort::UnknownError,
|
||||
const QString &newErrorString = QString());
|
||||
QSerialPort::SerialPortError errorCode = QSerialPort::UnknownError;
|
||||
QString errorString;
|
||||
};
|
||||
|
||||
class QSerialPortPrivate : public QIODevicePrivate
|
||||
{
|
||||
Q_DECLARE_PUBLIC(QSerialPort)
|
||||
public:
|
||||
QSerialPortPrivate();
|
||||
|
||||
bool open(QIODevice::OpenMode mode);
|
||||
void close();
|
||||
|
||||
QSerialPort::PinoutSignals pinoutSignals();
|
||||
|
||||
bool setDataTerminalReady(bool set);
|
||||
bool setRequestToSend(bool set);
|
||||
|
||||
bool flush();
|
||||
bool clear(QSerialPort::Directions directions);
|
||||
|
||||
bool sendBreak(int duration);
|
||||
bool setBreakEnabled(bool set);
|
||||
|
||||
bool waitForReadyRead(int msec);
|
||||
bool waitForBytesWritten(int msec);
|
||||
|
||||
bool setBaudRate();
|
||||
bool setBaudRate(qint32 baudRate, QSerialPort::Directions directions);
|
||||
bool setDataBits(QSerialPort::DataBits dataBits);
|
||||
bool setParity(QSerialPort::Parity parity);
|
||||
bool setStopBits(QSerialPort::StopBits stopBits);
|
||||
bool setFlowControl(QSerialPort::FlowControl flowControl);
|
||||
|
||||
QSerialPortErrorInfo getSystemError(int systemErrorCode = -1) const;
|
||||
|
||||
void setError(const QSerialPortErrorInfo &errorInfo);
|
||||
|
||||
qint64 writeData(const char *data, qint64 maxSize);
|
||||
|
||||
bool initialize(QIODevice::OpenMode mode);
|
||||
|
||||
static QString portNameToSystemLocation(const QString &port);
|
||||
static QString portNameFromSystemLocation(const QString &location);
|
||||
|
||||
static QList<qint32> standardBaudRates();
|
||||
|
||||
qint64 readBufferMaxSize = 0;
|
||||
QSerialPort::SerialPortError error = QSerialPort::NoError;
|
||||
QString systemLocation;
|
||||
qint32 inputBaudRate = QSerialPort::Baud9600;
|
||||
qint32 outputBaudRate = QSerialPort::Baud9600;
|
||||
QSerialPort::DataBits dataBits = QSerialPort::Data8;
|
||||
QSerialPort::Parity parity = QSerialPort::NoParity;
|
||||
QSerialPort::StopBits stopBits = QSerialPort::OneStop;
|
||||
QSerialPort::FlowControl flowControl = QSerialPort::NoFlowControl;
|
||||
bool settingsRestoredOnClose = true;
|
||||
bool isBreakEnabled = false;
|
||||
|
||||
bool startAsyncRead();
|
||||
|
||||
#if defined(Q_OS_WIN32)
|
||||
|
||||
bool setDcb(DCB *dcb);
|
||||
bool getDcb(DCB *dcb);
|
||||
OVERLAPPED *waitForNotified(QDeadlineTimer deadline);
|
||||
|
||||
qint64 queuedBytesCount(QSerialPort::Direction direction) const;
|
||||
|
||||
bool completeAsyncCommunication(qint64 bytesTransferred);
|
||||
bool completeAsyncRead(qint64 bytesTransferred);
|
||||
bool completeAsyncWrite(qint64 bytesTransferred);
|
||||
|
||||
bool startAsyncCommunication();
|
||||
bool _q_startAsyncWrite();
|
||||
void _q_notified(DWORD numberOfBytes, DWORD errorCode, OVERLAPPED *overlapped);
|
||||
|
||||
void emitReadyRead();
|
||||
|
||||
DCB restoredDcb;
|
||||
COMMTIMEOUTS currentCommTimeouts;
|
||||
COMMTIMEOUTS restoredCommTimeouts;
|
||||
HANDLE handle = INVALID_HANDLE_VALUE;
|
||||
QByteArray readChunkBuffer;
|
||||
QByteArray writeChunkBuffer;
|
||||
bool communicationStarted = false;
|
||||
bool writeStarted = false;
|
||||
bool readStarted = false;
|
||||
QWinOverlappedIoNotifier *notifier = nullptr;
|
||||
QTimer *startAsyncWriteTimer = nullptr;
|
||||
OVERLAPPED communicationOverlapped;
|
||||
OVERLAPPED readCompletionOverlapped;
|
||||
OVERLAPPED writeCompletionOverlapped;
|
||||
DWORD triggeredEventMask = 0;
|
||||
|
||||
#elif defined(Q_OS_UNIX)
|
||||
|
||||
static qint32 settingFromBaudRate(qint32 baudRate);
|
||||
|
||||
bool setTermios(const termios *tio);
|
||||
bool getTermios(termios *tio);
|
||||
|
||||
bool setCustomBaudRate(qint32 baudRate, QSerialPort::Directions directions);
|
||||
bool setStandardBaudRate(qint32 baudRate, QSerialPort::Directions directions);
|
||||
|
||||
bool isReadNotificationEnabled() const;
|
||||
void setReadNotificationEnabled(bool enable);
|
||||
bool isWriteNotificationEnabled() const;
|
||||
void setWriteNotificationEnabled(bool enable);
|
||||
|
||||
bool waitForReadOrWrite(bool *selectForRead, bool *selectForWrite,
|
||||
bool checkRead, bool checkWrite,
|
||||
int msecs);
|
||||
|
||||
qint64 readFromPort(char *data, qint64 maxSize);
|
||||
qint64 writeToPort(const char *data, qint64 maxSize);
|
||||
|
||||
#ifndef CMSPAR
|
||||
qint64 writePerChar(const char *data, qint64 maxSize);
|
||||
#endif
|
||||
|
||||
bool readNotification();
|
||||
bool startAsyncWrite();
|
||||
bool completeAsyncWrite();
|
||||
|
||||
struct termios restoredTermios;
|
||||
int descriptor = -1;
|
||||
|
||||
QSocketNotifier *readNotifier = nullptr;
|
||||
QSocketNotifier *writeNotifier = nullptr;
|
||||
|
||||
bool readPortNotifierCalled = false;
|
||||
bool readPortNotifierState = false;
|
||||
bool readPortNotifierStateSet = false;
|
||||
|
||||
bool emittedReadyRead = false;
|
||||
bool emittedBytesWritten = false;
|
||||
|
||||
qint64 pendingBytesWritten = 0;
|
||||
bool writeSequenceStarted = false;
|
||||
|
||||
QScopedPointer<QLockFile> lockFileScopedPointer;
|
||||
|
||||
#endif
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QSERIALPORT_P_H
|
@ -0,0 +1,89 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2011-2012 Denis Shienkov <denis.shienkov@gmail.com>
|
||||
** Copyright (C) 2011 Sergey Belyashov <Sergey.Belyashov@gmail.com>
|
||||
** Copyright (C) 2012 Laszlo Papp <lpapp@kde.org>
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the QtSerialPort module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QSERIALPORTINFO_P_H
|
||||
#define QSERIALPORTINFO_P_H
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
// -------------
|
||||
//
|
||||
// This file is not part of the Qt API. It exists purely as an
|
||||
// implementation detail. This header file may change from version to
|
||||
// version without notice, or even be removed.
|
||||
//
|
||||
// We mean it.
|
||||
//
|
||||
|
||||
#include <QtCore/qstring.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Q_AUTOTEST_EXPORT QSerialPortInfoPrivate
|
||||
{
|
||||
public:
|
||||
static QString portNameToSystemLocation(const QString &source);
|
||||
static QString portNameFromSystemLocation(const QString &source);
|
||||
|
||||
QString portName;
|
||||
QString device;
|
||||
QString description;
|
||||
QString manufacturer;
|
||||
QString serialNumber;
|
||||
|
||||
quint16 vendorIdentifier = 0;
|
||||
quint16 productIdentifier = 0;
|
||||
|
||||
bool hasVendorIdentifier = false;
|
||||
bool hasProductIdentifier = false;
|
||||
};
|
||||
|
||||
class QSerialPortInfoPrivateDeleter
|
||||
{
|
||||
public:
|
||||
static void cleanup(QSerialPortInfoPrivate *p) {
|
||||
delete p;
|
||||
}
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QSERIALPORTINFO_P_H
|
@ -0,0 +1,147 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2013 Laszlo Papp <lpapp@kde.org>
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the QtSerialPort module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QTUDEV_P_H
|
||||
#define QTUDEV_P_H
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
// -------------
|
||||
//
|
||||
// This file is not part of the Qt API. It exists purely as an
|
||||
// implementation detail. This header file may change from version to
|
||||
// version without notice, or even be removed.
|
||||
//
|
||||
// We mean it.
|
||||
//
|
||||
|
||||
#ifdef LINK_LIBUDEV
|
||||
extern "C"
|
||||
{
|
||||
#include <libudev.h>
|
||||
}
|
||||
#else
|
||||
#include <QtCore/qlibrary.h>
|
||||
#include <QtCore/qstring.h>
|
||||
#include <QtCore/qdebug.h>
|
||||
|
||||
#define GENERATE_SYMBOL_VARIABLE(returnType, symbolName, ...) \
|
||||
typedef returnType (*fp_##symbolName)(__VA_ARGS__); \
|
||||
static fp_##symbolName symbolName;
|
||||
|
||||
#define RESOLVE_SYMBOL(symbolName) \
|
||||
symbolName = (fp_##symbolName)resolveSymbol(udevLibrary, #symbolName); \
|
||||
if (!symbolName) \
|
||||
return false;
|
||||
|
||||
struct udev;
|
||||
|
||||
#define udev_list_entry_foreach(list_entry, first_entry) \
|
||||
for (list_entry = first_entry; \
|
||||
list_entry != nullptr; \
|
||||
list_entry = udev_list_entry_get_next(list_entry))
|
||||
|
||||
struct udev_device;
|
||||
struct udev_enumerate;
|
||||
struct udev_list_entry;
|
||||
|
||||
GENERATE_SYMBOL_VARIABLE(struct ::udev *, udev_new);
|
||||
GENERATE_SYMBOL_VARIABLE(struct ::udev_enumerate *, udev_enumerate_new, struct ::udev *)
|
||||
GENERATE_SYMBOL_VARIABLE(int, udev_enumerate_add_match_subsystem, struct udev_enumerate *, const char *)
|
||||
GENERATE_SYMBOL_VARIABLE(int, udev_enumerate_scan_devices, struct udev_enumerate *)
|
||||
GENERATE_SYMBOL_VARIABLE(struct udev_list_entry *, udev_enumerate_get_list_entry, struct udev_enumerate *)
|
||||
GENERATE_SYMBOL_VARIABLE(struct udev_list_entry *, udev_list_entry_get_next, struct udev_list_entry *)
|
||||
GENERATE_SYMBOL_VARIABLE(struct udev_device *, udev_device_new_from_syspath, struct udev *udev, const char *syspath)
|
||||
GENERATE_SYMBOL_VARIABLE(const char *, udev_list_entry_get_name, struct udev_list_entry *)
|
||||
GENERATE_SYMBOL_VARIABLE(const char *, udev_device_get_devnode, struct udev_device *)
|
||||
GENERATE_SYMBOL_VARIABLE(const char *, udev_device_get_sysname, struct udev_device *)
|
||||
GENERATE_SYMBOL_VARIABLE(const char *, udev_device_get_driver, struct udev_device *)
|
||||
GENERATE_SYMBOL_VARIABLE(struct udev_device *, udev_device_get_parent, struct udev_device *)
|
||||
GENERATE_SYMBOL_VARIABLE(const char *, udev_device_get_subsystem, struct udev_device *)
|
||||
GENERATE_SYMBOL_VARIABLE(const char *, udev_device_get_property_value, struct udev_device *, const char *)
|
||||
GENERATE_SYMBOL_VARIABLE(void, udev_device_unref, struct udev_device *)
|
||||
GENERATE_SYMBOL_VARIABLE(void, udev_enumerate_unref, struct udev_enumerate *)
|
||||
GENERATE_SYMBOL_VARIABLE(void, udev_unref, struct udev *)
|
||||
|
||||
inline QFunctionPointer resolveSymbol(QLibrary *udevLibrary, const char *symbolName)
|
||||
{
|
||||
QFunctionPointer symbolFunctionPointer = udevLibrary->resolve(symbolName);
|
||||
if (!symbolFunctionPointer)
|
||||
qWarning("Failed to resolve the udev symbol: %s", symbolName);
|
||||
|
||||
return symbolFunctionPointer;
|
||||
}
|
||||
|
||||
inline bool resolveSymbols(QLibrary *udevLibrary)
|
||||
{
|
||||
if (!udevLibrary->isLoaded()) {
|
||||
udevLibrary->setFileNameAndVersion(QStringLiteral("udev"), 1);
|
||||
if (!udevLibrary->load()) {
|
||||
udevLibrary->setFileNameAndVersion(QStringLiteral("udev"), 0);
|
||||
if (!udevLibrary->load()) {
|
||||
qWarning("Failed to load the library: %s, supported version(s): %i and %i", qPrintable(udevLibrary->fileName()), 1, 0);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
RESOLVE_SYMBOL(udev_new)
|
||||
RESOLVE_SYMBOL(udev_enumerate_new)
|
||||
RESOLVE_SYMBOL(udev_enumerate_add_match_subsystem)
|
||||
RESOLVE_SYMBOL(udev_enumerate_scan_devices)
|
||||
RESOLVE_SYMBOL(udev_enumerate_get_list_entry)
|
||||
RESOLVE_SYMBOL(udev_list_entry_get_next)
|
||||
RESOLVE_SYMBOL(udev_device_new_from_syspath)
|
||||
RESOLVE_SYMBOL(udev_list_entry_get_name)
|
||||
RESOLVE_SYMBOL(udev_device_get_devnode)
|
||||
RESOLVE_SYMBOL(udev_device_get_sysname)
|
||||
RESOLVE_SYMBOL(udev_device_get_driver)
|
||||
RESOLVE_SYMBOL(udev_device_get_parent)
|
||||
RESOLVE_SYMBOL(udev_device_get_subsystem)
|
||||
RESOLVE_SYMBOL(udev_device_get_property_value)
|
||||
RESOLVE_SYMBOL(udev_device_unref)
|
||||
RESOLVE_SYMBOL(udev_enumerate_unref)
|
||||
RESOLVE_SYMBOL(udev_unref)
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
@ -0,0 +1,91 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the QtCore module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QWINOVERLAPPEDIONOTIFIER_P_H
|
||||
#define QWINOVERLAPPEDIONOTIFIER_P_H
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
// -------------
|
||||
//
|
||||
// This file is not part of the Qt API. It exists purely as an
|
||||
// implementation detail. This header file may change from version to
|
||||
// version without notice, or even be removed.
|
||||
//
|
||||
// We mean it.
|
||||
//
|
||||
|
||||
#include <QtCore/private/qglobal_p.h>
|
||||
#include <qobject.h>
|
||||
#include <qdeadlinetimer.h>
|
||||
|
||||
typedef struct _OVERLAPPED OVERLAPPED;
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QWinOverlappedIoNotifierPrivate;
|
||||
|
||||
class QWinOverlappedIoNotifier : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(QWinOverlappedIoNotifier)
|
||||
Q_DECLARE_PRIVATE(QWinOverlappedIoNotifier)
|
||||
Q_PRIVATE_SLOT(d_func(), void _q_notified())
|
||||
friend class QWinIoCompletionPort;
|
||||
public:
|
||||
QWinOverlappedIoNotifier(QObject *parent = 0);
|
||||
~QWinOverlappedIoNotifier();
|
||||
|
||||
void setHandle(Qt::HANDLE h);
|
||||
Qt::HANDLE handle() const;
|
||||
|
||||
void setEnabled(bool enabled);
|
||||
OVERLAPPED *waitForAnyNotified(QDeadlineTimer deadline);
|
||||
bool waitForNotified(QDeadlineTimer deadline, OVERLAPPED *overlapped);
|
||||
|
||||
Q_SIGNALS:
|
||||
void notified(quint32 numberOfBytes, quint32 errorCode, OVERLAPPED *overlapped);
|
||||
#if !defined(Q_QDOC)
|
||||
void _q_notify();
|
||||
#endif
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QWINOVERLAPPEDIONOTIFIER_P_H
|
@ -0,0 +1 @@
|
||||
#include "qserialport.h"
|
@ -0,0 +1 @@
|
||||
#include "qserialportinfo.h"
|
@ -0,0 +1,8 @@
|
||||
#ifndef QT_QTSERIALPORT_MODULE_H
|
||||
#define QT_QTSERIALPORT_MODULE_H
|
||||
#include <QtSerialPort/QtSerialPortDepends>
|
||||
#include "qserialportglobal.h"
|
||||
#include "qserialport.h"
|
||||
#include "qserialportinfo.h"
|
||||
#include "qtserialportversion.h"
|
||||
#endif
|
@ -0,0 +1,4 @@
|
||||
/* This file was generated by qmake with the info from <root>/src/serialport/serialport.pro. */
|
||||
#ifdef __cplusplus /* create empty PCH in C mode */
|
||||
#include <QtCore/QtCore>
|
||||
#endif
|
@ -0,0 +1 @@
|
||||
#include "qtserialportversion.h"
|
@ -0,0 +1,318 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2012 Denis Shienkov <denis.shienkov@gmail.com>
|
||||
** Copyright (C) 2013 Laszlo Papp <lpapp@kde.org>
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the QtSerialPort module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QSERIALPORT_H
|
||||
#define QSERIALPORT_H
|
||||
|
||||
#include <QtCore/qiodevice.h>
|
||||
|
||||
#include <QtSerialPort/qserialportglobal.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QSerialPortInfo;
|
||||
class QSerialPortPrivate;
|
||||
|
||||
class Q_SERIALPORT_EXPORT QSerialPort : public QIODevice
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DECLARE_PRIVATE(QSerialPort)
|
||||
|
||||
Q_PROPERTY(qint32 baudRate READ baudRate WRITE setBaudRate NOTIFY baudRateChanged)
|
||||
Q_PROPERTY(DataBits dataBits READ dataBits WRITE setDataBits NOTIFY dataBitsChanged)
|
||||
Q_PROPERTY(Parity parity READ parity WRITE setParity NOTIFY parityChanged)
|
||||
Q_PROPERTY(StopBits stopBits READ stopBits WRITE setStopBits NOTIFY stopBitsChanged)
|
||||
Q_PROPERTY(FlowControl flowControl READ flowControl WRITE setFlowControl NOTIFY flowControlChanged)
|
||||
#if QT_DEPRECATED_SINCE(5, 2)
|
||||
Q_PROPERTY(DataErrorPolicy dataErrorPolicy READ dataErrorPolicy WRITE setDataErrorPolicy NOTIFY dataErrorPolicyChanged)
|
||||
#endif
|
||||
Q_PROPERTY(bool dataTerminalReady READ isDataTerminalReady WRITE setDataTerminalReady NOTIFY dataTerminalReadyChanged)
|
||||
Q_PROPERTY(bool requestToSend READ isRequestToSend WRITE setRequestToSend NOTIFY requestToSendChanged)
|
||||
Q_PROPERTY(SerialPortError error READ error RESET clearError NOTIFY error)
|
||||
#if QT_DEPRECATED_SINCE(5, 3)
|
||||
Q_PROPERTY(bool settingsRestoredOnClose READ settingsRestoredOnClose WRITE setSettingsRestoredOnClose NOTIFY settingsRestoredOnCloseChanged)
|
||||
#endif
|
||||
Q_PROPERTY(bool breakEnabled READ isBreakEnabled WRITE setBreakEnabled NOTIFY breakEnabledChanged)
|
||||
|
||||
#if defined(Q_OS_WIN32)
|
||||
typedef void* Handle;
|
||||
#else
|
||||
typedef int Handle;
|
||||
#endif
|
||||
|
||||
public:
|
||||
|
||||
enum Direction {
|
||||
Input = 1,
|
||||
Output = 2,
|
||||
AllDirections = Input | Output
|
||||
};
|
||||
Q_FLAG(Direction)
|
||||
Q_DECLARE_FLAGS(Directions, Direction)
|
||||
|
||||
enum BaudRate {
|
||||
Baud1200 = 1200,
|
||||
Baud2400 = 2400,
|
||||
Baud4800 = 4800,
|
||||
Baud9600 = 9600,
|
||||
Baud19200 = 19200,
|
||||
Baud38400 = 38400,
|
||||
Baud57600 = 57600,
|
||||
Baud115200 = 115200,
|
||||
UnknownBaud = -1
|
||||
};
|
||||
Q_ENUM(BaudRate)
|
||||
|
||||
enum DataBits {
|
||||
Data5 = 5,
|
||||
Data6 = 6,
|
||||
Data7 = 7,
|
||||
Data8 = 8,
|
||||
UnknownDataBits = -1
|
||||
};
|
||||
Q_ENUM(DataBits)
|
||||
|
||||
enum Parity {
|
||||
NoParity = 0,
|
||||
EvenParity = 2,
|
||||
OddParity = 3,
|
||||
SpaceParity = 4,
|
||||
MarkParity = 5,
|
||||
UnknownParity = -1
|
||||
};
|
||||
Q_ENUM(Parity)
|
||||
|
||||
enum StopBits {
|
||||
OneStop = 1,
|
||||
OneAndHalfStop = 3,
|
||||
TwoStop = 2,
|
||||
UnknownStopBits = -1
|
||||
};
|
||||
Q_ENUM(StopBits)
|
||||
|
||||
enum FlowControl {
|
||||
NoFlowControl,
|
||||
HardwareControl,
|
||||
SoftwareControl,
|
||||
UnknownFlowControl = -1
|
||||
};
|
||||
Q_ENUM(FlowControl)
|
||||
|
||||
enum PinoutSignal {
|
||||
NoSignal = 0x00,
|
||||
TransmittedDataSignal = 0x01,
|
||||
ReceivedDataSignal = 0x02,
|
||||
DataTerminalReadySignal = 0x04,
|
||||
DataCarrierDetectSignal = 0x08,
|
||||
DataSetReadySignal = 0x10,
|
||||
RingIndicatorSignal = 0x20,
|
||||
RequestToSendSignal = 0x40,
|
||||
ClearToSendSignal = 0x80,
|
||||
SecondaryTransmittedDataSignal = 0x100,
|
||||
SecondaryReceivedDataSignal = 0x200
|
||||
};
|
||||
Q_FLAG(PinoutSignal)
|
||||
Q_DECLARE_FLAGS(PinoutSignals, PinoutSignal)
|
||||
|
||||
#if QT_DEPRECATED_SINCE(5, 2)
|
||||
#if defined(Q_CC_MSVC) && !defined(Q_CC_CLANG)
|
||||
#pragma deprecated(UnknownBaud)
|
||||
#pragma deprecated(UnknownDataBits)
|
||||
#pragma deprecated(UnknownParity)
|
||||
#pragma deprecated(UnknownStopBits)
|
||||
#pragma deprecated(UnknownFlowControl)
|
||||
#pragma deprecated(TransmittedDataSignal)
|
||||
#pragma deprecated(ReceivedDataSignal)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if QT_DEPRECATED_SINCE(5, 2)
|
||||
enum DataErrorPolicy {
|
||||
SkipPolicy,
|
||||
PassZeroPolicy,
|
||||
IgnorePolicy,
|
||||
StopReceivingPolicy,
|
||||
UnknownPolicy = -1
|
||||
};
|
||||
Q_ENUM(DataErrorPolicy)
|
||||
#endif
|
||||
|
||||
enum SerialPortError {
|
||||
NoError,
|
||||
DeviceNotFoundError,
|
||||
PermissionError,
|
||||
OpenError,
|
||||
ParityError,
|
||||
FramingError,
|
||||
BreakConditionError,
|
||||
WriteError,
|
||||
ReadError,
|
||||
ResourceError,
|
||||
UnsupportedOperationError,
|
||||
UnknownError,
|
||||
TimeoutError,
|
||||
NotOpenError
|
||||
};
|
||||
Q_ENUM(SerialPortError)
|
||||
|
||||
#if QT_DEPRECATED_SINCE(5, 6)
|
||||
#if defined(Q_CC_MSVC) && !defined(Q_CC_CLANG)
|
||||
#pragma deprecated(ParityError)
|
||||
#pragma deprecated(FramingError)
|
||||
#pragma deprecated(BreakConditionError)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
explicit QSerialPort(QObject *parent = nullptr);
|
||||
explicit QSerialPort(const QString &name, QObject *parent = nullptr);
|
||||
explicit QSerialPort(const QSerialPortInfo &info, QObject *parent = nullptr);
|
||||
virtual ~QSerialPort();
|
||||
|
||||
void setPortName(const QString &name);
|
||||
QString portName() const;
|
||||
|
||||
void setPort(const QSerialPortInfo &info);
|
||||
|
||||
bool open(OpenMode mode) override;
|
||||
void close() override;
|
||||
|
||||
#if QT_DEPRECATED_SINCE(5, 3)
|
||||
QT_DEPRECATED void setSettingsRestoredOnClose(bool restore);
|
||||
QT_DEPRECATED bool settingsRestoredOnClose() const;
|
||||
#endif
|
||||
|
||||
bool setBaudRate(qint32 baudRate, Directions directions = AllDirections);
|
||||
qint32 baudRate(Directions directions = AllDirections) const;
|
||||
|
||||
bool setDataBits(DataBits dataBits);
|
||||
DataBits dataBits() const;
|
||||
|
||||
bool setParity(Parity parity);
|
||||
Parity parity() const;
|
||||
|
||||
bool setStopBits(StopBits stopBits);
|
||||
StopBits stopBits() const;
|
||||
|
||||
bool setFlowControl(FlowControl flowControl);
|
||||
FlowControl flowControl() const;
|
||||
|
||||
bool setDataTerminalReady(bool set);
|
||||
bool isDataTerminalReady();
|
||||
|
||||
bool setRequestToSend(bool set);
|
||||
bool isRequestToSend();
|
||||
|
||||
PinoutSignals pinoutSignals();
|
||||
|
||||
bool flush();
|
||||
bool clear(Directions directions = AllDirections);
|
||||
bool atEnd() const override; // ### Qt6: remove me
|
||||
|
||||
#if QT_DEPRECATED_SINCE(5, 2)
|
||||
QT_DEPRECATED bool setDataErrorPolicy(DataErrorPolicy policy = IgnorePolicy);
|
||||
QT_DEPRECATED DataErrorPolicy dataErrorPolicy() const;
|
||||
#endif
|
||||
|
||||
SerialPortError error() const;
|
||||
void clearError();
|
||||
|
||||
qint64 readBufferSize() const;
|
||||
void setReadBufferSize(qint64 size);
|
||||
|
||||
bool isSequential() const override;
|
||||
|
||||
qint64 bytesAvailable() const override;
|
||||
qint64 bytesToWrite() const override;
|
||||
bool canReadLine() const override;
|
||||
|
||||
bool waitForReadyRead(int msecs = 30000) override;
|
||||
bool waitForBytesWritten(int msecs = 30000) override;
|
||||
|
||||
#if QT_DEPRECATED_SINCE(5, 5)
|
||||
QT_DEPRECATED bool sendBreak(int duration = 0);
|
||||
#endif
|
||||
bool setBreakEnabled(bool set = true);
|
||||
bool isBreakEnabled() const;
|
||||
|
||||
Handle handle() const;
|
||||
|
||||
Q_SIGNALS:
|
||||
void baudRateChanged(qint32 baudRate, QSerialPort::Directions directions);
|
||||
void dataBitsChanged(QSerialPort::DataBits dataBits);
|
||||
void parityChanged(QSerialPort::Parity parity);
|
||||
void stopBitsChanged(QSerialPort::StopBits stopBits);
|
||||
void flowControlChanged(QSerialPort::FlowControl flowControl);
|
||||
#if QT_DEPRECATED_SINCE(5, 5)
|
||||
QT_DEPRECATED void dataErrorPolicyChanged(QSerialPort::DataErrorPolicy policy);
|
||||
#endif
|
||||
void dataTerminalReadyChanged(bool set);
|
||||
void requestToSendChanged(bool set);
|
||||
#if QT_DEPRECATED_SINCE(5, 8)
|
||||
void error(QSerialPort::SerialPortError serialPortError);
|
||||
#endif
|
||||
void errorOccurred(QSerialPort::SerialPortError error);
|
||||
#if QT_DEPRECATED_SINCE(5, 5)
|
||||
QT_DEPRECATED void settingsRestoredOnCloseChanged(bool restore);
|
||||
#endif
|
||||
void breakEnabledChanged(bool set);
|
||||
|
||||
protected:
|
||||
qint64 readData(char *data, qint64 maxSize) override;
|
||||
qint64 readLineData(char *data, qint64 maxSize) override;
|
||||
qint64 writeData(const char *data, qint64 maxSize) override;
|
||||
|
||||
private:
|
||||
// ### Qt6: remove me.
|
||||
QSerialPortPrivate * const d_dummy;
|
||||
|
||||
Q_DISABLE_COPY(QSerialPort)
|
||||
|
||||
#if defined(Q_OS_WIN32)
|
||||
Q_PRIVATE_SLOT(d_func(), bool _q_startAsyncWrite())
|
||||
Q_PRIVATE_SLOT(d_func(), void _q_notified(quint32, quint32, OVERLAPPED*))
|
||||
#endif
|
||||
};
|
||||
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(QSerialPort::Directions)
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(QSerialPort::PinoutSignals)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QSERIALPORT_H
|
@ -0,0 +1,61 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2012 Denis Shienkov <denis.shienkov@gmail.com>
|
||||
** Copyright (C) 2012 Laszlo Papp <lpapp@kde.org>
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the QtSerialPort module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QSERIALPORTGLOBAL_H
|
||||
#define QSERIALPORTGLOBAL_H
|
||||
|
||||
#include <QtCore/qstring.h>
|
||||
#include <QtCore/qglobal.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#ifndef QT_STATIC
|
||||
# if defined(QT_BUILD_SERIALPORT_LIB)
|
||||
# define Q_SERIALPORT_EXPORT Q_DECL_EXPORT
|
||||
# else
|
||||
# define Q_SERIALPORT_EXPORT Q_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define Q_SERIALPORT_EXPORT
|
||||
#endif
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QSERIALPORTGLOBAL_H
|
@ -0,0 +1,104 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2012 Denis Shienkov <denis.shienkov@gmail.com>
|
||||
** Copyright (C) 2012 Laszlo Papp <lpapp@kde.org>
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the QtSerialPort module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QSERIALPORTINFO_H
|
||||
#define QSERIALPORTINFO_H
|
||||
|
||||
#include <QtCore/qlist.h>
|
||||
#include <QtCore/qscopedpointer.h>
|
||||
|
||||
#include <QtSerialPort/qserialportglobal.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QSerialPort;
|
||||
class QSerialPortInfoPrivate;
|
||||
class QSerialPortInfoPrivateDeleter;
|
||||
|
||||
class Q_SERIALPORT_EXPORT QSerialPortInfo
|
||||
{
|
||||
Q_DECLARE_PRIVATE(QSerialPortInfo)
|
||||
public:
|
||||
QSerialPortInfo();
|
||||
explicit QSerialPortInfo(const QSerialPort &port);
|
||||
explicit QSerialPortInfo(const QString &name);
|
||||
QSerialPortInfo(const QSerialPortInfo &other);
|
||||
~QSerialPortInfo();
|
||||
|
||||
QSerialPortInfo& operator=(const QSerialPortInfo &other);
|
||||
void swap(QSerialPortInfo &other);
|
||||
|
||||
QString portName() const;
|
||||
QString systemLocation() const;
|
||||
QString description() const;
|
||||
QString manufacturer() const;
|
||||
QString serialNumber() const;
|
||||
|
||||
quint16 vendorIdentifier() const;
|
||||
quint16 productIdentifier() const;
|
||||
|
||||
bool hasVendorIdentifier() const;
|
||||
bool hasProductIdentifier() const;
|
||||
|
||||
bool isNull() const;
|
||||
#if QT_DEPRECATED_SINCE(5, 6)
|
||||
bool isBusy() const;
|
||||
#endif
|
||||
#if QT_DEPRECATED_SINCE(5, 2)
|
||||
QT_DEPRECATED bool isValid() const;
|
||||
#endif
|
||||
|
||||
static QList<qint32> standardBaudRates();
|
||||
static QList<QSerialPortInfo> availablePorts();
|
||||
|
||||
private:
|
||||
QSerialPortInfo(const QSerialPortInfoPrivate &dd);
|
||||
friend QList<QSerialPortInfo> availablePortsByUdev(bool &ok);
|
||||
friend QList<QSerialPortInfo> availablePortsBySysfs(bool &ok);
|
||||
friend QList<QSerialPortInfo> availablePortsByFiltersOfDevices(bool &ok);
|
||||
QScopedPointer<QSerialPortInfoPrivate, QSerialPortInfoPrivateDeleter> d_ptr;
|
||||
};
|
||||
|
||||
inline bool QSerialPortInfo::isNull() const
|
||||
{ return !d_ptr; }
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QSERIALPORTINFO_H
|
@ -0,0 +1,9 @@
|
||||
/* This file was generated by syncqt. */
|
||||
#ifndef QT_QTSERIALPORT_VERSION_H
|
||||
#define QT_QTSERIALPORT_VERSION_H
|
||||
|
||||
#define QTSERIALPORT_VERSION_STR "5.11.2"
|
||||
|
||||
#define QTSERIALPORT_VERSION 0x050B02
|
||||
|
||||
#endif // QT_QTSERIALPORT_VERSION_H
|
Binary file not shown.
Loading…
Reference in new issue