-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
27 lines (20 loc) · 859 Bytes
/
Makefile
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
install:
@conan install . -if _builds/conan --update
clean:
@rm -rf _builds
build-mac:
@rm -rf _builds/mac
@cmake -H. -B_builds/mac -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=../deps/restclient-cpp/mac
@cmake --build _builds/mac
build-mac-unity:
@rm -rf _builds/mac-unity
@cmake -H. -B_builds/mac-unity -DCMAKE_BUILD_TYPE=Release -DBUILD_MACOSX_BUNDLE=ON -DCMAKE_PREFIX_PATH=../deps/restclient-cpp/mac
@cmake --build _builds/mac-unity
build-linux:
@rm -rf _builds/linux
@conan install . -if _builds/linux --update
@cmake -H. -B_builds/linux -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=../deps/restclient-cpp/linux
@cmake --build _builds/linux
build-linux-docker:
@docker run -v $(shell pwd):/app-src -it quay.io/tfgco/maestro-example-builder:v2.0.0 -c "cd /app-src && make build-linux"
build-all: build-mac-unity build-linux-docker