From f6e27f5e031d59b4e8164ea98831c5e8db902bfe Mon Sep 17 00:00:00 2001 From: "leozwang@webrtc.org" Date: Tue, 15 May 2012 19:25:37 +0000 Subject: [PATCH] Re-enable embedding svn revision into code Description: By using a python scription, this cl tries to get svn revision properly. It current support git-svn and svn, if it fails, "n/a" will be defined as svn revision. BUG=500 TEST= test cases: w/o svn, w/o git-svn. test platforms, linux/windows. Passed all trybots. Review URL: https://webrtc-codereview.appspot.com/564010 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2243 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/build/common.gypi | 4 +--- src/build/version.py | 52 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 3 deletions(-) create mode 100644 src/build/version.py diff --git a/src/build/common.gypi b/src/build/common.gypi index 9a415e5732..e96a965767 100644 --- a/src/build/common.gypi +++ b/src/build/common.gypi @@ -94,9 +94,7 @@ '..','../..', # common_types.h, typedefs.h ], 'defines': [ - #'WEBRTC_SVNREVISION="n/a"', - #'WEBRTC_SVNREVISION="<(webrtc_version)"', - 'WEBRTC_SVNREVISION="