From a026daa258eb0400aeb6357dd5ab3653cb182490 Mon Sep 17 00:00:00 2001 From: "satish@chromium.org" Date: Wed, 20 Apr 2011 15:49:51 +0000 Subject: Wrap the p2p transport API in a compile time flag. BUG=none TEST=none Review URL: http://codereview.chromium.org/6882021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82295 0039d316-1c4b-4281-b951-d872f2087c98 --- build/common.gypi | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'build') diff --git a/build/common.gypi b/build/common.gypi index 6333160..0a51eab 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -129,6 +129,10 @@ # Remoting compilation is enabled by default. Set to 0 to disable. 'remoting%': 1, + # P2P APIs are compiled in by default. Set to 0 to disable. + # Also note that this should be enabled for remoting to compile. + 'p2p_apis%': 1, + # If this is set, the clang plugins used on the buildbot will be used. # Run tools/clang/scripts/update.sh to make sure they are compiled. # This causes 'clang_chrome_plugins_flags' to be set. @@ -199,6 +203,7 @@ 'use_titlecase_in_grd_files%': '<(use_titlecase_in_grd_files)', 'use_third_party_translations%': '<(use_third_party_translations)', 'remoting%': '<(remoting)', + 'p2p_apis%': '<(p2p_apis)', 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', # The release channel that this build targets. This is used to restrict @@ -609,6 +614,9 @@ ['remoting==1', { 'defines': ['ENABLE_REMOTING=1'], }], + ['p2p_apis==1', { + 'defines': ['ENABLE_P2P_APIS=1'], + }], ['proprietary_codecs==1', { 'defines': ['USE_PROPRIETARY_CODECS'], }], -- cgit v1.1