diff options
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 |