In order to switch Chromium to use WebRTC targets instead of duplicated code listings in src/third_party/libjingle it must be possible for Chromium to process webrtc/api/api.gyp. This is currently not possible since it includes build/java.gypi, of which the path is different in a Chromium checkout. It's not possible to resolve this in another way since 'includes' processing takes place early in the GYP cycle, before it's possible to use variables. They're also processed ignoring conditional statements, resulting in an error when api.gyp is processed. BUG=webrtc:4256 TBR=perkj@webrtc.org NOTRY=True Review-Url: https://codereview.webrtc.org/2080563002 Cr-Commit-Position: refs/heads/master@{#13208}
82 lines
2.4 KiB
Python
82 lines
2.4 KiB
Python
# Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license
|
|
# that can be found in the LICENSE file in the root of the source
|
|
# tree. An additional intellectual property rights grant can be found
|
|
# in the file PATENTS. All contributing project authors may
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
{
|
|
'variables': {
|
|
'include_examples%': 1,
|
|
'include_tests%': 1,
|
|
},
|
|
'includes': [
|
|
'webrtc/build/common.gypi',
|
|
],
|
|
'targets': [
|
|
{
|
|
'target_name': 'All',
|
|
'type': 'none',
|
|
'dependencies': [
|
|
'webrtc/api/api.gyp:*',
|
|
'webrtc/base/base.gyp:*',
|
|
'webrtc/common.gyp:*',
|
|
'webrtc/common_audio/common_audio.gyp:*',
|
|
'webrtc/common_video/common_video.gyp:*',
|
|
'webrtc/media/media.gyp:*',
|
|
'webrtc/modules/modules.gyp:*',
|
|
'webrtc/p2p/p2p.gyp:*',
|
|
'webrtc/pc/pc.gyp:*',
|
|
'webrtc/system_wrappers/system_wrappers.gyp:*',
|
|
'webrtc/tools/tools.gyp:*',
|
|
'webrtc/voice_engine/voice_engine.gyp:*',
|
|
'webrtc/webrtc.gyp:*',
|
|
'<(webrtc_vp8_dir)/vp8.gyp:*',
|
|
'<(webrtc_vp9_dir)/vp9.gyp:*',
|
|
],
|
|
'conditions': [
|
|
['OS=="android" and build_with_chromium==0', {
|
|
'dependencies': [
|
|
'webrtc/api/api_java.gyp:*',
|
|
],
|
|
}],
|
|
['include_tests==1', {
|
|
'includes': [
|
|
'webrtc/webrtc_tests.gypi',
|
|
],
|
|
'dependencies': [
|
|
'webrtc/api/api_tests.gyp:*',
|
|
'webrtc/common_video/common_video_unittests.gyp:*',
|
|
'webrtc/system_wrappers/system_wrappers_tests.gyp:*',
|
|
'webrtc/test/metrics.gyp:*',
|
|
'webrtc/test/test.gyp:*',
|
|
],
|
|
}],
|
|
['include_examples==1', {
|
|
'dependencies': [
|
|
'webrtc/webrtc_examples.gyp:*',
|
|
],
|
|
}],
|
|
['(OS=="ios" or (OS=="mac" and mac_deployment_target=="10.7"))', {
|
|
'dependencies': [
|
|
'webrtc/sdk/sdk.gyp:*',
|
|
],
|
|
}],
|
|
['OS=="ios" or (OS=="mac" and target_arch!="ia32")', {
|
|
'dependencies': [
|
|
'talk/app/webrtc/legacy_objc_api.gyp:*',
|
|
],
|
|
'conditions': [
|
|
['include_tests==1', {
|
|
'dependencies': [
|
|
'talk/app/webrtc/legacy_objc_api_tests.gyp:*',
|
|
],
|
|
}],
|
|
],
|
|
}],
|
|
],
|
|
},
|
|
],
|
|
}
|