From affa4b43443a980ff2e80441a9e340801ccc8159 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 29 Jan 2017 11:00:59 +0100 Subject: Reading version tag from repo --- BUILDING.md | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'BUILDING.md') diff --git a/BUILDING.md b/BUILDING.md index dabd1e8..6afad9f 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -1,28 +1,34 @@ ## Building -* (Recommended) Create a build folder and change into it +### Tools +* Qt +* gcc on linux, msvc on windows +* qbs + +### Steps + +* Create a build folder ``` -mkdir build && cd build +[smolbote repo]$ mkdir build ``` -* Generate the Makefile +* Run qbs ``` -qmake-qt5 ../src/smolbote.pro - -* [TODO] Prepare translations +[smolbote repo]$ qbs build --build-directory build --file src/smolbote.qbs profile:qt5 release +``` +This installs the files to build/release/install-root. -* Run make +* Test run using the specified Qt profile (optional) ``` -make +[smolbote repo]$ qbs run --build-directory build --file src/smolbote.qbs --products poi profile:qt5 release ``` ### Notes -* Don't do any steps marked [TODO] * Windows: MSVC compiler is required because of QtWebEngine dependency * Windows: Passing the -v or -h parameters creates a dialog box instead of writing the output to stdout. This is Qt behaviour. -## Deploying +## Packaging ### Tarball @@ -53,6 +59,7 @@ sha512sum --check checksum.sha512 ``` ### Windows +Collect the required libraries using ``` QT_DIR\QT_VER\msvc2015_64\windeployqt.exe build-PROFILE\release\qtbrowser.exe -- cgit v1.2.1