Adding instructions for building with custom Qt
This commit is contained in:
parent
409abba995
commit
86c75e6196
|
@ -29,6 +29,14 @@ make build
|
|||
* for `windows`, the binary will have the file extension `.exe` (e.g `bridge.exe`)
|
||||
* for `darwin`, the application will be created with name of the project directory (e.g `bridge.app`)
|
||||
|
||||
## Build with custom Qt installation
|
||||
Please follow the setup instructions in [therecipe/qt wiki](https://github.com/therecipe/qt/wiki/Installation)
|
||||
Once you have successfully finished `qtsetup` you should be able compile Bridge using
|
||||
|
||||
```bash
|
||||
make qtdeploy
|
||||
```
|
||||
|
||||
## Useful tests, lints and checks
|
||||
In order to be able to run following commands please install the development dependencies:
|
||||
`make install-dev-dependencies`
|
||||
|
|
10
Makefile
10
Makefile
|
@ -2,7 +2,7 @@ export GO111MODULE=on
|
|||
GOOS:=$(shell go env GOOS)
|
||||
|
||||
## Build
|
||||
.PHONY: build check-has-go
|
||||
.PHONY: build qtdeploy check-has-go
|
||||
|
||||
VERSION?=1.2.6-git
|
||||
REVISION:=$(shell git rev-parse --short=10 HEAD)
|
||||
|
@ -63,6 +63,14 @@ ${EXE_TARGET}: check-has-go gofiles ${ICO_FILES} update-vendor
|
|||
mv deploy cmd/Desktop-Bridge
|
||||
rm -rf ${GOOS} main.go
|
||||
|
||||
qtdeploy: check-has-go gofiles ${ICO_FILES}
|
||||
go mod vendor
|
||||
rm -rf deploy ${GOOS} ${DEPLOY_DIR}
|
||||
cp cmd/Desktop-Bridge/main.go .
|
||||
qtdeploy ${BUILD_FLAGS} build desktop
|
||||
mv deploy cmd/Desktop-Bridge
|
||||
rm -rf ${GOOS} main.go
|
||||
|
||||
logo.ico: ./internal/frontend/share/icons/logo.ico
|
||||
cp $^ .
|
||||
icon.rc: ./internal/frontend/share/icon.rc
|
||||
|
|
Loading…
Reference in New Issue