diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-01-29 11:00:59 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-01-29 11:00:59 +0100 |
commit | affa4b43443a980ff2e80441a9e340801ccc8159 (patch) | |
tree | f9d6d359250024160a3720d9bee6c8e45994074f /BUILDING.md | |
parent | Added qbs project file (diff) | |
download | smolbote-affa4b43443a980ff2e80441a9e340801ccc8159.tar.xz |
Reading version tag from repo
Diffstat (limited to 'BUILDING.md')
-rw-r--r-- | BUILDING.md | 27 |
1 files changed, 17 insertions, 10 deletions
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 |