pristineio / webrtc-build-scripts

A set of build scripts useful for building WebRTC libraries for Android and iOS.
BSD 3-Clause "New" or "Revised" License
1.12k stars 448 forks source link

Getting older revisions of source (Git and SVN) #111

Open bwilks128 opened 9 years ago

bwilks128 commented 9 years ago

I would really appreciate a quick example from someone on how to use these build scripts to specify a specific Git revision and also a pre-Git SVN revision.

Thanks.

bwilks128 commented 9 years ago

And BTW, many thanks to the people who have shared these scripts. You guys are awesome!

ArikYa commented 9 years ago

in order to do this using Git, try using the hash for the revision you want instead of the revision number. The pre-Git revisions are probably not compatible with the current scripts, we had to update the scripts once that change was made, so you'll need to first get older version of the scripts and then try it. It isn't going to be easy :)

ciparis commented 9 years ago

One small(ish) request: it would be super helpful if commits that are made to adapt to the current WebRTC build would note the branch-head that is being referred to. For example, as far as I can tell, branch-heads/44 is: update2Revision 3bd65e10979dd660488fe5a855516cb6e03bb80c

... but I can't see any way of telling which build-scripts version would apply to that release. I can guess by dates of the last commits in the M44 log and getting a relatively close version of build-scripts (June 1), but so far without success; I keep getting:

Running ninja
ninja: Entering directory `out_ios_armeabi_v7a/Debug-iphoneos/'
ninja: error: unknown target 'libWebRTC_objc'
ArikYa commented 9 years ago

I just tested after completely removing the webrtc directory, and using the 2 stage call (get_webrtc and build_webrtc) it works just fine. Please let me know all the steps you took to reproduce the issue

ciparis commented 9 years ago

I did this:

$ source ios/build.sh
$ WEBRTC_DEBUG=true
$ get_webrtc 3bd65e10979dd660488fe5a855516cb6e03bb80c #several not-found directory errors when trying to CD back to working directory)
$ build_webrtc #libWebRTC_objc target not found for many directories, leads to batches of libtool no-such-file errors