track builds in submodule

This commit is contained in:
Michael Kirk 2018-10-22 15:15:09 -06:00
parent fda2f08d0f
commit c15ee1d202
3 changed files with 15 additions and 6 deletions

5
.gitmodules vendored
View File

@ -3,4 +3,7 @@
url = https://chromium.googlesource.com/external/webrtc.git
[submodule "libwebrtc-android"]
path = libwebrtc-android
url = https://github.com/WhisperSystems/libwebrtc-android.git
url = https://github.com/signalapp/libwebrtc-android.git
[submodule "Builds"]
path = Builds
url = https://github.com/signalapp/signal-webrtc-ios-artifacts.git

1
Builds Submodule

@ -0,0 +1 @@
Subproject commit af8b6b232df749574744cd5d092227f8559969f9

View File

@ -1,9 +1,11 @@
ROOT_DIR=./
WEBRTC_SRC_DIR=webrtc/src
BUILD_ARTIFACTS_DIR=./Builds/Build
default: full_build
full_build: clean sync update_tools patch build log_build_env
fast_build: clean sync patch build log_build_env
full_build: clean sync update_tools patch archive
fast_build: clean sync patch archive
clean:
bin/clean_webrtc.py
@ -23,9 +25,12 @@ update_tools:
cd $(WEBRTC_SRC_DIR) && \
gclient runhooks --jobs 16
build:
cd $(WEBRTC_SRC_DIR) && \
tools_webrtc/ios/build_ios_libs.sh
build:
$(WEBRTC_SRC_DIR)/tools_webrtc/ios/build_ios_libs.sh
log_build_env:
bin/print_build_env.py > webrtc/src/out_ios_libs/WebRTC.framework/build_env.txt
archive: build log_build_env
rm -fr $(BUILD_ARTIFACTS_DIR)/WebRTC.framework && \
mv $(WEBRTC_SRC_DIR)/out_ios_libs/WebRTC.framework $(BUILD_ARTIFACTS_DIR)