From f187495eb00df35faca91d3d046d8c50ede4fce1 Mon Sep 17 00:00:00 2001
From: EndrII <EndrIIMail@gmail.com>
Date: Wed, 29 Aug 2018 22:35:50 +0300
Subject: [PATCH] static build

---
 .gitmodules    |  3 +++
 qtBase         |  1 +
 staticBuild.sh | 16 ++++++++++++++++
 3 files changed, 20 insertions(+)
 create mode 160000 qtBase
 create mode 100755 staticBuild.sh

diff --git a/.gitmodules b/.gitmodules
index 5912210..3f9f279 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +1,6 @@
 [submodule "QuasarAppLib"]
 	path = QuasarAppLib
 	url = https://github.com/QuasarApp/QuasarAppLib.git
+[submodule "qtBase"]
+	path = qtBase
+	url = https://github.com/qt/qtbase.git
diff --git a/qtBase b/qtBase
new file mode 160000
index 0000000..bd42e2f
--- /dev/null
+++ b/qtBase
@@ -0,0 +1 @@
+Subproject commit bd42e2f0cebb2fe8de77a054e9d30aa803749a61
diff --git a/staticBuild.sh b/staticBuild.sh
new file mode 100755
index 0000000..390d4c9
--- /dev/null
+++ b/staticBuild.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+cd qtBase
+git clean -xfd
+
+./configure -confirm-license -release -optimize-size -static -no-opengl -no-openssl -opensource -nomake tests -nomake examples -no-gui -no-widgets -no-dbus -no-accessibility
+
+make -j$(nproc)
+cd ..
+export PATH=$PATH:/qtBase
+
+./qtBase/bin/qmake CQTDeployer.pro
+
+make -j$(nproc)
+
+strip build/*