Skip to content

Commit

Permalink
Add gn build flag to compile release version (#37)
Browse files Browse the repository at this point in the history
* Add gn build flag to compile release

* Add gn build flag to compile release

* update gnflags

* fix typo
  • Loading branch information
Xia Zhongyang authored Dec 31, 2020
1 parent 91fda03 commit 9ca3356
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ release_docker := alphartc
docker_workdir := /app/AlphaRTC/

docker_flags := --rm -v `pwd`:$(docker_workdir)
gn_flags := --args='is_debug=false'

all: init sync app release

Expand All @@ -23,7 +24,8 @@ release:
sync:
docker run $(docker_flags) $(compile_docker) \
make docker-$@ \
output_dir=$(output_dir)
output_dir=$(output_dir) \
gn_flags=$(gn_flags)

app: peerconnection_serverless

Expand All @@ -40,7 +42,7 @@ docker-sync:
gclient sync
mv -fvn src/* .
rm -rf src
gn gen $(output_dir)
gn gen $(output_dir) $(gn_flags)

docker-app: docker-peerconnection_serverless

Expand Down

0 comments on commit 9ca3356

Please sign in to comment.