summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorsatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-20 15:49:51 +0000
committersatish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-20 15:49:51 +0000
commita026daa258eb0400aeb6357dd5ab3653cb182490 (patch)
tree76ed9b773d0719280a895948045a966fab48925d /build
parent53262643ac0804f941088db577a442c72bf6563a (diff)
downloadchromium_src-a026daa258eb0400aeb6357dd5ab3653cb182490.zip
chromium_src-a026daa258eb0400aeb6357dd5ab3653cb182490.tar.gz
chromium_src-a026daa258eb0400aeb6357dd5ab3653cb182490.tar.bz2
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
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi8
1 files changed, 8 insertions, 0 deletions
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'],
}],