forked from versatica/mediasoup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
58 lines (47 loc) · 1.59 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
# make tasks for mediasoup-worker.
#
# Best effort to get Python 2 executable and also allow custom PYTHON
# environment variable set by the user.
PYTHON ?= $(shell command -v python2 2> /dev/null || echo python)
.PHONY: default Release Debug test test-Release test-Debug xcode clean clean-all
default:
ifeq ($(MEDIASOUP_BUILDTYPE),Debug)
make Debug
else
make Release
endif
Release:
cd worker && $(PYTHON) ./scripts/configure.py -R mediasoup-worker
$(MAKE) BUILDTYPE=Release -C worker/out
Debug:
cd worker && $(PYTHON) ./scripts/configure.py -R mediasoup-worker
$(MAKE) BUILDTYPE=Debug -C worker/out
test:
ifeq ($(MEDIASOUP_BUILDTYPE),Debug)
make test-Debug
else
make test-Release
endif
test-Release:
cd worker && $(PYTHON) ./scripts/configure.py -R mediasoup-worker-test
$(MAKE) BUILDTYPE=Release -C worker/out
test-Debug:
cd worker && $(PYTHON) ./scripts/configure.py -R mediasoup-worker-test
$(MAKE) BUILDTYPE=Debug -C worker/out
xcode:
cd worker && $(PYTHON) ./scripts/configure.py --format=xcode
clean:
$(RM) -rf worker/out/Release/mediasoup-worker
$(RM) -rf worker/out/Release/obj.target/mediasoup-worker
$(RM) -rf worker/out/Release/mediasoup-worker-test
$(RM) -rf worker/out/Release/obj.target/mediasoup-worker-test
$(RM) -rf worker/out/Debug/mediasoup-worker
$(RM) -rf worker/out/Debug/obj.target/mediasoup-worker
$(RM) -rf worker/out/Debug/mediasoup-worker-test
$(RM) -rf worker/out/Debug/obj.target/mediasoup-worker-test
clean-all:
$(RM) -rf worker/out
$(RM) -rf worker/mediasoup-worker.xcodeproj
$(RM) -rf worker/mediasoup-worker-test.xcodeproj
$(RM) -rf worker/deps/*/*.xcodeproj