aboutsummaryrefslogtreecommitdiff
path: root/docs/manual/Building.Compiling.md
blob: bf6637ec9510136704d7f1520189c93e97dba027 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Compiling

## Creating qbs configuration
Before you can build anything with qbs, you need to set up the compiler
toolchain as well as Qt.

```
qbs setup-toolchains --detect
qbs setup-qt /usr/bin/qmake-qt5 qt5
```


## Compiling

* Create a build folder
```
[smolbote repo]$ mkdir ../build
```

* Run qbs
```
[smolbote repo]$ qbs build -d ../build profile:qt5 release
```
This installs the files to ../build/release/install-root.

* Run
```
[smolbote repo]$ qbs run -d ../build -p poi profile:qt5 release
```

## mach
mach is a helper script that can build and run smolbote.

#### setup
./mach setup creates a qbs configuration in :settingsDir, 
by default ../build/config.

You can edit this using qbs-config-ui --settings-dir ../build/config.

#### run

#### clean

#### build