diff --git a/com_linux/build-com_linux-Desktop-Debug/Makefile b/com_linux/build-com_linux-Desktop-Debug/Makefile new file mode 100644 index 0000000..96726eb --- /dev/null +++ b/com_linux/build-com_linux-Desktop-Debug/Makefile @@ -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: + diff --git a/com_linux/build-com_linux-Desktop-Debug/com_linux b/com_linux/build-com_linux-Desktop-Debug/com_linux new file mode 100644 index 0000000..1927e74 Binary files /dev/null and b/com_linux/build-com_linux-Desktop-Debug/com_linux differ diff --git a/com_linux/build-com_linux-Desktop-Debug/lattice_com_reign.o b/com_linux/build-com_linux-Desktop-Debug/lattice_com_reign.o new file mode 100644 index 0000000..c346ee1 Binary files /dev/null and b/com_linux/build-com_linux-Desktop-Debug/lattice_com_reign.o differ diff --git a/com_linux/build-com_linux-Desktop-Debug/main.o b/com_linux/build-com_linux-Desktop-Debug/main.o new file mode 100644 index 0000000..e851e8c Binary files /dev/null and b/com_linux/build-com_linux-Desktop-Debug/main.o differ diff --git a/com_linux/build-com_linux-Desktop-Debug/moc_lattice_com_reign.cpp b/com_linux/build-com_linux-Desktop-Debug/moc_lattice_com_reign.cpp new file mode 100644 index 0000000..3c1630e --- /dev/null +++ b/com_linux/build-com_linux-Desktop-Debug/moc_lattice_com_reign.cpp @@ -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 +#include +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'lattice_com_reign.h' doesn't include ." +#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(_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(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(_a[0]) = -1; + _id -= 7; + } + return _id; +} +QT_END_MOC_NAMESPACE diff --git a/com_linux/build-com_linux-Desktop-Debug/moc_lattice_com_reign.o b/com_linux/build-com_linux-Desktop-Debug/moc_lattice_com_reign.o new file mode 100644 index 0000000..188bcf5 Binary files /dev/null and b/com_linux/build-com_linux-Desktop-Debug/moc_lattice_com_reign.o differ diff --git a/com_linux/build-com_linux-Desktop-Debug/ui_lattice_com_reign.h b/com_linux/build-com_linux-Desktop-Debug/ui_lattice_com_reign.h new file mode 100644 index 0000000..877142b --- /dev/null +++ b/com_linux/build-com_linux-Desktop-Debug/ui_lattice_com_reign.h @@ -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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +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 diff --git a/com_linux/build-com_linux-Desktop-Profile/Makefile b/com_linux/build-com_linux-Desktop-Profile/Makefile new file mode 100644 index 0000000..331bc87 --- /dev/null +++ b/com_linux/build-com_linux-Desktop-Profile/Makefile @@ -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: + diff --git a/com_linux/build-com_linux-Desktop-Profile/com_linux b/com_linux/build-com_linux-Desktop-Profile/com_linux new file mode 100644 index 0000000..839897a Binary files /dev/null and b/com_linux/build-com_linux-Desktop-Profile/com_linux differ diff --git a/com_linux/build-com_linux-Desktop-Profile/com_linux.debug b/com_linux/build-com_linux-Desktop-Profile/com_linux.debug new file mode 100644 index 0000000..1592474 Binary files /dev/null and b/com_linux/build-com_linux-Desktop-Profile/com_linux.debug differ diff --git a/com_linux/build-com_linux-Desktop-Profile/lattice_com_reign.o b/com_linux/build-com_linux-Desktop-Profile/lattice_com_reign.o new file mode 100644 index 0000000..23847aa Binary files /dev/null and b/com_linux/build-com_linux-Desktop-Profile/lattice_com_reign.o differ diff --git a/com_linux/build-com_linux-Desktop-Profile/main.o b/com_linux/build-com_linux-Desktop-Profile/main.o new file mode 100644 index 0000000..e8a5c93 Binary files /dev/null and b/com_linux/build-com_linux-Desktop-Profile/main.o differ diff --git a/com_linux/build-com_linux-Desktop-Profile/moc_lattice_com_reign.cpp b/com_linux/build-com_linux-Desktop-Profile/moc_lattice_com_reign.cpp new file mode 100644 index 0000000..700e928 --- /dev/null +++ b/com_linux/build-com_linux-Desktop-Profile/moc_lattice_com_reign.cpp @@ -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 +#include +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'lattice_com_reign.h' doesn't include ." +#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(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 diff --git a/com_linux/build-com_linux-Desktop-Profile/moc_lattice_com_reign.o b/com_linux/build-com_linux-Desktop-Profile/moc_lattice_com_reign.o new file mode 100644 index 0000000..24ced04 Binary files /dev/null and b/com_linux/build-com_linux-Desktop-Profile/moc_lattice_com_reign.o differ diff --git a/com_linux/build-com_linux-Desktop-Profile/ui_lattice_com_reign.h b/com_linux/build-com_linux-Desktop-Profile/ui_lattice_com_reign.h new file mode 100644 index 0000000..bd56fe9 --- /dev/null +++ b/com_linux/build-com_linux-Desktop-Profile/ui_lattice_com_reign.h @@ -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 +#include +#include +#include +#include +#include +#include +#include +#include +#include + +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 diff --git a/com_linux/com_linux/com_linux.pro b/com_linux/com_linux/com_linux.pro new file mode 100644 index 0000000..dcfa4b3 --- /dev/null +++ b/com_linux/com_linux/com_linux.pro @@ -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 diff --git a/com_linux/com_linux/com_linux.pro.user b/com_linux/com_linux/com_linux.pro.user new file mode 100644 index 0000000..a4236b5 --- /dev/null +++ b/com_linux/com_linux/com_linux.pro.user @@ -0,0 +1,336 @@ + + + + + + EnvironmentId + {9f5795d5-b622-4dd0-a24e-5a8fef00d441} + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + 80 + true + true + 1 + true + false + 0 + true + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + + ProjectExplorer.Project.Target.0 + + Desktop + Desktop + {25311bd8-1f8c-4ae8-a25e-4d0e50893f82} + 0 + 0 + 0 + + /home/t-bird/qt_work/com_linux/build-com_linux-Desktop-Debug + + + true + qmake + + QtProjectManager.QMakeBuildStep + true + + false + false + false + + + true + Сборка + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Сборка + + ProjectExplorer.BuildSteps.Build + + + + true + Сборка + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Очистка + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Отладка + + Qt4ProjectManager.Qt4BuildConfiguration + 2 + true + + + /home/t-bird/qt_work/com_linux/build-com_linux-Desktop-Release + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + + false + false + false + + + true + Сборка + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Сборка + + ProjectExplorer.BuildSteps.Build + + + + true + Сборка + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Очистка + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Выпуск + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + + /home/t-bird/qt_work/com_linux/build-com_linux-Desktop-Profile + + + true + qmake + + QtProjectManager.QMakeBuildStep + true + + false + true + false + + + true + Сборка + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Сборка + + ProjectExplorer.BuildSteps.Build + + + + true + Сборка + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Очистка + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Профилирование + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + 3 + + + 0 + Установка + + ProjectExplorer.BuildSteps.Deploy + + 1 + Локальная установка + + ProjectExplorer.DefaultDeployConfiguration + + 1 + + + false + false + 1000 + + true + + false + false + false + false + true + 0.01 + 10 + true + 1 + 25 + + 1 + true + false + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + 2 + + com_linux + + Qt4ProjectManager.Qt4RunConfiguration:/home/t-bird/qt_work/com_linux/com_linux/com_linux.pro + true + + com_linux.pro + false + + /home/t-bird/qt_work/com_linux/build-com_linux-Desktop-Debug + 3768 + false + true + false + false + true + + 1 + + + + ProjectExplorer.Project.TargetCount + 1 + + + ProjectExplorer.Project.Updater.FileVersion + 18 + + + Version + 18 + + diff --git a/com_linux/com_linux/lattice_com_reign.cpp b/com_linux/com_linux/lattice_com_reign.cpp new file mode 100644 index 0000000..8dbe9d4 --- /dev/null +++ b/com_linux/com_linux/lattice_com_reign.cpp @@ -0,0 +1,118 @@ +#include "lattice_com_reign.h" +#include "ui_lattice_com_reign.h" + +#include + +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); +} diff --git a/com_linux/com_linux/lattice_com_reign.h b/com_linux/com_linux/lattice_com_reign.h new file mode 100644 index 0000000..5f9ef28 --- /dev/null +++ b/com_linux/com_linux/lattice_com_reign.h @@ -0,0 +1,50 @@ +#ifndef LATTICE_COM_REIGN_H +#define LATTICE_COM_REIGN_H + +#include + +#include +#include + +#include + +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 com_list; + QSerialPort com; + + QString log; + QString com_outs; + + QTimer tmr; +}; + +#endif // LATTICE_COM_REIGN_H diff --git a/com_linux/com_linux/lattice_com_reign.ui b/com_linux/com_linux/lattice_com_reign.ui new file mode 100644 index 0000000..c870d83 --- /dev/null +++ b/com_linux/com_linux/lattice_com_reign.ui @@ -0,0 +1,152 @@ + + + lattice_com_reign + + + + 0 + 0 + 588 + 492 + + + + lattice_com_reign + + + + + + 10 + 0 + 31 + 27 + + + + R + + + + + + 54 + 0 + 91 + 27 + + + + + + + 160 + 0 + 99 + 27 + + + + Connect + + + + + + 10 + 90 + 571 + 331 + + + + + + + 310 + 0 + 51 + 27 + + + + 255 + + + 0 + + + 16 + + + + + + 370 + 0 + 99 + 27 + + + + Transmit + + + + + + 480 + -4 + 101 + 31 + + + + + 18 + 75 + true + + + + 12:15:28 + + + + + + 10 + 50 + 99 + 27 + + + + CLR + + + + + + + 0 + 0 + 588 + 25 + + + + + + TopToolBarArea + + + false + + + + + + + + diff --git a/com_linux/com_linux/main.cpp b/com_linux/com_linux/main.cpp new file mode 100644 index 0000000..ab0b725 --- /dev/null +++ b/com_linux/com_linux/main.cpp @@ -0,0 +1,11 @@ +#include "lattice_com_reign.h" +#include + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + lattice_com_reign w; + w.show(); + + return a.exec(); +} diff --git a/com_linux/include/qt/QtSerialPort/5.11.2/QtSerialPort/private/qserialport_p.h b/com_linux/include/qt/QtSerialPort/5.11.2/QtSerialPort/private/qserialport_p.h new file mode 100644 index 0000000..b0955ae --- /dev/null +++ b/com_linux/include/qt/QtSerialPort/5.11.2/QtSerialPort/private/qserialport_p.h @@ -0,0 +1,268 @@ +/**************************************************************************** +** +** Copyright (C) 2011-2012 Denis Shienkov +** Copyright (C) 2011 Sergey Belyashov +** Copyright (C) 2012 Laszlo Papp +** 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 +#include + +#if defined(Q_OS_WIN32) +# include +#elif defined(Q_OS_UNIX) +# include +# include +# include +# include +# include +# include +# 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 +# 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 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 lockFileScopedPointer; + +#endif +}; + +QT_END_NAMESPACE + +#endif // QSERIALPORT_P_H diff --git a/com_linux/include/qt/QtSerialPort/5.11.2/QtSerialPort/private/qserialportinfo_p.h b/com_linux/include/qt/QtSerialPort/5.11.2/QtSerialPort/private/qserialportinfo_p.h new file mode 100644 index 0000000..405cc41 --- /dev/null +++ b/com_linux/include/qt/QtSerialPort/5.11.2/QtSerialPort/private/qserialportinfo_p.h @@ -0,0 +1,89 @@ +/**************************************************************************** +** +** Copyright (C) 2011-2012 Denis Shienkov +** Copyright (C) 2011 Sergey Belyashov +** Copyright (C) 2012 Laszlo Papp +** 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 + +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 diff --git a/com_linux/include/qt/QtSerialPort/5.11.2/QtSerialPort/private/qtudev_p.h b/com_linux/include/qt/QtSerialPort/5.11.2/QtSerialPort/private/qtudev_p.h new file mode 100644 index 0000000..af2dab2 --- /dev/null +++ b/com_linux/include/qt/QtSerialPort/5.11.2/QtSerialPort/private/qtudev_p.h @@ -0,0 +1,147 @@ +/**************************************************************************** +** +** Copyright (C) 2013 Laszlo Papp +** 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 +} +#else +#include +#include +#include + +#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 diff --git a/com_linux/include/qt/QtSerialPort/5.11.2/QtSerialPort/private/qwinoverlappedionotifier_p.h b/com_linux/include/qt/QtSerialPort/5.11.2/QtSerialPort/private/qwinoverlappedionotifier_p.h new file mode 100644 index 0000000..9ee998b --- /dev/null +++ b/com_linux/include/qt/QtSerialPort/5.11.2/QtSerialPort/private/qwinoverlappedionotifier_p.h @@ -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 +#include +#include + +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 diff --git a/com_linux/include/qt/QtSerialPort/QSerialPort b/com_linux/include/qt/QtSerialPort/QSerialPort new file mode 100644 index 0000000..5d8b037 --- /dev/null +++ b/com_linux/include/qt/QtSerialPort/QSerialPort @@ -0,0 +1 @@ +#include "qserialport.h" diff --git a/com_linux/include/qt/QtSerialPort/QSerialPortInfo b/com_linux/include/qt/QtSerialPort/QSerialPortInfo new file mode 100644 index 0000000..f0ccb9f --- /dev/null +++ b/com_linux/include/qt/QtSerialPort/QSerialPortInfo @@ -0,0 +1 @@ +#include "qserialportinfo.h" diff --git a/com_linux/include/qt/QtSerialPort/QtSerialPort b/com_linux/include/qt/QtSerialPort/QtSerialPort new file mode 100644 index 0000000..cb78358 --- /dev/null +++ b/com_linux/include/qt/QtSerialPort/QtSerialPort @@ -0,0 +1,8 @@ +#ifndef QT_QTSERIALPORT_MODULE_H +#define QT_QTSERIALPORT_MODULE_H +#include +#include "qserialportglobal.h" +#include "qserialport.h" +#include "qserialportinfo.h" +#include "qtserialportversion.h" +#endif diff --git a/com_linux/include/qt/QtSerialPort/QtSerialPortDepends b/com_linux/include/qt/QtSerialPort/QtSerialPortDepends new file mode 100644 index 0000000..5eb0c83 --- /dev/null +++ b/com_linux/include/qt/QtSerialPort/QtSerialPortDepends @@ -0,0 +1,4 @@ +/* This file was generated by qmake with the info from /src/serialport/serialport.pro. */ +#ifdef __cplusplus /* create empty PCH in C mode */ +#include +#endif diff --git a/com_linux/include/qt/QtSerialPort/QtSerialPortVersion b/com_linux/include/qt/QtSerialPort/QtSerialPortVersion new file mode 100644 index 0000000..a9da56e --- /dev/null +++ b/com_linux/include/qt/QtSerialPort/QtSerialPortVersion @@ -0,0 +1 @@ +#include "qtserialportversion.h" diff --git a/com_linux/include/qt/QtSerialPort/qserialport.h b/com_linux/include/qt/QtSerialPort/qserialport.h new file mode 100644 index 0000000..9a5c1d0 --- /dev/null +++ b/com_linux/include/qt/QtSerialPort/qserialport.h @@ -0,0 +1,318 @@ +/**************************************************************************** +** +** Copyright (C) 2012 Denis Shienkov +** Copyright (C) 2013 Laszlo Papp +** 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 + +#include + +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 diff --git a/com_linux/include/qt/QtSerialPort/qserialportglobal.h b/com_linux/include/qt/QtSerialPort/qserialportglobal.h new file mode 100644 index 0000000..f6c5803 --- /dev/null +++ b/com_linux/include/qt/QtSerialPort/qserialportglobal.h @@ -0,0 +1,61 @@ +/**************************************************************************** +** +** Copyright (C) 2012 Denis Shienkov +** Copyright (C) 2012 Laszlo Papp +** 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 +#include + +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 diff --git a/com_linux/include/qt/QtSerialPort/qserialportinfo.h b/com_linux/include/qt/QtSerialPort/qserialportinfo.h new file mode 100644 index 0000000..e4c9288 --- /dev/null +++ b/com_linux/include/qt/QtSerialPort/qserialportinfo.h @@ -0,0 +1,104 @@ +/**************************************************************************** +** +** Copyright (C) 2012 Denis Shienkov +** Copyright (C) 2012 Laszlo Papp +** 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 +#include + +#include + +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 standardBaudRates(); + static QList availablePorts(); + +private: + QSerialPortInfo(const QSerialPortInfoPrivate &dd); + friend QList availablePortsByUdev(bool &ok); + friend QList availablePortsBySysfs(bool &ok); + friend QList availablePortsByFiltersOfDevices(bool &ok); + QScopedPointer d_ptr; +}; + +inline bool QSerialPortInfo::isNull() const +{ return !d_ptr; } + +QT_END_NAMESPACE + +#endif // QSERIALPORTINFO_H diff --git a/com_linux/include/qt/QtSerialPort/qtserialportversion.h b/com_linux/include/qt/QtSerialPort/qtserialportversion.h new file mode 100644 index 0000000..e26d51d --- /dev/null +++ b/com_linux/include/qt/QtSerialPort/qtserialportversion.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 diff --git a/com_linux/libQt5SerialPort.so.5.11.2 b/com_linux/libQt5SerialPort.so.5.11.2 new file mode 100644 index 0000000..dbc04d9 Binary files /dev/null and b/com_linux/libQt5SerialPort.so.5.11.2 differ