base.gyp: Add conditions for NaCl builds.

These are needed to be able to cleanup the NaCl
GYP code in src/third_party/libjingle before switching
over to WebRTC's own targets.
See https://code.google.com/p/chromium/codesearch#chromium/src/third_party/libjingle/libjingle_nacl.gyp&l=260 for details.

BUG=webrtc:4256
R=perkj@webrtc.org

Review URL: https://codereview.webrtc.org/1984613002 .

Cr-Commit-Position: refs/heads/master@{#12819}
This commit is contained in:
kjellander@webrtc.org 2016-05-20 09:52:43 +02:00
parent 6c47031ff9
commit 03d45b016a
2 changed files with 6 additions and 2 deletions

View File

@ -475,7 +475,7 @@
],
},
}],
['OS=="mac" or OS=="ios"', {
['(OS=="mac" or OS=="ios") and nacl_untrusted_build==0', {
'sources': [
'maccocoathreadhelper.h',
'maccocoathreadhelper.mm',
@ -555,7 +555,7 @@
}],
],
}],
['OS=="win"', {
['OS=="win" and nacl_untrusted_build==0', {
'sources': [
'win32.cc',
'win32.h',

View File

@ -95,6 +95,10 @@
# third party code will still have the reduced warning settings.
'chromium_code': 1,
# Targets are by default not NaCl untrusted code. Use this variable exclude
# code that uses libraries that aren't available in the NaCl sandbox.
'nacl_untrusted_build%': 0,
# Set to 1 to enable code coverage on Linux using the gcov library.
'coverage%': 0,