Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
rpasichnyk committed Jan 15, 2021
2 parents 11b2180 + b0632c4 commit 7afcf49
Show file tree
Hide file tree
Showing 157 changed files with 15,820 additions and 984 deletions.
92 changes: 0 additions & 92 deletions android/AndroidManifest.xml

This file was deleted.

2 changes: 1 addition & 1 deletion android/AndroidManifest.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

</application>

<uses-sdk android:minSdkVersion='"23"' android:targetSdkVersion='"28"'/>
<uses-sdk android:minSdkVersion='"23"' android:targetSdkVersion='"29"'/>
<supports-screens android:largeScreens='"true"' android:normalScreens='"true"' android:anyDensity='"true"' android:smallScreens='"true"'/>

<!-- The following comment will be replaced upon deployment with default permissions based on the dependencies of the application.
Expand Down
2 changes: 2 additions & 0 deletions application/create_app
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ cp ../utility.cpp $APP_NAME
cp ../utility.h $APP_NAME
cp ../tcpserversimple.cpp $APP_NAME
cp ../tcpserversimple.h $APP_NAME
cp ../udpserversimple.cpp $APP_NAME
cp ../udpserversimple.h $APP_NAME

cp -r ../res/config/* $APP_NAME/res/config

Expand Down
16 changes: 13 additions & 3 deletions application/template/application.pro
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
VT_VERSION = 0.95
VT_VERSION = 2.07
VT_IS_TEST_VERSION = 1
DEFINES += VT_VERSION=$$VT_VERSION

CONFIG += c++11
Expand All @@ -19,6 +20,13 @@ DEFINES += HAS_SERIALPORT
# Bluetooth available
#DEFINES += HAS_BLUETOOTH

!vt_test_version: {
DEFINES += VT_IS_TEST_VERSION=$$VT_IS_TEST_VERSION
}
vt_test_version: {
DEFINES += VT_IS_TEST_VERSION=1
}

contains(DEFINES, HAS_SERIALPORT) {
QT += serialport
}
Expand All @@ -36,7 +44,8 @@ SOURCES += main.cpp\
vescinterface.cpp \
vbytearray.cpp \
utility.cpp \
tcpserversimple.cpp
tcpserversimple.cpp \
udpserversimple.cpp

HEADERS += mainwindow.h \
commands.h \
Expand All @@ -47,7 +56,8 @@ HEADERS += mainwindow.h \
vescinterface.h \
vbytearray.h \
utility.h \
tcpserversimple.h
tcpserversimple.h \
udpserversimple.h

FORMS += mainwindow.ui

Expand Down
16 changes: 13 additions & 3 deletions application/template/application_qml.pro
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
VT_VERSION = 0.95
VT_VERSION = 2.07
VT_IS_TEST_VERSION = 1
DEFINES += VT_VERSION=$$VT_VERSION

CONFIG += c++11
Expand All @@ -20,6 +21,13 @@ DEFINES += HAS_SERIALPORT
# Bluetooth available
#DEFINES += HAS_BLUETOOTH

!vt_test_version: {
DEFINES += VT_IS_TEST_VERSION=$$VT_IS_TEST_VERSION
}
vt_test_version: {
DEFINES += VT_IS_TEST_VERSION=1
}

contains(DEFINES, HAS_SERIALPORT) {
QT += serialport
}
Expand All @@ -36,7 +44,8 @@ SOURCES += main.cpp\
vescinterface.cpp \
vbytearray.cpp \
utility.cpp \
tcpserversimple.cpp
tcpserversimple.cpp \
udpserversimple.cpp

HEADERS += commands.h \
configparam.h \
Expand All @@ -46,7 +55,8 @@ HEADERS += commands.h \
vescinterface.h \
vbytearray.h \
utility.h \
tcpserversimple.h
tcpserversimple.h \
udpserversimple.h

contains(DEFINES, HAS_BLUETOOTH) {
SOURCES += bleuart.cpp
Expand Down
4 changes: 2 additions & 2 deletions build_android
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ qmake -config release "CONFIG += release_android build_mobile"
make clean
make -j8
make install INSTALL_ROOT=build/android/build
androiddeployqt --gradle --no-gdbserver --output build/android/build --input android-libvesc_tool.so-deployment-settings.json --android-platform android-28
androiddeployqt --gradle --no-gdbserver --output build/android/build --input android-libvesc_tool.so-deployment-settings.json --android-platform android-29
mv build/android/build/build/outputs/apk/build-debug.apk build/android/vesc_tool_mobile.apk
rm -rf build/android/build
rm -rf build/android/obj
Expand All @@ -36,7 +36,7 @@ qmake -config release "CONFIG += release_android"
make clean
make -j8
make install INSTALL_ROOT=build/android/build
androiddeployqt --gradle --no-gdbserver --output build/android/build --input android-libvesc_tool.so-deployment-settings.json --android-platform android-28
androiddeployqt --gradle --no-gdbserver --output build/android/build --input android-libvesc_tool.so-deployment-settings.json --android-platform android-29
mv build/android/build/build/outputs/apk/build-debug.apk build/android/vesc_tool_full.apk
rm -rf build/android/build
rm -rf build/android/obj
Expand Down
24 changes: 19 additions & 5 deletions build_lin
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
# https://wiki.qt.io/Building_Qt_5_from_Git

# sudo apt-get build-dep qt5-default
# sudo apt-get install libxcb-xinerama0-dev build-essential perl python git "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev flex bison gperf libicu-dev libxslt-dev ruby libssl-dev libxcursor-dev libxcomposite-dev libxdamage-dev libxrandr-dev libfontconfig1-dev libcap-dev libxtst-dev libpulse-dev libudev-dev libpci-dev libnss3-dev libasound2-dev libxss-dev libegl1-mesa-dev gperf bison libbz2-dev libgcrypt11-dev libdrm-dev libcups2-dev libatkmm-1.6-dev libasound2-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libbluetooth-dev bluetooth blueman bluez libusb-dev libdbus-1-dev bluez-hcidump bluez-tools libbluetooth-dev libgles2-mesa-dev
# sudo apt-get install libxcb-xinerama0-dev build-essential perl python git "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev flex bison gperf libicu-dev libxslt-dev ruby libssl-dev libxcursor-dev libxcomposite-dev libxdamage-dev libxrandr-dev libfontconfig1-dev libcap-dev libxtst-dev libpulse-dev libudev-dev libpci-dev libnss3-dev libasound2-dev libxss-dev libegl1-mesa-dev gperf bison libbz2-dev libgcrypt20-dev libdrm-dev libcups2-dev libatkmm-1.6-dev libasound2-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libbluetooth-dev bluetooth blueman bluez libusb-dev libdbus-1-dev bluez-hcidump bluez-tools libbluetooth-dev libgles2-mesa-dev

# OpenSSL (Not too sure about this...)
# cd /opt
# sudo mkdir openssl
# sudo chown $USER openssl
# git clone git clone git://git.openssl.org/openssl.git
# git clone git://git.openssl.org/openssl.git
# cd openssl
# git checkout OpenSSL_1_1_1c
# ./config no-shared
Expand All @@ -28,7 +28,7 @@
# perl init-repository --module-subset=default,-qtwebkit,-qtwebkit-examples,-qtwebengine
# mkdir build
# cd build
# ../configure -prefix /opt/Qt/5.9-static/ -release -opensource -confirm-license -static -no-sql-mysql -no-sql-psql -no-sql-sqlite -no-journald -qt-zlib -no-mtdev -no-gif -qt-libpng -qt-libjpeg -qt-harfbuzz -qt-pcre -qt-xcb -no-xinput2 -no-glib -qt-xkbcommon-x11 -no-compile-examples -no-cups -no-iconv -no-tslib -dbus-linked -no-xcb-xlib -no-eglfs -no-directfb -no-linuxfb -no-kms -nomake examples -nomake tests -skip qtwebsockets -skip qtwebchannel -skip qtwebengine -skip qtwayland -skip qtwinextras -skip qtsvg -skip qtsensors -skip multimedia -no-xkbcommon-evdev -no-evdev -no-libproxy -no-icu -no-accessibility -skip imageformats -no-xinput2 -qt-freetype -opengl es2
# ../configure -prefix /opt/Qt/5.9-static/ -release -opensource -confirm-license -static -no-sql-mysql -no-sql-psql -no-sql-sqlite -no-journald -qt-zlib -no-mtdev -no-gif -qt-libpng -qt-libjpeg -qt-harfbuzz -qt-pcre -qt-xcb -no-xinput2 -no-glib -qt-xkbcommon-x11 -no-compile-examples -no-cups -no-iconv -no-tslib -dbus-linked -no-xcb-xlib -no-eglfs -no-directfb -no-linuxfb -no-kms -nomake examples -nomake tests -skip qtwebsockets -skip qtwebchannel -skip qtwebengine -skip qtwayland -skip qtwinextras -skip qtsvg -skip qtsensors -skip multimedia -no-xkbcommon-evdev -no-evdev -no-libproxy -no-icu -skip imageformats -no-xinput2 -qt-freetype -opengl es2
# make -j9
# sudo make install

Expand All @@ -42,7 +42,7 @@
# perl init-repository --module-subset=default,-qtwebkit,-qtwebkit-examples,-qtwebengine
# mkdir build
# cd build
# ../configure -prefix /opt/Qt/5.12-static/ -release -opensource -confirm-license -static -no-sql-mysql -no-sql-psql -no-sql-sqlite -no-journald -qt-zlib -no-mtdev -no-gif -qt-libpng -qt-libjpeg -qt-harfbuzz -qt-pcre -qt-xcb -no-glib -no-compile-examples -no-cups -no-iconv -no-tslib -dbus-linked -no-xcb-xlib -no-eglfs -no-directfb -no-linuxfb -no-kms -nomake examples -nomake tests -skip qtwebsockets -skip qtwebchannel -skip qtwebengine -skip qtwayland -skip qtwinextras -skip qtsvg -skip qtsensors -skip multimedia -no-evdev -no-libproxy -no-icu -no-accessibility -qt-freetype -skip qtimageformats -opengl es2
# ../configure -prefix /opt/Qt/5.12-static/ -release -opensource -confirm-license -static -no-sql-mysql -no-sql-psql -no-sql-sqlite -no-journald -qt-zlib -no-mtdev -no-gif -qt-libpng -qt-libjpeg -qt-harfbuzz -qt-pcre -qt-xcb -no-glib -no-compile-examples -no-cups -no-iconv -no-tslib -dbus-linked -no-xcb-xlib -no-eglfs -no-directfb -no-linuxfb -no-kms -nomake examples -nomake tests -skip qtwebsockets -skip qtwebchannel -skip qtwebengine -skip qtwayland -skip qtwinextras -skip qtsvg -skip qtsensors -skip multimedia -no-evdev -no-libproxy -no-icu -qt-freetype -skip qtimageformats -opengl es2
# make -j9
# sudo make install

Expand All @@ -56,7 +56,21 @@
# perl init-repository --module-subset=default,-qtwebkit,-qtwebkit-examples,-qtwebengine
# mkdir build
# cd build
# ../configure -prefix /opt/Qt/5.13-static/ -release -opensource -confirm-license -static -no-sql-mysql -no-sql-psql -no-sql-sqlite -no-journald -qt-zlib -no-mtdev -no-gif -qt-libpng -qt-libjpeg -qt-harfbuzz -qt-pcre -qt-xcb -no-glib -no-compile-examples -no-cups -no-iconv -no-tslib -dbus-linked -no-xcb-xlib -no-eglfs -no-directfb -no-linuxfb -no-kms -nomake examples -nomake tests -skip qtwebsockets -skip qtwebchannel -skip qtwebengine -skip qtwayland -skip qtwinextras -skip qtsvg -skip qtsensors -skip multimedia -no-evdev -no-libproxy -no-icu -no-accessibility -qt-freetype -skip qtimageformats -opengl es2
# ../configure -prefix /opt/Qt/5.13-static/ -release -opensource -confirm-license -static -no-sql-mysql -no-sql-psql -no-sql-sqlite -no-journald -qt-zlib -no-mtdev -no-gif -qt-libpng -qt-libjpeg -qt-harfbuzz -qt-pcre -qt-xcb -no-glib -no-compile-examples -no-cups -no-iconv -no-tslib -dbus-linked -no-xcb-xlib -no-eglfs -no-directfb -no-linuxfb -no-kms -nomake examples -nomake tests -skip qtwebsockets -skip qtwebchannel -skip qtwebengine -skip qtwayland -skip qtwinextras -skip qtsvg -skip qtsensors -skip multimedia -no-evdev -no-libproxy -no-icu -qt-freetype -skip qtimageformats -opengl es2
# make -j9
# sudo make install

# Qt 5.15:
# cd /opt
# sudo mkdir qt5
# sudo chown $USER qt5
# git clone https://code.qt.io/qt/qt5.git
# cd qt5
# git checkout 5.15
# perl init-repository --module-subset=default,-qtwebkit,-qtwebkit-examples,-qtwebengine
# mkdir build
# cd build
# ../configure -prefix /opt/Qt/5.15-static/ -release -opensource -confirm-license -static -no-sql-mysql -no-sql-psql -no-sql-sqlite -no-journald -qt-zlib -no-mtdev -no-gif -qt-libpng -qt-libjpeg -qt-harfbuzz -qt-pcre -no-glib -no-compile-examples -no-cups -no-iconv -no-tslib -dbus-linked -no-xcb-xlib -no-eglfs -no-directfb -no-linuxfb -no-kms -nomake examples -nomake tests -skip qtwebsockets -skip qtwebchannel -skip qtwebengine -skip qtwayland -skip qtwinextras -skip qtsvg -skip qtsensors -skip multimedia -no-evdev -no-libproxy -no-icu -no-accessibility -qt-freetype -skip qtimageformats -opengl es2
# make -j9
# sudo make install

Expand Down
7 changes: 5 additions & 2 deletions build_win
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/bin/bash

# http://stackoverflow.com/questions/14170590/building-qt-5-on-linux-for-windows
# https://stackoverflow.com/questions/14170590/building-qt-5-on-linux-for-windows
# https://github.com/mxe/mxe/issues/2561

# cd /opt
# sudo mkdir mxe2
# sudo chown $USER mxe2
# git clone https://github.com/mxe/mxe.git mxe2
# sudo apt-get install autoconf automake autopoint bash bison bzip2 flex gettext git g++ gperf intltool libffi-dev libgdk-pixbuf2.0-dev libtool libltdl-dev libssl-dev libxml-parser-perl make openssl p7zip-full patch perl pkg-config python ruby scons sed unzip wget xz-utils g++-multilib libc6-dev-i386 libtool-bin lzip
# sudo apt-get install autoconf automake autopoint bash bison bzip2 flex gettext git g++ gperf intltool libffi-dev libgdk-pixbuf2.0-dev libtool libltdl-dev libssl-dev libxml-parser-perl make openssl p7zip-full patch perl pkg-config python ruby scons sed unzip wget xz-utils g++-multilib libc6-dev-i386 libtool-bin lzip python-mako
# cd mxe2
# make qtbase
# make qtserialport
Expand All @@ -15,6 +16,8 @@
# make qtquickcontrols2
# make qtserialbus
# make qtlocation
# make qtgamepad
# make qtgraphicaleffects

set -e

Expand Down

0 comments on commit 7afcf49

Please sign in to comment.