Remove all references to GYP

Remove all .gyp and .gypi files.
Remove entries from OWNERS files for *.isolate, *.gyp, *.gypi
Remove unused scripts in webrtc/build.

BUG=webrtc:6323
R=henrika@webrtc.org, phoglund@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#15107}
This commit is contained in:
Henrik Kjellander 2016-11-16 20:11:29 +01:00
parent 67fcad871e
commit b4af3d673a
163 changed files with 20 additions and 15985 deletions

1
.gitignore vendored
View File

@ -45,7 +45,6 @@
/chromium/.last_sync_chromium /chromium/.last_sync_chromium
/chromium/_bad_scm /chromium/_bad_scm
/chromium/src /chromium/src
/gyp-mac-tool
/links /links
/links.db /links.db
/mojo /mojo

View File

@ -227,33 +227,7 @@ def _CheckApprovedFilesLintClean(input_api, output_api,
return result return result
def _CheckNoRtcBaseDeps(input_api, gyp_files, output_api): def _CheckNoRtcBaseDeps(input_api, gn_files, output_api):
pattern = input_api.re.compile(r"base.gyp:rtc_base\s*'")
violating_files = []
for f in gyp_files:
gyp_exceptions = (
'audio_device.gypi',
'base_tests.gyp',
'desktop_capture.gypi',
'p2p.gyp',
'sdk.gyp',
'webrtc_test_common.gyp',
'webrtc_tests.gypi',
)
if f.LocalPath().endswith(gyp_exceptions):
continue
contents = input_api.ReadFile(f)
if pattern.search(contents):
violating_files.append(f)
if violating_files:
return [output_api.PresubmitError(
'Depending on rtc_base is not allowed. Change your dependency to '
'rtc_base_approved and possibly sanitize and move the desired source '
'file(s) to rtc_base_approved.\nChanged GYP files:',
items=violating_files)]
return []
def _CheckNoRtcBaseDepsGn(input_api, gn_files, output_api):
pattern = input_api.re.compile(r'base:rtc_base\s*"') pattern = input_api.re.compile(r'base:rtc_base\s*"')
violating_files = [] violating_files = []
for f in gn_files: for f in gn_files:
@ -288,39 +262,8 @@ def _CheckNoRtcBaseDepsGn(input_api, gn_files, output_api):
items=violating_files)] items=violating_files)]
return [] return []
def _CheckNoSourcesAboveGyp(input_api, gyp_files, output_api):
# Disallow referencing source files with paths above the GYP file location.
source_pattern = input_api.re.compile(r'\'sources\'.*?\[(.*?)\]',
re.MULTILINE | re.DOTALL)
file_pattern = input_api.re.compile(r"'((\.\./.*?)|(<\(webrtc_root\).*?))'")
violating_gyp_files = set()
violating_source_entries = []
for gyp_file in gyp_files:
if 'supplement.gypi' in gyp_file.LocalPath():
# Exclude supplement.gypi from this check, as the LSan and TSan
# suppression files are located in a different location.
continue
contents = input_api.ReadFile(gyp_file)
for source_block_match in source_pattern.finditer(contents):
# Find all source list entries starting with ../ in the source block
# (exclude overrides entries).
for file_list_match in file_pattern.finditer(source_block_match.group(1)):
source_file = file_list_match.group(1)
if 'overrides/' not in source_file:
violating_source_entries.append(source_file)
violating_gyp_files.add(gyp_file)
if violating_gyp_files:
return [output_api.PresubmitError(
'Referencing source files above the directory of the GYP file is not '
'allowed. Please introduce new GYP targets and/or GYP files in the '
'proper location instead.\n'
'Invalid source entries:\n'
'%s\n'
'Violating GYP files:' % '\n'.join(violating_source_entries),
items=violating_gyp_files)]
return []
def _CheckNoSourcesAboveGn(input_api, gn_files, output_api): def _CheckNoSourcesAbove(input_api, gn_files, output_api):
# Disallow referencing source files with paths above the GN file location. # Disallow referencing source files with paths above the GN file location.
source_pattern = input_api.re.compile(r' +sources \+?= \[(.*?)\]', source_pattern = input_api.re.compile(r' +sources \+?= \[(.*?)\]',
re.MULTILINE | re.DOTALL) re.MULTILINE | re.DOTALL)
@ -340,33 +283,14 @@ def _CheckNoSourcesAboveGn(input_api, gn_files, output_api):
if violating_gn_files: if violating_gn_files:
return [output_api.PresubmitError( return [output_api.PresubmitError(
'Referencing source files above the directory of the GN file is not ' 'Referencing source files above the directory of the GN file is not '
'allowed. Please introduce new GYP targets and/or GN files in the ' 'allowed. Please introduce new GN targets in the proper location '
'proper location instead.\n' 'instead.\n'
'Invalid source entries:\n' 'Invalid source entries:\n'
'%s\n' '%s\n'
'Violating GN files:' % '\n'.join(violating_source_entries), 'Violating GN files:' % '\n'.join(violating_source_entries),
items=violating_gn_files)] items=violating_gn_files)]
return [] return []
def _CheckGypChanges(input_api, output_api):
source_file_filter = lambda x: input_api.FilterSourceFile(
x, white_list=(r'.+\.(gyp|gypi)$',))
gyp_files = []
for f in input_api.AffectedSourceFiles(source_file_filter):
if f.LocalPath().startswith('webrtc'):
gyp_files.append(f)
result = []
if gyp_files:
result.append(output_api.PresubmitNotifyResult(
'As you\'re changing GYP files: please make sure corresponding '
'BUILD.gn files are also updated.\nChanged GYP files:',
items=gyp_files))
result.extend(_CheckNoRtcBaseDeps(input_api, gyp_files, output_api))
result.extend(_CheckNoSourcesAboveGyp(input_api, gyp_files, output_api))
return result
def _CheckGnChanges(input_api, output_api): def _CheckGnChanges(input_api, output_api):
source_file_filter = lambda x: input_api.FilterSourceFile( source_file_filter = lambda x: input_api.FilterSourceFile(
x, white_list=(r'.+\.(gn|gni)$',)) x, white_list=(r'.+\.(gn|gni)$',))
@ -378,12 +302,8 @@ def _CheckGnChanges(input_api, output_api):
result = [] result = []
if gn_files: if gn_files:
result.append(output_api.PresubmitNotifyResult( result.extend(_CheckNoRtcBaseDeps(input_api, gn_files, output_api))
'As you\'re changing GN files: please make sure corresponding GYP' result.extend(_CheckNoSourcesAbove(input_api, gn_files, output_api))
'files are also updated.\nChanged GN files:',
items=gn_files))
result.extend(_CheckNoRtcBaseDepsGn(input_api, gn_files, output_api))
result.extend(_CheckNoSourcesAboveGn(input_api, gn_files, output_api))
return result return result
def _CheckUnwantedDependencies(input_api, output_api): def _CheckUnwantedDependencies(input_api, output_api):
@ -534,7 +454,6 @@ def _CommonChecks(input_api, output_api):
r'^tools[\\\/]generate_library_loader[\\\/].*\.py$', r'^tools[\\\/]generate_library_loader[\\\/].*\.py$',
r'^tools[\\\/]generate_stubs[\\\/].*\.py$', r'^tools[\\\/]generate_stubs[\\\/].*\.py$',
r'^tools[\\\/]gn[\\\/].*\.py$', r'^tools[\\\/]gn[\\\/].*\.py$',
r'^tools[\\\/]gyp[\\\/].*\.py$',
r'^tools[\\\/]isolate_driver.py$', r'^tools[\\\/]isolate_driver.py$',
r'^tools[\\\/]mb[\\\/].*\.py$', r'^tools[\\\/]mb[\\\/].*\.py$',
r'^tools[\\\/]protoc_wrapper[\\\/].*\.py$', r'^tools[\\\/]protoc_wrapper[\\\/].*\.py$',
@ -562,9 +481,8 @@ def _CommonChecks(input_api, output_api):
# .m and .mm files are ObjC files. For simplicity we will consider .h files in # .m and .mm files are ObjC files. For simplicity we will consider .h files in
# ObjC subdirectories ObjC headers. # ObjC subdirectories ObjC headers.
objc_filter_list = (r'.+\.m$', r'.+\.mm$', r'.+objc\/.+\.h$') objc_filter_list = (r'.+\.m$', r'.+\.mm$', r'.+objc\/.+\.h$')
# Skip long-lines check for DEPS, GN and GYP files. # Skip long-lines check for DEPS and GN files.
build_file_filter_list = (r'.+\.gyp$', r'.+\.gypi$', r'.+\.gn$', r'.+\.gni$', build_file_filter_list = (r'.+\.gn$', r'.+\.gni$', 'DEPS')
'DEPS')
eighty_char_sources = lambda x: input_api.FilterSourceFile(x, eighty_char_sources = lambda x: input_api.FilterSourceFile(x,
black_list=build_file_filter_list + objc_filter_list) black_list=build_file_filter_list + objc_filter_list)
hundred_char_sources = lambda x: input_api.FilterSourceFile(x, hundred_char_sources = lambda x: input_api.FilterSourceFile(x,
@ -584,7 +502,6 @@ def _CommonChecks(input_api, output_api):
results.extend(_CheckNativeApiHeaderChanges(input_api, output_api)) results.extend(_CheckNativeApiHeaderChanges(input_api, output_api))
results.extend(_CheckNoIOStreamInHeaders(input_api, output_api)) results.extend(_CheckNoIOStreamInHeaders(input_api, output_api))
results.extend(_CheckNoFRIEND_TEST(input_api, output_api)) results.extend(_CheckNoFRIEND_TEST(input_api, output_api))
results.extend(_CheckGypChanges(input_api, output_api))
results.extend(_CheckGnChanges(input_api, output_api)) results.extend(_CheckGnChanges(input_api, output_api))
results.extend(_CheckUnwantedDependencies(input_api, output_api)) results.extend(_CheckUnwantedDependencies(input_api, output_api))
results.extend(_CheckJSONParseErrors(input_api, output_api)) results.extend(_CheckJSONParseErrors(input_api, output_api))

67
all.gyp
View File

@ -1,67 +0,0 @@
# 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/stats/stats.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': [
# No longer supported, please refer to GN targets.
#'webrtc/api/api_java.gyp:*',
],
}],
['include_tests==1', {
'includes': [
'webrtc/webrtc_tests.gypi',
],
'dependencies': [
'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:*',
],
}],
],
},
],
}

View File

@ -104,8 +104,6 @@ def main():
return 0 return 0
os.unlink(flag_file) os.unlink(flag_file)
env = os.environ.copy()
# Workaround to avoid sync failure due move in # Workaround to avoid sync failure due move in
# https://codereview.chromium.org/1155743013 # https://codereview.chromium.org/1155743013
# TODO(kjellander): Remove this after the summer of 2015. # TODO(kjellander): Remove this after the summer of 2015.
@ -115,9 +113,6 @@ def main():
shutil.rmtree(freetype_src) shutil.rmtree(freetype_src)
# Avoid downloading NaCl toolchain as part of the Chromium hooks. # Avoid downloading NaCl toolchain as part of the Chromium hooks.
env.setdefault('GYP_DEFINES', '')
env['GYP_DEFINES'] += ' disable_nacl=1'
env['GYP_CHROMIUM_NO_ACTION'] = '1'
gclient_cmd = 'gclient.bat' if sys.platform.startswith('win') else 'gclient' gclient_cmd = 'gclient.bat' if sys.platform.startswith('win') else 'gclient'
args = [ args = [
gclient_cmd, 'sync', '--force', '--revision', 'src@'+opts.target_revision gclient_cmd, 'sync', '--force', '--revision', 'src@'+opts.target_revision
@ -183,7 +178,7 @@ def main():
| If that fails, wipe everything clean and start over again. | | If that fails, wipe everything clean and start over again. |
+---------------------------------------------------------------------+""") +---------------------------------------------------------------------+""")
print 'Running "%s" in %s' % (' '.join(args), opts.chromium_dir) print 'Running "%s" in %s' % (' '.join(args), opts.chromium_dir)
ret = subprocess.call(args, cwd=opts.chromium_dir, env=env) ret = subprocess.call(args, cwd=opts.chromium_dir)
if ret == 0: if ret == 0:
with open(flag_file, 'wb') as f: with open(flag_file, 'wb') as f:
f.write(flag_file_content) f.write(flag_file_content)

View File

@ -1,6 +1,3 @@
kjellander@webrtc.org kjellander@webrtc.org
# These are for the common case of adding or renaming files. If you're doing
# structural changes, please get a review from a reviewer in this file.
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,95 +0,0 @@
# Copyright 2011 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
{
'variables': {
'gflags_root': '<(DEPTH)/third_party/gflags',
'conditions': [
['OS=="win"', {
'gflags_gen_arch_root': '<(gflags_root)/gen/win',
}, {
'gflags_gen_arch_root': '<(gflags_root)/gen/posix',
}],
],
},
'targets': [
{
'target_name': 'gflags',
'type': 'static_library',
'include_dirs': [
'<(gflags_gen_arch_root)/include/gflags', # For configured files.
'<(gflags_gen_arch_root)/include/private', # For config.h
'<(gflags_root)/src/src', # For everything else.
],
'defines': [
# These macros exist so flags and symbols are properly
# exported when building DLLs. Since we don't build DLLs, we
# need to disable them.
'GFLAGS_DLL_DECL=',
'GFLAGS_DLL_DECLARE_FLAG=',
'GFLAGS_DLL_DEFINE_FLAG=',
],
'direct_dependent_settings': {
'include_dirs': [
'<(gflags_gen_arch_root)/include', # For configured files.
'<(gflags_root)/src/src', # For everything else.
],
'defines': [
'GFLAGS_DLL_DECL=',
'GFLAGS_DLL_DECLARE_FLAG=',
'GFLAGS_DLL_DEFINE_FLAG=',
],
},
'sources': [
'src/src/gflags.cc',
'src/src/gflags_completions.cc',
'src/src/gflags_reporting.cc',
],
'conditions': [
['OS=="win"', {
'sources': [
'src/src/windows_port.cc',
],
'msvs_disabled_warnings': [
4005, # WIN32_LEAN_AND_MEAN redefinition.
4267, # Conversion from size_t to "type".
],
'configurations': {
'Common_Base': {
'msvs_configuration_attributes': {
'CharacterSet': '2', # Use Multi-byte Character Set.
},
},
},
}],
# TODO(andrew): Look into fixing this warning upstream:
# http://code.google.com/p/webrtc/issues/detail?id=760
['OS=="win" and clang==1', {
'msvs_settings': {
'VCCLCompilerTool': {
'AdditionalOptions': [
'-Wno-microsoft-include',
],
},
},
}],
['clang==1', {
'cflags': [
'-Wno-microsoft-include',
],
}],
],
},
],
}

View File

@ -1,8 +1,5 @@
# These are for the common case of adding or renaming files. If you're doing
# structural changes, please get a review from a reviewer in this file.
per-file *.gyp=*
per-file *.gypi=*
per-file BUILD.gn=kjellander@webrtc.org per-file BUILD.gn=kjellander@webrtc.org

View File

@ -1,127 +0,0 @@
# Copyright (c) 2012 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.
{
'targets': [
{
'target_name': 'directshow_baseclasses',
'type': 'static_library',
'variables': {
'baseclasses_dir%':
'src/Samples/multimedia/directshow/baseclasses',
},
'defines!': [
'NOMINMAX',
],
'include_dirs': ['<(baseclasses_dir)',],
'direct_dependent_settings': {
'include_dirs': ['<(baseclasses_dir)',],
},
'sources': [
'<(baseclasses_dir)/amextra.cpp',
'<(baseclasses_dir)/amextra.h',
'<(baseclasses_dir)/amfilter.cpp',
'<(baseclasses_dir)/amfilter.h',
'<(baseclasses_dir)/amvideo.cpp',
'<(baseclasses_dir)/cache.h',
'<(baseclasses_dir)/combase.cpp',
'<(baseclasses_dir)/combase.h',
'<(baseclasses_dir)/cprop.cpp',
'<(baseclasses_dir)/cprop.h',
'<(baseclasses_dir)/ctlutil.cpp',
'<(baseclasses_dir)/ctlutil.h',
'<(baseclasses_dir)/ddmm.cpp',
'<(baseclasses_dir)/ddmm.h',
'<(baseclasses_dir)/dllentry.cpp',
'<(baseclasses_dir)/dllsetup.cpp',
'<(baseclasses_dir)/dllsetup.h',
'<(baseclasses_dir)/fourcc.h',
'<(baseclasses_dir)/measure.h',
'<(baseclasses_dir)/msgthrd.h',
'<(baseclasses_dir)/mtype.cpp',
'<(baseclasses_dir)/mtype.h',
'<(baseclasses_dir)/outputq.cpp',
'<(baseclasses_dir)/outputq.h',
'<(baseclasses_dir)/pstream.cpp',
'<(baseclasses_dir)/pstream.h',
'<(baseclasses_dir)/pullpin.cpp',
'<(baseclasses_dir)/pullpin.h',
'<(baseclasses_dir)/refclock.cpp',
'<(baseclasses_dir)/refclock.h',
'<(baseclasses_dir)/reftime.h',
'<(baseclasses_dir)/renbase.cpp',
'<(baseclasses_dir)/renbase.h',
'<(baseclasses_dir)/schedule.cpp',
'<(baseclasses_dir)/seekpt.cpp',
'<(baseclasses_dir)/seekpt.h',
'<(baseclasses_dir)/source.cpp',
'<(baseclasses_dir)/source.h',
'<(baseclasses_dir)/streams.h',
'<(baseclasses_dir)/strmctl.cpp',
'<(baseclasses_dir)/strmctl.h',
'<(baseclasses_dir)/sysclock.cpp',
'<(baseclasses_dir)/sysclock.h',
'<(baseclasses_dir)/transfrm.cpp',
'<(baseclasses_dir)/transfrm.h',
'<(baseclasses_dir)/transip.cpp',
'<(baseclasses_dir)/transip.h',
'<(baseclasses_dir)/videoctl.cpp',
'<(baseclasses_dir)/videoctl.h',
'<(baseclasses_dir)/vtrans.cpp',
'<(baseclasses_dir)/vtrans.h',
'<(baseclasses_dir)/winctrl.cpp',
'<(baseclasses_dir)/winctrl.h',
'<(baseclasses_dir)/winutil.cpp',
'<(baseclasses_dir)/winutil.h',
'<(baseclasses_dir)/wxdebug.cpp',
'<(baseclasses_dir)/wxdebug.h',
'<(baseclasses_dir)/wxlist.cpp',
'<(baseclasses_dir)/wxlist.h',
'<(baseclasses_dir)/wxutil.cpp',
'<(baseclasses_dir)/wxutil.h',
],
'conditions': [
['clang==1', {
'msvs_settings': {
'VCCLCompilerTool': {
'AdditionalOptions': [
# Disable warnings failing when compiling with Clang on Windows.
# https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
'-Wno-comment',
'-Wno-delete-non-virtual-dtor',
'-Wno-ignored-attributes',
'-Wno-logical-op-parentheses',
'-Wno-non-pod-varargs',
'-Wno-microsoft-extra-qualification',
'-Wno-missing-braces',
'-Wno-overloaded-virtual',
'-Wno-parentheses',
'-Wno-reorder',
'-Wno-string-conversion',
'-Wno-tautological-constant-out-of-range-compare',
'-Wno-unused-private-field',
'-Wno-writable-strings',
],
},
},
'direct_dependent_settings': {
'msvs_settings': {
'VCCLCompilerTool': {
'AdditionalOptions': [
# Disable warnings failing when compiling with Clang on Windows.
# https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
'-Wno-ignored-qualifiers',
],
},
},
},
},],
], # conditions.
},
],
}

View File

@ -6,13 +6,10 @@ stefan@webrtc.org
tina.legrand@webrtc.org tina.legrand@webrtc.org
tommi@webrtc.org tommi@webrtc.org
per-file *.isolate=kjellander@webrtc.org
# These are for the common case of adding or renaming files. If you're doing # These are for the common case of adding or renaming files. If you're doing
# structural changes, please get a review from a reviewer in this file. # structural changes, please get a review from a reviewer in this file.
per-file *.gn=* per-file *.gn=*
per-file *.gni=* per-file *.gni=*
per-file *.gyp=*
per-file *.gypi=*
per-file *video*.h=pbos@webrtc.org per-file *video*.h=pbos@webrtc.org

View File

@ -318,7 +318,6 @@ if (is_android) {
} }
} }
# GYP version: webrtc/api/api.gyp:rtc_stats_api
rtc_source_set("rtc_stats_api") { rtc_source_set("rtc_stats_api") {
cflags = [] cflags = []
sources = [ sources = [
@ -332,7 +331,6 @@ rtc_source_set("rtc_stats_api") {
] ]
} }
# GYP version: webrtc/api/api.gyp:audio_mixer_api
rtc_source_set("audio_mixer_api") { rtc_source_set("audio_mixer_api") {
sources = [ sources = [
"audio/audio_mixer.h", "audio/audio_mixer.h",

View File

@ -16,5 +16,3 @@ per-file rtcstats*=hta@webrtc.org
# structural changes, please get a review from a reviewer in this file. # structural changes, please get a review from a reviewer in this file.
per-file *.gn=* per-file *.gn=*
per-file *.gni=* per-file *.gni=*
per-file *.gyp=*
per-file *.gypi=*

View File

@ -2,7 +2,8 @@ This directory holds a Java implementation of the webrtc::PeerConnection API, as
well as the JNI glue C++ code that lets the Java implementation reuse the C++ well as the JNI glue C++ code that lets the Java implementation reuse the C++
implementation of the same API. implementation of the same API.
To build the Java API and related tests, build with OS=android in $GYP_DEFINES. To build the Java API and related tests, generate GN projects with:
--args='target_os="android"'
To use the Java API, start by looking at the public interface of To use the Java API, start by looking at the public interface of
org.webrtc.PeerConnection{,Factory} and the org.webrtc.PeerConnectionTest. org.webrtc.PeerConnection{,Factory} and the org.webrtc.PeerConnectionTest.

View File

@ -1,249 +0,0 @@
# Copyright (c) 2015 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.
{
'includes': [ '../build/common.gypi', ],
'conditions': [
['os_posix == 1 and OS != "mac" and OS != "ios"', {
'conditions': [
['sysroot!=""', {
'variables': {
'pkg-config': '../../../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)"',
},
}, {
'variables': {
'pkg-config': 'pkg-config'
},
}],
],
}],
# Excluded from the Chromium build since they cannot be built due to
# incompability with Chromium's logging implementation.
['OS=="android" and build_with_chromium==0', {
'targets': [
{
'target_name': 'libjingle_peerconnection_jni',
'type': 'static_library',
'dependencies': [
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:field_trial_default',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default',
'libjingle_peerconnection',
],
'sources': [
'android/jni/androidmediacodeccommon.h',
'android/jni/androidmediadecoder_jni.cc',
'android/jni/androidmediadecoder_jni.h',
'android/jni/androidmediaencoder_jni.cc',
'android/jni/androidmediaencoder_jni.h',
'android/jni/androidmetrics_jni.cc',
'android/jni/androidnetworkmonitor_jni.cc',
'android/jni/androidnetworkmonitor_jni.h',
'android/jni/androidvideotracksource_jni.cc',
'android/jni/classreferenceholder.cc',
'android/jni/classreferenceholder.h',
'android/jni/jni_helpers.cc',
'android/jni/jni_helpers.h',
'android/jni/native_handle_impl.cc',
'android/jni/native_handle_impl.h',
'android/jni/peerconnection_jni.cc',
'android/jni/surfacetexturehelper_jni.cc',
'android/jni/surfacetexturehelper_jni.h',
'androidvideotracksource.cc',
'androidvideotracksource.h',
],
'include_dirs': [
'<(libyuv_dir)/include',
],
# TODO(kjellander): Make the code compile without disabling these flags.
# See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307
'cflags': [
'-Wno-sign-compare',
'-Wno-unused-variable',
],
'cflags!': [
'-Wextra',
],
'msvs_disabled_warnings': [
4245, # conversion from 'int' to 'size_t', signed/unsigned mismatch.
4267, # conversion from 'size_t' to 'int', possible loss of data.
4389, # signed/unsigned mismatch.
],
},
{
'target_name': 'libjingle_peerconnection_so',
'type': 'shared_library',
'dependencies': [
'libjingle_peerconnection',
'libjingle_peerconnection_jni',
],
'sources': [
'android/jni/jni_onload.cc',
],
'variables': {
# This library uses native JNI exports; tell GYP so that the
# required symbols will be kept.
'use_native_jni_exports': 1,
},
},
]
}],
], # conditions
'targets': [
{
'target_name': 'call_api',
'type': 'static_library',
'dependencies': [
# TODO(kjellander): Add remaining dependencies when webrtc:4243 is done.
':audio_mixer_api',
'<(webrtc_root)/base/base.gyp:rtc_base_approved',
'<(webrtc_root)/common.gyp:webrtc_common',
'<(webrtc_root)/modules/modules.gyp:audio_encoder_interface',
],
'sources': [
'call/audio_receive_stream.h',
'call/audio_send_stream.cc',
'call/audio_send_stream.h',
'call/audio_sink.h',
'call/audio_state.h',
'call/flexfec_receive_stream.h'
],
},
{
'target_name': 'libjingle_peerconnection',
'type': 'static_library',
'dependencies': [
':call_api',
':rtc_stats_api',
'<(webrtc_root)/media/media.gyp:rtc_media',
'<(webrtc_root)/pc/pc.gyp:rtc_pc',
'<(webrtc_root)/stats/stats.gyp:rtc_stats',
],
'sources': [
'audiotrack.cc',
'audiotrack.h',
'datachannel.cc',
'datachannel.h',
'datachannelinterface.h',
'dtmfsender.cc',
'dtmfsender.h',
'dtmfsenderinterface.h',
'jsep.h',
'jsepicecandidate.cc',
'jsepicecandidate.h',
'jsepsessiondescription.cc',
'jsepsessiondescription.h',
'localaudiosource.cc',
'localaudiosource.h',
'mediaconstraintsinterface.cc',
'mediaconstraintsinterface.h',
'mediacontroller.cc',
'mediacontroller.h',
'mediastream.cc',
'mediastream.h',
'mediastreaminterface.h',
'mediastreamobserver.cc',
'mediastreamobserver.h',
'mediastreamproxy.h',
'mediastreamtrack.h',
'mediastreamtrackproxy.h',
'notifier.h',
'peerconnection.cc',
'peerconnection.h',
'peerconnectionfactory.cc',
'peerconnectionfactory.h',
'peerconnectionfactoryproxy.h',
'peerconnectioninterface.h',
'peerconnectionproxy.h',
'proxy.h',
'remoteaudiosource.cc',
'remoteaudiosource.h',
'rtcstatscollector.cc',
'rtcstatscollector.h',
'rtpparameters.h',
'rtpreceiver.cc',
'rtpreceiver.h',
'rtpreceiverinterface.h',
'rtpsender.cc',
'rtpsender.h',
'rtpsenderinterface.h',
'sctputils.cc',
'sctputils.h',
'statscollector.cc',
'statscollector.h',
'statstypes.cc',
'statstypes.h',
'streamcollection.h',
'videocapturertracksource.cc',
'videocapturertracksource.h',
'videosourceproxy.h',
'videotrack.cc',
'videotrack.h',
'videotracksource.cc',
'videotracksource.h',
'webrtcsdp.cc',
'webrtcsdp.h',
'webrtcsession.cc',
'webrtcsession.h',
'webrtcsessiondescriptionfactory.cc',
'webrtcsessiondescriptionfactory.h',
],
'conditions': [
['clang==1', {
'cflags!': [
'-Wextra',
],
'xcode_settings': {
'WARNING_CFLAGS!': ['-Wextra'],
},
}, {
'cflags': [
'-Wno-maybe-uninitialized', # Only exists for GCC.
],
}],
['use_quic==1', {
'dependencies': [
'<(DEPTH)/third_party/libquic/libquic.gyp:libquic',
],
'sources': [
'quicdatachannel.cc',
'quicdatachannel.h',
'quicdatatransport.cc',
'quicdatatransport.h',
],
'export_dependent_settings': [
'<(DEPTH)/third_party/libquic/libquic.gyp:libquic',
],
}],
],
}, # target libjingle_peerconnection
{
# GN version: webrtc/api:rtc_stats_api
'target_name': 'rtc_stats_api',
'type': 'static_library',
'dependencies': [
'<(webrtc_root)/base/base.gyp:rtc_base_approved',
],
'sources': [
'stats/rtcstats.h',
'stats/rtcstats_objects.h',
'stats/rtcstatsreport.h',
],
}, # target rtc_stats_api
{
# GN version: webrtc/api:audio_mixer_api
'target_name': 'audio_mixer_api',
'type': 'static_library',
'dependencies': [
'<(webrtc_root)/base/base.gyp:rtc_base_approved',
],
'sources': [
'audio/audio_mixer.h',
],
}, # target rtc_stats_api
], # targets
}

View File

@ -1,50 +0,0 @@
# Copyright (c) 2016 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.
# This file exists only because there's no other way to avoid errors in the
# Chromium build due to the inclusion of build/java.gypi. GYP unfortunately
# processes all 'includes' for all .gyp files, ignoring conditions. This
# processing takes place early in the cycle, before it's possible to use
# variables. It will go away when WebRTC has fully migrated to GN.
{
'includes': [ '../build/common.gypi', ],
'conditions': [
['OS=="android"', {
'targets': [
{
# |libjingle_peerconnection_java| builds a jar file with name
# libjingle_peerconnection_java.jar using Chrome's build system.
# It includes all Java files needed to setup a PeeerConnection call
# from Android.
'target_name': 'libjingle_peerconnection_java',
'type': 'none',
'dependencies': [
'<(webrtc_root)/api/api.gyp:libjingle_peerconnection_so',
],
'variables': {
# Designate as Chromium code and point to our lint settings to
# enable linting of the WebRTC code (this is the only way to make
# lint_action invoke the Android linter).
'android_manifest_path': '<(webrtc_root)/build/android/AndroidManifest.xml',
'suppressions_file': '<(webrtc_root)/build/android/suppressions.xml',
'chromium_code': 1,
'java_in_dir': 'android/java',
'webrtc_base_dir': '<(webrtc_root)/base',
'webrtc_modules_dir': '<(webrtc_root)/modules',
'additional_src_dirs' : [
'<(webrtc_base_dir)/java',
'<(webrtc_modules_dir)/audio_device/android/java/src',
],
},
'includes': ['../../build/java.gypi'],
},
], # targets
}], # OS=="android"
], # conditions
}

View File

@ -5,5 +5,3 @@ hta@webrtc.org
# structural changes, please get a review from a reviewer in this file. # structural changes, please get a review from a reviewer in this file.
per-file *.gn=* per-file *.gn=*
per-file *.gni=* per-file *.gni=*
per-file *.gyp=*
per-file *.gypi=*

View File

@ -5,5 +5,3 @@ tina.legrand@webrtc.org
# structural changes, please get a review from a reviewer in this file. # structural changes, please get a review from a reviewer in this file.
per-file *.gn=* per-file *.gn=*
per-file *.gni=* per-file *.gni=*
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,29 +0,0 @@
# 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': {
'webrtc_audio_dependencies': [
'<(webrtc_root)/api/api.gyp:audio_mixer_api',
'<(webrtc_root)/api/api.gyp:call_api',
'<(webrtc_root)/common.gyp:webrtc_common',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
'<(webrtc_root)/webrtc.gyp:rtc_event_log_api',
],
'webrtc_audio_sources': [
'audio/audio_receive_stream.cc',
'audio/audio_receive_stream.h',
'audio/audio_send_stream.cc',
'audio/audio_send_stream.h',
'audio/audio_state.cc',
'audio/audio_state.h',
'audio/conversion.h',
'audio/scoped_voe_interface.h',
],
},
}

View File

@ -13,8 +13,6 @@ tommi@webrtc.org
# structural changes, please get a review from a reviewer in this file. # structural changes, please get a review from a reviewer in this file.
per-file *.gn=* per-file *.gn=*
per-file *.gni=* per-file *.gni=*
per-file *.gyp=*
per-file *.gypi=*
per-file rate_statistics*=sprang@webrtc.org per-file rate_statistics*=sprang@webrtc.org
per-file rate_statistics*=stefan@webrtc.org per-file rate_statistics*=stefan@webrtc.org

View File

@ -1,655 +0,0 @@
# Copyright (c) 2014 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.
{
'includes': [ '../build/common.gypi', ],
'conditions': [
['os_posix==1 and OS!="mac" and OS!="ios"', {
'conditions': [
['sysroot!=""', {
'variables': {
'pkg-config': '../../../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)"',
},
}, {
'variables': {
'pkg-config': 'pkg-config'
},
}],
],
}],
],
'targets': [
{
# The subset of rtc_base approved for use outside of libjingle.
'target_name': 'rtc_base_approved',
'type': 'static_library',
'sources': [
'arraysize.h',
'array_view.h',
'atomicops.h',
'bind.h',
'bitbuffer.cc',
'bitbuffer.h',
'buffer.h',
'bufferqueue.cc',
'bufferqueue.h',
'bytebuffer.cc',
'bytebuffer.h',
'byteorder.h',
'checks.cc',
'checks.h',
'constructormagic.h',
'copyonwritebuffer.cc',
'copyonwritebuffer.h',
'criticalsection.cc',
'criticalsection.h',
'deprecation.h',
'event.cc',
'event.h',
'event_tracer.cc',
'event_tracer.h',
'exp_filter.cc',
'exp_filter.h',
'file.cc',
'file.h',
'format_macros.h',
'function_view.h',
'ignore_wundef.h',
'location.h',
'location.cc',
'md5.cc',
'md5.h',
'md5digest.cc',
'md5digest.h',
'mod_ops.h',
'onetimeevent.h',
'optional.cc',
'optional.h',
'platform_file.cc',
'platform_file.h',
'platform_thread.cc',
'platform_thread.h',
'platform_thread_types.h',
'race_checker.cc',
'race_checker.h',
'random.cc',
'random.h',
'rate_statistics.cc',
'rate_statistics.h',
'rate_limiter.cc',
'rate_limiter.h',
'ratetracker.cc',
'ratetracker.h',
'refcount.h',
'safe_conversions.h',
'safe_conversions_impl.h',
'sanitizer.h',
'scoped_ref_ptr.h',
'stringencode.cc',
'stringencode.h',
'stringutils.cc',
'stringutils.h',
'swap_queue.h',
'systeminfo.cc',
'systeminfo.h',
'template_util.h',
'thread_annotations.h',
'thread_checker.h',
'thread_checker_impl.cc',
'thread_checker_impl.h',
'timestampaligner.cc',
'timestampaligner.h',
'timeutils.cc',
'timeutils.h',
'trace_event.h',
'type_traits.h',
],
'conditions': [
['os_posix==1', {
'sources': [
'file_posix.cc',
],
}],
['OS=="win"', {
'sources': [
'file_win.cc',
],
}],
['build_with_chromium==1', {
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
],
'include_dirs': [
'../../webrtc_overrides',
],
'sources': [
'../../webrtc_overrides/webrtc/base/logging.cc',
'../../webrtc_overrides/webrtc/base/logging.h',
],
}, {
'sources': [
'logging.cc',
'logging.h',
'logging_mac.mm',
],
}],
['OS=="mac" and build_with_chromium==0', {
'all_dependent_settings': {
'xcode_settings': {
'OTHER_LDFLAGS': [
# needed for logging_mac.mm
'-framework Foundation',
],
},
},
}], # OS=="mac" and build_with_chromium==0
['OS=="android"', {
'link_settings': {
'libraries': [
'-llog',
],
},
}],
],
},
{
'target_name': 'rtc_task_queue',
'type': 'static_library',
'dependencies': [
'rtc_base_approved',
],
'sources': [
'sequenced_task_checker.h',
'sequenced_task_checker_impl.cc',
'sequenced_task_checker_impl.h',
'weak_ptr.cc',
'weak_ptr.h',
],
'conditions': [
['build_with_chromium==1', {
'include_dirs': [
'../../webrtc_overrides'
],
'sources' : [
'../../webrtc_overrides/webrtc/base/task_queue.cc',
'../../webrtc_overrides/webrtc/base/task_queue.h',
]
} , {
# If not build for chromium, use our own implementation.
'sources' : [
'task_queue.h',
'task_queue_posix.h',
],
'conditions': [
['build_libevent==1', {
'dependencies': [
'<(DEPTH)/base/third_party/libevent/libevent.gyp:libevent',
],
}],
['enable_libevent==1', {
'sources': [
'task_queue_libevent.cc',
'task_queue_posix.cc',
],
'defines': [ 'WEBRTC_BUILD_LIBEVENT' ],
'all_dependent_settings': {
'defines': [ 'WEBRTC_BUILD_LIBEVENT' ]
},
}, {
# If not libevent, fall back to the other task queues.
'conditions': [
['OS=="mac" or OS=="ios"', {
'sources': [
'task_queue_gcd.cc',
'task_queue_posix.cc',
],
}],
['OS=="win"', {
'sources': [ 'task_queue_win.cc' ],
}]
],
}],
]
}],
],
},
{
'target_name': 'rtc_base',
'type': 'static_library',
'dependencies': [
'<(webrtc_root)/common.gyp:webrtc_common',
'rtc_base_approved',
],
'export_dependent_settings': [
'rtc_base_approved',
],
'defines': [
'FEATURE_ENABLE_SSL',
'SSL_USE_OPENSSL',
'HAVE_OPENSSL_SSL_H',
],
'sources': [
'applefilesystem.mm',
'asyncfile.cc',
'asyncfile.h',
'asyncinvoker.cc',
'asyncinvoker.h',
'asyncinvoker-inl.h',
'asyncpacketsocket.cc',
'asyncpacketsocket.h',
'asyncresolverinterface.cc',
'asyncresolverinterface.h',
'asyncsocket.cc',
'asyncsocket.h',
'asynctcpsocket.cc',
'asynctcpsocket.h',
'asyncudpsocket.cc',
'asyncudpsocket.h',
'autodetectproxy.cc',
'autodetectproxy.h',
'base64.cc',
'base64.h',
'common.cc',
'common.h',
'crc32.cc',
'crc32.h',
'cryptstring.cc',
'cryptstring.h',
'diskcache.cc',
'diskcache.h',
'filerotatingstream.cc',
'filerotatingstream.h',
'fileutils.cc',
'fileutils.h',
'firewallsocketserver.cc',
'firewallsocketserver.h',
'flags.cc',
'flags.h',
'gunit_prod.h',
'helpers.cc',
'helpers.h',
'httpbase.cc',
'httpbase.h',
'httpclient.cc',
'httpclient.h',
'httpcommon-inl.h',
'httpcommon.cc',
'httpcommon.h',
'httprequest.cc',
'httprequest.h',
'ipaddress.cc',
'ipaddress.h',
'linked_ptr.h',
'messagedigest.cc',
'messagedigest.h',
'messagehandler.cc',
'messagehandler.h',
'messagequeue.cc',
'messagequeue.h',
'nethelpers.cc',
'nethelpers.h',
'network.cc',
'network.h',
'networkmonitor.cc',
'networkmonitor.h',
'nullsocketserver.cc',
'nullsocketserver.h',
'openssl.h',
'openssladapter.cc',
'openssladapter.h',
'openssldigest.cc',
'openssldigest.h',
'opensslidentity.cc',
'opensslidentity.h',
'opensslstreamadapter.cc',
'opensslstreamadapter.h',
'pathutils.cc',
'pathutils.h',
'physicalsocketserver.cc',
'physicalsocketserver.h',
'proxydetect.cc',
'proxydetect.h',
'proxyinfo.cc',
'proxyinfo.h',
'ratelimiter.cc',
'ratelimiter.h',
'rtccertificate.cc',
'rtccertificate.h',
'rtccertificategenerator.cc',
'rtccertificategenerator.h',
'sha1.cc',
'sha1.h',
'sha1digest.cc',
'sha1digest.h',
'sharedexclusivelock.cc',
'sharedexclusivelock.h',
'signalthread.cc',
'signalthread.h',
'sigslot.cc',
'sigslot.h',
'sigslotrepeater.h',
'socket.h',
'socketadapters.cc',
'socketadapters.h',
'socketaddress.cc',
'socketaddress.h',
'socketaddresspair.cc',
'socketaddresspair.h',
'socketfactory.h',
'socketpool.cc',
'socketpool.h',
'socketserver.h',
'socketstream.cc',
'socketstream.h',
'ssladapter.cc',
'ssladapter.h',
'sslfingerprint.cc',
'sslfingerprint.h',
'sslidentity.cc',
'sslidentity.h',
'sslsocketfactory.cc',
'sslsocketfactory.h',
'sslstreamadapter.cc',
'sslstreamadapter.h',
'stream.cc',
'stream.h',
'task.cc',
'task.h',
'taskparent.cc',
'taskparent.h',
'taskrunner.cc',
'taskrunner.h',
'thread.cc',
'thread.h',
'urlencode.cc',
'urlencode.h',
],
# TODO(henrike): issue 3307, make rtc_base build without disabling
# these flags.
'cflags!': [
'-Wextra',
'-Wall',
],
'direct_dependent_settings': {
'defines': [
'FEATURE_ENABLE_SSL',
'SSL_USE_OPENSSL',
'HAVE_OPENSSL_SSL_H',
],
},
'conditions': [
['build_with_chromium==1', {
'include_dirs': [
'../../webrtc_overrides',
'../../boringssl/src/include',
],
'conditions': [
['OS=="win"', {
'sources': [
'../../webrtc_overrides/webrtc/base/win32socketinit.cc',
],
}],
],
'defines': [
'NO_MAIN_THREAD_WRAPPING',
],
'direct_dependent_settings': {
'defines': [
'NO_MAIN_THREAD_WRAPPING',
],
},
}, {
'sources': [
'callback.h',
'fileutils_mock.h',
'httpserver.cc',
'httpserver.h',
'json.cc',
'json.h',
'logsinks.cc',
'logsinks.h',
'mathutils.h',
'natserver.cc',
'natserver.h',
'natsocketfactory.cc',
'natsocketfactory.h',
'nattypes.cc',
'nattypes.h',
'optionsfile.cc',
'optionsfile.h',
'proxyserver.cc',
'proxyserver.h',
'rollingaccumulator.h',
'scopedptrcollection.h',
'sslconfig.h',
'sslroots.h',
'testbase64.h',
'testclient.cc',
'testclient.h',
'transformadapter.cc',
'transformadapter.h',
'virtualsocketserver.cc',
'virtualsocketserver.h',
'window.h',
'windowpicker.h',
'windowpickerfactory.h',
],
'conditions': [
['build_json==1', {
'dependencies': [
'<(DEPTH)/third_party/jsoncpp/jsoncpp.gyp:jsoncpp',
],
}, {
'include_dirs': [
'<(json_root)',
],
'defines': [
# When defined changes the include path for json.h to where it
# is expected to be when building json outside of the standalone
# build.
'WEBRTC_EXTERNAL_JSON',
],
}],
['OS=="linux"', {
'sources': [
'dbus.cc',
'dbus.h',
'libdbusglibsymboltable.cc',
'libdbusglibsymboltable.h',
'linuxfdwalk.c',
'linuxfdwalk.h',
],
}],
['os_posix==1', {
'sources': [
'latebindingsymboltable.cc',
'latebindingsymboltable.h',
],
}],
['OS=="mac"', {
'sources': [
'macwindowpicker.cc',
'macwindowpicker.h',
],
}],
['OS=="win"', {
'sources': [
'diskcache_win32.cc',
'diskcache_win32.h',
'win32regkey.cc',
'win32regkey.h',
'win32socketinit.cc',
'win32socketinit.h',
'win32socketserver.cc',
'win32socketserver.h',
],
}],
['OS=="win" and clang==1', {
'msvs_settings': {
'VCCLCompilerTool': {
'AdditionalOptions': [
# Disable warnings failing when compiling with Clang on Windows.
# https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
'-Wno-sign-compare',
'-Wno-missing-braces',
],
},
},
}],
], # conditions
}], # build_with_chromium==0
['OS=="android"', {
'sources': [
'ifaddrs-android.cc',
'ifaddrs-android.h',
],
'link_settings': {
'libraries': [
'-llog',
'-lGLESv2',
],
},
}],
['(OS=="mac" or OS=="ios") and nacl_untrusted_build==0', {
'sources': [
'maccocoathreadhelper.h',
'maccocoathreadhelper.mm',
'macconversion.cc',
'macconversion.h',
'macifaddrs_converter.cc',
'scoped_autorelease_pool.h',
'scoped_autorelease_pool.mm',
],
}],
['OS=="ios"', {
'all_dependent_settings': {
'xcode_settings': {
'OTHER_LDFLAGS': [
'-framework CFNetwork',
'-framework Foundation',
'-framework Security',
'-framework SystemConfiguration',
'-framework UIKit',
],
},
},
}],
['use_x11==1', {
'sources': [
'x11windowpicker.cc',
'x11windowpicker.h',
],
'link_settings': {
'libraries': [
'-ldl',
'-lrt',
'-lXext',
'-lX11',
'-lXcomposite',
'-lXrender',
],
},
}],
['OS=="linux"', {
'link_settings': {
'libraries': [
'-ldl',
'-lrt',
],
},
}],
['OS=="mac"', {
'sources': [
'macutils.cc',
'macutils.h',
],
'all_dependent_settings': {
'link_settings': {
'xcode_settings': {
'OTHER_LDFLAGS': [
'-framework Cocoa',
'-framework Foundation',
'-framework IOKit',
'-framework Security',
'-framework SystemConfiguration',
],
},
},
},
}],
['OS=="win" and nacl_untrusted_build==0', {
'sources': [
'win32.cc',
'win32.h',
'win32filesystem.cc',
'win32filesystem.h',
'win32securityerrors.cc',
'win32window.cc',
'win32window.h',
'win32windowpicker.cc',
'win32windowpicker.h',
'winping.cc',
'winping.h',
],
'link_settings': {
'libraries': [
'-lcrypt32.lib',
'-liphlpapi.lib',
'-lsecur32.lib',
],
},
# Suppress warnings about WIN32_LEAN_AND_MEAN.
'msvs_disabled_warnings': [4005, 4703],
'defines': [
'_CRT_NONSTDC_NO_DEPRECATE',
],
}],
['os_posix==1', {
'sources': [
'ifaddrs_converter.cc',
'ifaddrs_converter.h',
'unixfilesystem.cc',
'unixfilesystem.h',
],
'configurations': {
'Debug_Base': {
'defines': [
# Chromium's build/common.gypi defines this for all posix
# _except_ for ios & mac. We want it there as well, e.g.
# because ASSERT and friends trigger off of it.
'_DEBUG',
],
},
}
}],
['OS=="linux" or OS=="android"', {
'sources': [
'linux.cc',
'linux.h',
],
}],
['build_ssl==1', {
'dependencies': [
'<(DEPTH)/third_party/boringssl/boringssl.gyp:boringssl',
],
}, {
'include_dirs': [
'<(ssl_root)',
],
}],
],
},
{
'target_name': 'gtest_prod',
'type': 'static_library',
'sources': [
'gtest_prod_util.h',
],
},
],
}

View File

@ -1,48 +0,0 @@
# 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.
{
'includes': [ '../build/common.gypi', ],
'targets': [
{
'target_name': 'rtc_base_tests_utils',
'type': 'static_library',
'sources': [
'unittest_main.cc',
# Also use this as a convenient dumping ground for misc files that are
# included by multiple targets below.
'fakeclock.cc',
'fakeclock.h',
'fakenetwork.h',
'fakesslidentity.h',
'faketaskrunner.h',
'gunit.h',
'testbase64.h',
'testechoserver.h',
'testutils.h',
'timedelta.h',
],
'defines': [
'GTEST_RELATIVE_PATH',
],
'dependencies': [
'base.gyp:rtc_base',
'<(DEPTH)/testing/gtest.gyp:gtest',
'<(webrtc_root)/test/test.gyp:field_trial',
'<(webrtc_root)/test/test.gyp:test_support',
],
'direct_dependent_settings': {
'defines': [
'GTEST_RELATIVE_PATH',
],
},
'export_dependent_settings': [
'<(DEPTH)/testing/gtest.gyp:gtest',
],
},
],
}

View File

@ -1,6 +1,2 @@
kjellander@webrtc.org kjellander@webrtc.org
# These are for the common case of adding or renaming files. If you're doing
# structural changes, please get a review from a reviewer in this file.
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,42 +0,0 @@
# Copyright (c) 2012 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.
# This file sets correct neon flags. Include it if you want to build
# source with neon intrinsics.
# To use this, create a gyp target with the following form:
# {
# 'target_name': 'my_lib',
# 'type': 'static_library',
# 'sources': [
# 'foo.c',
# 'bar.cc',
# ],
# 'includes': ['path/to/this/gypi/file'],
# }
{
'cflags!': [
'-mfpu=vfpv3-d16',
],
'conditions': [
# "-mfpu=neon" is not required for arm64 in GCC.
['target_arch!="arm64"', {
'cflags': [
'-mfpu=neon',
],
}],
# Disable GCC LTO on NEON targets due to compiler bug.
# TODO(fdegans): Enable this. See crbug.com/408997.
['clang==0 and use_lto==1', {
'cflags!': [
'-flto',
'-ffat-lto-objects',
],
}],
],
}

File diff suppressed because it is too large Load Diff

View File

@ -1,594 +0,0 @@
# Copyright (c) 2012 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.
# This file contains common settings for building WebRTC components.
{
# Nesting is required in order to use variables for setting other variables.
'variables': {
'variables': {
'variables': {
'variables': {
# This will already be set to zero by supplement.gypi
'build_with_chromium%': 1,
# Enable to use the Mozilla internal settings.
'build_with_mozilla%': 0,
},
'build_with_chromium%': '<(build_with_chromium)',
'build_with_mozilla%': '<(build_with_mozilla%)',
'include_opus%': 1,
'conditions': [
# Include the iLBC audio codec?
['build_with_chromium==1 or build_with_mozilla==1', {
'include_ilbc%': 0,
}, {
'include_ilbc%': 1,
}],
['build_with_chromium==1', {
'webrtc_root%': '<(DEPTH)/third_party/webrtc',
}, {
'webrtc_root%': '<(DEPTH)/webrtc',
}],
# Controls whether we use libevent on posix platforms.
# TODO(phoglund): should arguably be controlled by platform #ifdefs
# in the code instead.
['OS=="win" or OS=="mac" or OS=="ios"', {
'build_libevent%': 0,
'enable_libevent%': 0,
}, {
'build_libevent%': 1,
'enable_libevent%': 1,
}],
],
},
'build_with_chromium%': '<(build_with_chromium)',
'build_with_mozilla%': '<(build_with_mozilla)',
'build_libevent%': '<(build_libevent)',
'enable_libevent%': '<(enable_libevent)',
'webrtc_root%': '<(webrtc_root)',
'webrtc_vp8_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp8',
'webrtc_vp9_dir%': '<(webrtc_root)/modules/video_coding/codecs/vp9',
'include_ilbc%': '<(include_ilbc)',
'include_opus%': '<(include_opus)',
'opus_dir%': '<(DEPTH)/third_party/opus',
},
'build_with_chromium%': '<(build_with_chromium)',
'build_with_mozilla%': '<(build_with_mozilla)',
'build_libevent%': '<(build_libevent)',
'enable_libevent%': '<(enable_libevent)',
'webrtc_root%': '<(webrtc_root)',
'test_runner_path': '<(DEPTH)/webrtc/build/android/test_runner.py',
'webrtc_vp8_dir%': '<(webrtc_vp8_dir)',
'webrtc_vp9_dir%': '<(webrtc_vp9_dir)',
'include_ilbc%': '<(include_ilbc)',
'include_opus%': '<(include_opus)',
'rtc_relative_path%': 1,
'external_libraries%': '0',
'json_root%': '<(DEPTH)/third_party/jsoncpp/source/include/',
# openssl needs to be defined or gyp will complain. Is is only used when
# when providing external libraries so just use current directory as a
# placeholder.
'ssl_root%': '.',
# The Chromium common.gypi we use treats all gyp files without
# chromium_code==1 as third party code. This disables many of the
# preferred warning settings.
#
# We can set this here to have WebRTC code treated as Chromium code. Our
# 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,
# Set to "func", "block", "edge" for coverage generation.
# At unit test runtime set UBSAN_OPTIONS="coverage=1".
# It is recommend to set include_examples=0.
# Use llvm's sancov -html-report for human readable reports.
# See http://clang.llvm.org/docs/SanitizerCoverage.html .
'webrtc_sanitize_coverage%': "",
# Remote bitrate estimator logging/plotting.
'enable_bwe_test_logging%': 0,
# Selects fixed-point code where possible.
'prefer_fixed_point%': 0,
# Enables the use of protocol buffers for debug recordings.
'enable_protobuf%': 1,
# Disable the code for the intelligibility enhancer by default.
'enable_intelligibility_enhancer%': 0,
# Selects whether debug dumps for the audio processing module
# should be generated.
'apm_debug_dump%': 0,
# Disable these to not build components which can be externally provided.
'build_expat%': 1,
'build_json%': 1,
'build_libsrtp%': 1,
'build_libvpx%': 1,
'libvpx_build_vp9%': 1,
'build_libyuv%': 1,
'build_openmax_dl%': 1,
'build_opus%': 1,
'build_protobuf%': 1,
'build_ssl%': 1,
'build_usrsctp%': 1,
# Disable by default
'have_dbus_glib%': 0,
# Make it possible to provide custom locations for some libraries.
'libvpx_dir%': '<(DEPTH)/third_party/libvpx',
'libyuv_dir%': '<(DEPTH)/third_party/libyuv',
'opus_dir%': '<(opus_dir)',
# Use Java based audio layer as default for Android.
# Change this setting to 1 to use Open SL audio instead.
# TODO(henrika): add support for Open SL ES.
'enable_android_opensl%': 0,
# Link-Time Optimizations
# Executes code generation at link-time instead of compile-time
# https://gcc.gnu.org/wiki/LinkTimeOptimization
'use_lto%': 0,
# Defer ssl perference to that specified through sslconfig.h instead of
# choosing openssl or nss directly. In practice, this can be used to
# enable schannel on windows.
'use_legacy_ssl_defaults%': 0,
# Determines whether NEON code will be built.
'build_with_neon%': 0,
# Disable this to skip building source requiring GTK.
'use_gtk%': 1,
# Enable this to prevent extern symbols from being hidden on iOS builds.
# The chromium settings we inherit hide symbols by default on Release
# builds. We want our symbols to be visible when distributing WebRTC via
# static libraries to avoid linker warnings.
'ios_override_visibility%': 0,
# Determines whether QUIC code will be built.
'use_quic%': 0,
# By default, use normal platform audio support or dummy audio, but don't
# use file-based audio playout and record.
'use_dummy_audio_file_devices%': 0,
'conditions': [
# Enable this to build OpenH264 encoder/FFmpeg decoder. This is supported
# on all platforms except Android and iOS. Because FFmpeg can be built
# with/without H.264 support, |ffmpeg_branding| has to separately be set
# to a value that includes H.264, for example "Chrome". If FFmpeg is built
# without H.264, compilation succeeds but |H264DecoderImpl| fails to
# initialize. See also: |rtc_initialize_ffmpeg|.
# CHECK THE OPENH264, FFMPEG AND H.264 LICENSES/PATENTS BEFORE BUILDING.
# http://www.openh264.org, https://www.ffmpeg.org/
['proprietary_codecs==1 and OS!="android" and OS!="ios"', {
'rtc_use_h264%': 1,
}, {
'rtc_use_h264%': 0,
}],
# FFmpeg must be initialized for |H264DecoderImpl| to work. This can be
# done by WebRTC during |H264DecoderImpl::InitDecode| or externally.
# FFmpeg must only be initialized once. Projects that initialize FFmpeg
# externally, such as Chromium, must turn this flag off so that WebRTC
# does not also initialize.
['build_with_chromium==0', {
'rtc_initialize_ffmpeg%': 1,
}, {
'rtc_initialize_ffmpeg%': 0,
}],
['build_with_chromium==1', {
# Build sources requiring GTK. NOTICE: This is not present in Chrome OS
# build environments, even if available for Chromium builds.
'use_gtk%': 0,
# Exclude pulse audio on Chromium since its prerequisites don't require
# pulse audio.
'include_pulse_audio%': 0,
# Exclude internal ADM since Chromium uses its own IO handling.
'include_internal_audio_device%': 0,
# Remove tests for Chromium to avoid slowing down GYP generation.
'include_tests%': 0,
'restrict_webrtc_logging%': 1,
}, { # Settings for the standalone (not-in-Chromium) build.
'use_gtk%': 1,
# TODO(andrew): For now, disable the Chrome plugins, which causes a
# flood of chromium-style warnings. Investigate enabling them:
# http://code.google.com/p/webrtc/issues/detail?id=163
'clang_use_chrome_plugins%': 0,
'include_pulse_audio%': 1,
'include_internal_audio_device%': 1,
'include_tests%': 1,
'restrict_webrtc_logging%': 0,
}],
['target_arch=="arm" or target_arch=="arm64" or target_arch=="mipsel"', {
'prefer_fixed_point%': 1,
}],
['(target_arch=="arm" and arm_neon==1) or target_arch=="arm64"', {
'build_with_neon%': 1,
}],
['OS!="ios" and (target_arch!="arm" or arm_version>=7) and target_arch!="mips64el"', {
'rtc_use_openmax_dl%': 1,
}, {
'rtc_use_openmax_dl%': 0,
}],
], # conditions
},
'target_defaults': {
'conditions': [
['restrict_webrtc_logging==1', {
'defines': ['WEBRTC_RESTRICT_LOGGING',],
}],
['build_with_mozilla==1', {
'defines': [
# Changes settings for Mozilla build.
'WEBRTC_MOZILLA_BUILD',
],
}],
['have_dbus_glib==1', {
'defines': [
'HAVE_DBUS_GLIB',
],
'cflags': [
'<!@(pkg-config --cflags dbus-glib-1)',
],
}],
['rtc_relative_path==1', {
'defines': ['EXPAT_RELATIVE_PATH',],
}],
['os_posix==1', {
'configurations': {
'Debug_Base': {
'defines': [
# Chromium's build/common.gypi defines _DEBUG for all posix
# _except_ for ios & mac. The size of data types such as
# pthread_mutex_t varies between release and debug builds
# and is controlled via this flag. Since we now share code
# between base/base.gyp and build/common.gypi (this file),
# both gyp(i) files, must consistently set this flag uniformly
# or else we'll run in to hard-to-figure-out problems where
# one compilation unit uses code from another but expects
# differently laid out types.
# For WebRTC, we want it there as well, because ASSERT and
# friends trigger off of it.
'_DEBUG',
],
},
},
}],
['build_with_chromium==1', {
'defines': [
# Changes settings for Chromium build.
# TODO(kjellander): Cleanup unused ones and move defines closer to the
# source when webrtc:4256 is completed.
'ENABLE_EXTERNAL_AUTH',
'FEATURE_ENABLE_SSL',
'HAVE_OPENSSL_SSL_H',
'HAVE_SCTP',
'HAVE_SRTP',
'HAVE_WEBRTC_VIDEO',
'HAVE_WEBRTC_VOICE',
'LOGGING_INSIDE_WEBRTC',
'NO_MAIN_THREAD_WRAPPING',
'NO_SOUND_SYSTEM',
'SSL_USE_OPENSSL',
'USE_WEBRTC_DEV_BRANCH',
'WEBRTC_CHROMIUM_BUILD',
],
'include_dirs': [
# Include the top-level directory when building in Chrome, so we can
# use full paths (e.g. headers inside testing/ or third_party/).
'<(DEPTH)',
# The overrides must be included before the WebRTC root as that's the
# mechanism for selecting the override headers in Chromium.
'../../webrtc_overrides',
# The WebRTC root is needed to allow includes in the WebRTC code base
# to be prefixed with webrtc/.
'../..',
],
}, {
'includes': [
# Rules for excluding e.g. foo_win.cc from the build on non-Windows.
'filename_rules.gypi',
],
# Include the top-level dir so the WebRTC code can use full paths.
'include_dirs': [
'../..',
],
'conditions': [
['os_posix==1', {
# Enable more warnings: -Wextra is currently disabled in Chromium.
'cflags': [
'-Wextra',
# Repeat some flags that get overridden by -Wextra.
'-Wno-unused-parameter',
'-Wno-missing-field-initializers',
'-Wno-strict-overflow',
],
'cflags_cc': [
'-Wnon-virtual-dtor',
# This is enabled for clang; enable for gcc as well.
'-Woverloaded-virtual',
],
}],
['clang==1', {
'cflags': [
'-Wimplicit-fallthrough',
'-Wthread-safety',
'-Winconsistent-missing-override',
],
}],
],
}],
['target_arch=="arm64"', {
'defines': [
'WEBRTC_ARCH_ARM64',
'WEBRTC_HAS_NEON',
],
}],
['target_arch=="arm"', {
'defines': [
'WEBRTC_ARCH_ARM',
],
'conditions': [
['arm_version>=7', {
'defines': ['WEBRTC_ARCH_ARM_V7',],
'conditions': [
['arm_neon==1', {
'defines': ['WEBRTC_HAS_NEON',],
}],
],
}],
],
}],
['target_arch=="mipsel" and mips_arch_variant!="r6"', {
'defines': [
'MIPS32_LE',
],
'conditions': [
['mips_float_abi=="hard"', {
'defines': [
'MIPS_FPU_LE',
],
}],
['mips_arch_variant=="r2"', {
'defines': [
'MIPS32_R2_LE',
],
}],
['mips_dsp_rev==1', {
'defines': [
'MIPS_DSP_R1_LE',
],
}],
['mips_dsp_rev==2', {
'defines': [
'MIPS_DSP_R1_LE',
'MIPS_DSP_R2_LE',
],
}],
],
}],
['coverage==1 and OS=="linux"', {
'cflags': [ '-ftest-coverage',
'-fprofile-arcs' ],
'ldflags': [ '--coverage' ],
'link_settings': { 'libraries': [ '-lgcov' ] },
}],
['webrtc_sanitize_coverage!=""', {
'cflags': [ '-fsanitize-coverage=<(webrtc_sanitize_coverage)' ],
'ldflags': [ '-fsanitize-coverage=<(webrtc_sanitize_coverage)' ],
}],
['webrtc_sanitize_coverage!="" and OS=="mac"', {
'xcode_settings': {
'OTHER_CFLAGS': [
'-fsanitize-coverage=func',
],
},
}],
['os_posix==1', {
# For access to standard POSIXish features, use WEBRTC_POSIX instead of
# a more specific macro.
'defines': [
'WEBRTC_POSIX',
],
}],
['OS=="ios"', {
'defines': [
'WEBRTC_MAC',
'WEBRTC_IOS',
],
}],
['OS=="ios" and ios_override_visibility==1', {
'xcode_settings': {
'GCC_INLINES_ARE_PRIVATE_EXTERN': 'NO',
'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
}
}],
['OS=="linux"', {
'defines': [
'WEBRTC_LINUX',
],
}],
['OS=="mac"', {
'defines': [
'WEBRTC_MAC',
],
}],
['OS=="win"', {
'defines': [
'WEBRTC_WIN',
],
# TODO(andrew): enable all warnings when possible.
# TODO(phoglund): get rid of 4373 supression when
# http://code.google.com/p/webrtc/issues/detail?id=261 is solved.
'msvs_disabled_warnings': [
4373, # legacy warning for ignoring const / volatile in signatures.
4389, # Signed/unsigned mismatch.
],
# Re-enable some warnings that Chromium disables.
'msvs_disabled_warnings!': [4189,],
}],
['OS=="android"', {
'defines': [
'WEBRTC_LINUX',
'WEBRTC_ANDROID',
],
'conditions': [
['clang==0', {
# The Android NDK doesn't provide optimized versions of these
# functions. Ensure they are disabled for all compilers.
'cflags': [
'-fno-builtin-cos',
'-fno-builtin-sin',
'-fno-builtin-cosf',
'-fno-builtin-sinf',
],
}],
],
}],
['chromeos==1', {
'defines': [
'CHROMEOS',
],
}],
['os_bsd==1', {
'defines': [
'BSD',
],
}],
['OS=="openbsd"', {
'defines': [
'OPENBSD',
],
}],
['OS=="freebsd"', {
'defines': [
'FREEBSD',
],
}],
['include_internal_audio_device==1', {
'defines': [
'WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE',
],
}],
['libvpx_build_vp9==0', {
'defines': [
'RTC_DISABLE_VP9',
],
}],
], # conditions
'direct_dependent_settings': {
'conditions': [
['build_with_mozilla==1', {
'defines': [
# Changes settings for Mozilla build.
'WEBRTC_MOZILLA_BUILD',
],
}],
['build_with_chromium==1', {
'defines': [
# Changes settings for Chromium build.
# TODO(kjellander): Cleanup unused ones and move defines closer to
# the source when webrtc:4256 is completed.
'FEATURE_ENABLE_SSL',
'FEATURE_ENABLE_VOICEMAIL',
'EXPAT_RELATIVE_PATH',
'GTEST_RELATIVE_PATH',
'NO_MAIN_THREAD_WRAPPING',
'NO_SOUND_SYSTEM',
'WEBRTC_CHROMIUM_BUILD',
],
'include_dirs': [
# The overrides must be included first as that is the mechanism for
# selecting the override headers in Chromium.
'../../webrtc_overrides',
'../..',
],
}, {
'include_dirs': [
'../..',
],
}],
['OS=="mac"', {
'defines': [
'WEBRTC_MAC',
],
}],
['OS=="ios"', {
'defines': [
'WEBRTC_MAC',
'WEBRTC_IOS',
],
}],
['OS=="win"', {
'defines': [
'WEBRTC_WIN',
'_CRT_SECURE_NO_WARNINGS', # Suppress warnings about _vsnprinf
],
}],
['OS=="linux"', {
'defines': [
'WEBRTC_LINUX',
],
}],
['OS=="android"', {
'defines': [
'WEBRTC_LINUX',
'WEBRTC_ANDROID',
],
}],
['os_posix==1', {
# For access to standard POSIXish features, use WEBRTC_POSIX instead
# of a more specific macro.
'defines': [
'WEBRTC_POSIX',
],
}],
['chromeos==1', {
'defines': [
'CHROMEOS',
],
}],
['os_bsd==1', {
'defines': [
'BSD',
],
}],
['OS=="openbsd"', {
'defines': [
'OPENBSD',
],
}],
['OS=="freebsd"', {
'defines': [
'FREEBSD',
],
}],
],
},
}, # target_defaults
}

View File

@ -1,105 +0,0 @@
# Copyright (c) 2016 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.
# This is a copy of the deleted build/filename_includes.gypi that
# has now been dropped from Chromium.
{
'target_conditions': [
['OS!="win" or >(nacl_untrusted_build)==1', {
'sources/': [ ['exclude', '_win(_browsertest|_unittest|_test)?\\.(h|cc)$'],
['exclude', '(^|/)win/'],
['exclude', '(^|/)win_[^/]*\\.(h|cc)$'] ],
}],
['OS!="mac" or >(nacl_untrusted_build)==1', {
'sources/': [ ['exclude', '_(cocoa|mac|mach)(_unittest|_test)?\\.(h|cc|c|mm?)$'],
['exclude', '(^|/)(cocoa|mac|mach)/'] ],
}],
['OS!="ios" or >(nacl_untrusted_build)==1', {
'sources/': [ ['exclude', '_ios(_unittest|_test)?\\.(h|cc|mm?)$'],
['exclude', '(^|/)ios/'] ],
}],
['(OS!="mac" and OS!="ios") or >(nacl_untrusted_build)==1', {
'sources/': [ ['exclude', '\\.mm?$' ] ],
}],
# Do not exclude the linux files on *BSD since most of them can be
# shared at this point.
# In case a file is not needed, it is going to be excluded later on.
# TODO(evan): the above is not correct; we shouldn't build _linux
# files on non-linux.
['OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nacl_untrusted_build)==1', {
'sources/': [
['exclude', '_linux(_unittest|_test)?\\.(h|cc)$'],
['exclude', '(^|/)linux/'],
],
}],
['OS!="android" or _toolset=="host" or >(nacl_untrusted_build)==1', {
'sources/': [
['exclude', '_android(_unittest|_test)?\\.(h|cc)$'],
['exclude', '(^|/)android/'],
],
}],
['OS=="win" and >(nacl_untrusted_build)==0', {
'sources/': [
['exclude', '_posix(_unittest|_test)?\\.(h|cc)$'],
['exclude', '(^|/)posix/'],
],
}],
['<(chromeos)!=1 or >(nacl_untrusted_build)==1', {
'sources/': [
['exclude', '_chromeos(_unittest|_test)?\\.(h|cc)$'],
['exclude', '(^|/)chromeos/'],
],
}],
['>(nacl_untrusted_build)==0', {
'sources/': [
['exclude', '_nacl(_unittest)?\\.(h|cc)$'],
],
}],
['OS!="linux" and OS!="openbsd" and OS!="freebsd" or >(nacl_untrusted_build)==1', {
'sources/': [
['exclude', '_xdg(_unittest)?\\.(h|cc)$'],
],
}],
['<(use_x11)!=1 or >(nacl_untrusted_build)==1', {
'sources/': [
['exclude', '_(x|x11)(_interactive_uitest|_unittest)?\\.(h|cc)$'],
['exclude', '(^|/)x11_[^/]*\\.(h|cc)$'],
['exclude', '(^|/)x11/'],
['exclude', '(^|/)x/'],
],
}],
['<(toolkit_views)==0 or >(nacl_untrusted_build)==1', {
'sources/': [ ['exclude', '_views(_browsertest|_unittest)?\\.(h|cc)$'] ]
}],
['<(use_aura)==0 or >(nacl_untrusted_build)==1', {
'sources/': [ ['exclude', '_aura(_browsertest|_unittest)?\\.(h|cc)$'],
['exclude', '(^|/)aura/'],
['exclude', '_ash(_browsertest|_unittest)?\\.(h|cc)$'],
['exclude', '(^|/)ash/'],
]
}],
['<(use_aura)==0 or <(use_x11)==0 or >(nacl_untrusted_build)==1', {
'sources/': [ ['exclude', '_aurax11(_browsertest|_unittest)?\\.(h|cc)$'] ]
}],
['<(use_aura)==0 or OS!="win" or >(nacl_untrusted_build)==1', {
'sources/': [ ['exclude', '_aurawin\\.(h|cc)$'],
['exclude', '_ashwin\\.(h|cc)$']
]
}],
['<(use_aura)==0 or OS!="linux" or >(nacl_untrusted_build)==1', {
'sources/': [ ['exclude', '_auralinux\\.(h|cc)$'] ]
}],
['<(use_ozone)==0 or >(nacl_untrusted_build)==1', {
'sources/': [ ['exclude', '_ozone(_browsertest|_unittest)?\\.(h|cc)$'] ]
}],
['<(use_pango)==0', {
'sources/': [ ['exclude', '(^|_)pango(_util|_browsertest|_unittest)?\\.(h|cc)$'], ],
}],
]
}

View File

@ -1,43 +0,0 @@
#!/usr/bin/env python
#
# Copyright (c) 2015 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.
"""Searches for DirectX SDK installation and prints full path to it."""
import os
import subprocess
import sys
def main():
sys.stdout.write(FindDirectXInstallation())
return 0
def FindDirectXInstallation():
"""Try to find an installation location for the DirectX SDK. Check for the
standard environment variable, and if that doesn't exist, try to find
via the registry. Returns empty string if not found in either location."""
dxsdk_dir = os.environ.get('DXSDK_DIR')
if dxsdk_dir:
return dxsdk_dir
# Setup params to pass to and attempt to launch reg.exe.
cmd = ['reg.exe', 'query', r'HKLM\Software\Microsoft\DirectX', '/s']
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
for line in p.communicate()[0].splitlines():
if 'InstallPath' in line:
return line.split(' ')[3] + "\\"
return ''
if __name__ == '__main__':
sys.exit(main())

View File

@ -1,17 +0,0 @@
#!/usr/bin/env python
#
# Copyright (c) 2014 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.
# Simple launcher script for gyp_webrtc.py.
# TODO(kjellander): This should probably be shell script but for historical
# reasons (all the python code used to live in this script without a
# .py extension, and was often run as 'python gyp_webrtc') it is
# currently still python.
execfile(__file__ + '.py')

View File

@ -1,181 +0,0 @@
#!/usr/bin/env python
#
# Copyright (c) 2014 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.
# This script is used to run GYP for WebRTC. It contains selected parts of the
# main function from the src/build/gyp_chromium.py file while other parts are
# reused to minimize code duplication.
import argparse
import gc
import glob
import os
import shlex
import sys
script_dir = os.path.dirname(os.path.realpath(__file__))
checkout_root = os.path.abspath(os.path.join(script_dir, os.pardir, os.pardir))
sys.path.insert(0, os.path.join(checkout_root, 'build'))
import gyp_chromium
import gyp_helper
import vs_toolchain
sys.path.insert(0, os.path.join(checkout_root, 'tools', 'gyp', 'pylib'))
import gyp
def GetSupplementalFiles():
"""Returns a list of the supplemental files.
A supplemental file is included in all GYP sources. Such files can be used to
override default values.
"""
# Can't use the one in gyp_chromium since the directory location of the root
# is different.
return glob.glob(os.path.join(checkout_root, '*', 'supplement.gypi'))
def GetOutputDirectory():
"""Returns the output directory that GYP will use."""
# Handle command line generator flags.
parser = argparse.ArgumentParser()
parser.add_argument('-G', dest='genflags', default=[], action='append')
genflags = parser.parse_known_args()[0].genflags
# Handle generator flags from the environment.
genflags += shlex.split(os.environ.get('GYP_GENERATOR_FLAGS', ''))
needle = 'output_dir='
for item in genflags:
if item.startswith(needle):
return item[len(needle):]
return 'out'
def additional_include_files(supplemental_files, args=None):
"""
Returns a list of additional (.gypi) files to include, without duplicating
ones that are already specified on the command line. The list of supplemental
include files is passed in as an argument.
"""
# Determine the include files specified on the command line.
# This doesn't cover all the different option formats you can use,
# but it's mainly intended to avoid duplicating flags on the automatic
# makefile regeneration which only uses this format.
specified_includes = set()
args = args or []
for arg in args:
if arg.startswith('-I') and len(arg) > 2:
specified_includes.add(os.path.realpath(arg[2:]))
result = []
def AddInclude(path):
if os.path.realpath(path) not in specified_includes:
result.append(path)
if os.environ.get('GYP_INCLUDE_FIRST') != None:
AddInclude(os.path.join(checkout_root, os.environ.get('GYP_INCLUDE_FIRST')))
# Always include Chromium's common.gypi, which we now have a copy of.
AddInclude(os.path.join(script_dir, 'chromium_common.gypi'))
# Optionally add supplemental .gypi files if present.
for supplement in supplemental_files:
AddInclude(supplement)
if os.environ.get('GYP_INCLUDE_LAST') != None:
AddInclude(os.path.join(checkout_root, os.environ.get('GYP_INCLUDE_LAST')))
return result
def main():
# Disabling garbage collection saves about 5% processing time. Since this is a
# short-lived process it's not a problem.
gc.disable()
args = sys.argv[1:]
if int(os.environ.get('GYP_CHROMIUM_NO_ACTION', 0)):
print 'Skipping gyp_webrtc.py due to GYP_CHROMIUM_NO_ACTION env var.'
sys.exit(0)
if 'SKIP_WEBRTC_GYP_ENV' not in os.environ:
# Update the environment based on webrtc.gyp_env.
gyp_env_path = os.path.join(os.path.dirname(checkout_root),
'webrtc.gyp_env')
gyp_helper.apply_gyp_environment_from_file(gyp_env_path)
# This could give false positives since it doesn't actually do real option
# parsing. Oh well.
gyp_file_specified = False
for arg in args:
if arg.endswith('.gyp'):
gyp_file_specified = True
break
# If we didn't get a file, assume 'all.gyp' in the root of the checkout.
if not gyp_file_specified:
# Because of a bug in gyp, simply adding the abspath to all.gyp doesn't
# work, but chdir'ing and adding the relative path does. Spooky :/
os.chdir(checkout_root)
args.append('all.gyp')
# There shouldn't be a circular dependency relationship between .gyp files,
args.append('--no-circular-check')
# Default to ninja unless GYP_GENERATORS is set.
if not os.environ.get('GYP_GENERATORS'):
os.environ['GYP_GENERATORS'] = 'ninja'
# Enable check for missing sources in GYP files on Windows.
if sys.platform.startswith('win'):
gyp_generator_flags = os.getenv('GYP_GENERATOR_FLAGS', '')
if not 'msvs_error_on_missing_sources' in gyp_generator_flags:
os.environ['GYP_GENERATOR_FLAGS'] = (
gyp_generator_flags + ' msvs_error_on_missing_sources=1')
vs2013_runtime_dll_dirs = None
if int(os.environ.get('DEPOT_TOOLS_WIN_TOOLCHAIN', '1')):
vs2013_runtime_dll_dirs = vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs()
# Enforce gyp syntax checking. This adds about 20% execution time.
args.append('--check')
supplemental_includes = GetSupplementalFiles()
gyp_vars = gyp_chromium.GetGypVars(supplemental_includes)
# Automatically turn on crosscompile support for platforms that need it.
if all(('ninja' in os.environ.get('GYP_GENERATORS', ''),
gyp_vars.get('OS') in ['android', 'ios'],
'GYP_CROSSCOMPILE' not in os.environ)):
os.environ['GYP_CROSSCOMPILE'] = '1'
args.extend(['-I' + i for i in additional_include_files(supplemental_includes,
args)])
# Set the gyp depth variable to the root of the checkout.
args.append('--depth=' + os.path.relpath(checkout_root))
print 'Updating projects from gyp files...'
sys.stdout.flush()
# Off we go...
gyp_rc = gyp.main(args)
if vs2013_runtime_dll_dirs:
# pylint: disable=unpacking-non-sequence
x64_runtime, x86_runtime = vs2013_runtime_dll_dirs
vs_toolchain.CopyVsRuntimeDlls(
os.path.join(checkout_root, GetOutputDirectory()),
(x86_runtime, x64_runtime))
sys.exit(gyp_rc)
if __name__ == '__main__':
sys.exit(main())

View File

@ -1,26 +0,0 @@
# Copyright (c) 2015 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.
{
'includes': ['../common.gypi',],
'conditions': [
['OS=="ios" or OS=="mac"', {
'targets': [
{
'target_name': 'rtc_sdk_peerconnection_objc_no_op',
'includes': [ 'objc_app.gypi' ],
'type': 'executable',
'dependencies': [
'<(webrtc_root)/sdk/sdk.gyp:rtc_sdk_peerconnection_objc',
],
'sources': ['no_op.cc',],
},
],
}]
],
}

View File

@ -1,33 +0,0 @@
# Copyright (c) 2014 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.
# Include this .gypi in an ObjC target's definition to allow it to be
# used as an iOS or OS/X application.
{
'variables': {
'infoplist_file': './objc_app.plist',
},
'dependencies': [
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:field_trial_default',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default',
],
'mac_bundle': 1,
'mac_bundle_resources': [
'<(infoplist_file)',
],
# The plist is listed above so that it appears in XCode's file list,
# but we don't actually want to bundle it.
'mac_bundle_resources!': [
'<(infoplist_file)',
],
'xcode_settings': {
'CLANG_ENABLE_OBJC_ARC': 'YES',
'INFOPLIST_FILE': '<(infoplist_file)',
},
}

View File

@ -1,142 +0,0 @@
# 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.
# Copied from Chromium's src/build/isolate.gypi
#
# It was necessary to copy this file because the path to build/common.gypi is
# different for the standalone and Chromium builds. Gyp doesn't permit
# conditional inclusion or variable expansion in include paths.
# http://code.google.com/p/gyp/wiki/InputFormatReference#Including_Other_Files
#
# Local modifications:
# * Removed include of '../chrome/version.gypi'.
# * Removed passing of version_full variable created in version.gypi:
# '--extra-variable', 'version_full=<(version_full)',
# This file is meant to be included into a target to provide a rule
# to "build" .isolate files into a .isolated file.
#
# To use this, create a gyp target with the following form:
# 'conditions': [
# ['test_isolation_mode != "noop"', {
# 'targets': [
# {
# 'target_name': 'foo_test_run',
# 'type': 'none',
# 'dependencies': [
# 'foo_test',
# ],
# 'includes': [
# '../build/isolate.gypi',
# 'foo_test.isolate',
# ],
# 'sources': [
# 'foo_test.isolate',
# ],
# },
# ],
# }],
# ],
#
# Note: foo_test.isolate is included and a source file. It is an inherent
# property of the .isolate format. This permits to define GYP variables but is
# a stricter format than GYP so isolate.py can read it.
#
# The generated .isolated file will be:
# <(PRODUCT_DIR)/foo_test.isolated
#
# See http://dev.chromium.org/developers/testing/isolated-testing/for-swes
# for more information.
{
'rules': [
{
'rule_name': 'isolate',
'extension': 'isolate',
'inputs': [
# Files that are known to be involved in this step.
'<(DEPTH)/tools/isolate_driver.py',
'<(DEPTH)/tools/swarming_client/isolate.py',
'<(DEPTH)/tools/swarming_client/run_isolated.py',
],
'outputs': [],
'action': [
'python',
'<(DEPTH)/tools/isolate_driver.py',
'<(test_isolation_mode)',
'--isolated', '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated',
'--isolate', '<(RULE_INPUT_PATH)',
# Variables should use the -V FOO=<(FOO) form so frequent values,
# like '0' or '1', aren't stripped out by GYP. Run 'isolate.py help' for
# more details.
# Path variables are used to replace file paths when loading a .isolate
# file
'--path-variable', 'DEPTH', '<(DEPTH)',
'--path-variable', 'PRODUCT_DIR', '<(PRODUCT_DIR) ',
# Note: This list must match DefaultConfigVariables()
# in build/android/pylib/utils/isolator.py
'--config-variable', 'CONFIGURATION_NAME=<(CONFIGURATION_NAME)',
'--config-variable', 'OS=<(OS)',
'--config-variable', 'asan=<(asan)',
'--config-variable', 'branding=<(branding)',
'--config-variable', 'chromeos=<(chromeos)',
'--config-variable', 'component=<(component)',
'--config-variable', 'disable_nacl=<(disable_nacl)',
'--config-variable', 'enable_pepper_cdms=<(enable_pepper_cdms)',
'--config-variable', 'enable_plugins=<(enable_plugins)',
'--config-variable', 'fastbuild=<(fastbuild)',
'--config-variable', 'icu_use_data_file_flag=<(icu_use_data_file_flag)',
# TODO(kbr): move this to chrome_tests.gypi:gles2_conform_tests_run
# once support for user-defined config variables is added.
'--config-variable',
'internal_gles2_conform_tests=<(internal_gles2_conform_tests)',
'--config-variable', 'kasko=<(kasko)',
'--config-variable', 'lsan=<(lsan)',
'--config-variable', 'msan=<(msan)',
'--config-variable', 'target_arch=<(target_arch)',
'--config-variable', 'tsan=<(tsan)',
'--config-variable', 'use_custom_libcxx=<(use_custom_libcxx)',
'--config-variable', 'use_instrumented_libraries=<(use_instrumented_libraries)',
'--config-variable',
'use_prebuilt_instrumented_libraries=<(use_prebuilt_instrumented_libraries)',
'--config-variable', 'use_ozone=<(use_ozone)',
'--config-variable', 'use_x11=<(use_x11)',
'--config-variable', 'v8_use_external_startup_data=<(v8_use_external_startup_data)',
],
'conditions': [
# Note: When gyp merges lists, it appends them to the old value.
['OS=="mac"', {
'action': [
'--extra-variable', 'mac_product_name=<(mac_product_name)',
],
}],
["test_isolation_mode == 'prepare'", {
'outputs': [
'<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated.gen.json',
],
}, {
'outputs': [
'<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated',
],
}],
['OS=="win"', {
'action': [
'--config-variable', 'msvs_version=<(MSVS_VERSION)',
],
}, {
'action': [
'--config-variable', 'msvs_version=0',
],
}],
],
},
],
}

View File

@ -26,32 +26,26 @@
'iOS64 Release': 'ios_gn_release_bot_arm64_device', 'iOS64 Release': 'ios_gn_release_bot_arm64_device',
'iOS32 Simulator Debug': 'ios_gn_debug_static_bot_x86', 'iOS32 Simulator Debug': 'ios_gn_debug_static_bot_x86',
'iOS64 Simulator Debug': 'ios_gn_debug_static_bot_x64', 'iOS64 Simulator Debug': 'ios_gn_debug_static_bot_x64',
'iOS64 Debug (GYP)': 'ios_gyp_debug_static_bot_arm64_device',
'iOS64 Release (GYP)': 'ios_gyp_release_bot_arm64_device',
# Mac # Mac
'Mac64 Debug': 'gn_debug_bot_x64', 'Mac64 Debug': 'gn_debug_bot_x64',
'Mac64 Release': 'gn_release_bot_x64', 'Mac64 Release': 'gn_release_bot_x64',
'Mac Asan': 'mac_gn_asan_clang_release_bot_x64', 'Mac Asan': 'mac_gn_asan_clang_release_bot_x64',
'Mac64 Release [large tests]': 'gn_release_bot_x64', 'Mac64 Release [large tests]': 'gn_release_bot_x64',
'Mac64 Debug (GYP)': 'gyp_debug_bot_x64_exclude_tests',
'Mac64 Release (GYP)': 'gyp_release_bot_x64_exclude_tests',
# Linux # Linux
'Linux32 Debug': 'gn_debug_bot_x86', 'Linux32 Debug': 'gn_debug_bot_x86',
'Linux32 Release': 'gn_release_bot_x86', 'Linux32 Release': 'gn_release_bot_x86',
'Linux32 ARM': 'gn_crosscompile_release_bot_arm', 'Linux32 ARM': 'gn_release_bot_arm',
'Linux64 Debug': 'gn_debug_bot_x64', 'Linux64 Debug': 'gn_debug_bot_x64',
'Linux64 Release': 'gn_release_bot_x64', 'Linux64 Release': 'gn_release_bot_x64',
'Linux Asan': 'gn_asan_lsan_clang_release_bot_x64', 'Linux Asan': 'gn_asan_lsan_clang_release_bot_x64',
'Linux Memcheck': 'gn_memcheck_release_bot_x64', 'Linux Memcheck': 'gn_release_bot_x64',
'Linux MSan': 'gn_msan_clang_release_bot_x64', 'Linux MSan': 'gn_msan_clang_release_bot_x64',
'Linux Tsan v2': 'gn_tsan_clang_release_bot_x64', 'Linux Tsan v2': 'gn_tsan_clang_release_bot_x64',
'Linux UBSan': 'gn_ubsan_clang_release_bot_x64', 'Linux UBSan': 'gn_ubsan_clang_release_bot_x64',
'Linux UBSan vptr': 'gn_ubsan_vptr_clang_release_bot_x64', 'Linux UBSan vptr': 'gn_ubsan_vptr_clang_release_bot_x64',
'Linux64 Release [large tests]': 'gn_release_bot_x64', 'Linux64 Release [large tests]': 'gn_release_bot_x64',
'Linux64 Debug (GYP)': 'gyp_debug_bot_x64_exclude_tests',
'Linux64 Release (GYP)': 'gyp_release_bot_x64_exclude_tests',
# Android # Android
'Android32 (M Nexus5X)': 'android_gn_release_bot_arm', 'Android32 (M Nexus5X)': 'android_gn_release_bot_arm',
@ -63,8 +57,6 @@
'Android64 Builder x64 (dbg)': 'android_gn_debug_static_bot_x64', 'Android64 Builder x64 (dbg)': 'android_gn_debug_static_bot_x64',
'Android32 Builder MIPS (dbg)': 'android_gn_clang_debug_static_bot_mipsel', 'Android32 Builder MIPS (dbg)': 'android_gn_clang_debug_static_bot_mipsel',
'Android32 Clang (dbg)': 'android_gn_clang_debug_bot_arm', 'Android32 Clang (dbg)': 'android_gn_clang_debug_bot_arm',
'Android32 GYP': 'android_gyp_release_bot_arm',
'Android32 GYP (dbg)': 'android_gyp_debug_static_bot_arm',
# Windows # Windows
'Win32 Debug': 'gn_debug_bot_x86', 'Win32 Debug': 'gn_debug_bot_x86',
@ -77,8 +69,6 @@
'Win64 Release (Clang)': 'win_gn_clang_release_bot_x64', 'Win64 Release (Clang)': 'win_gn_clang_release_bot_x64',
'Win SyzyASan': 'win_gn_syzyasan_release_bot_x86', 'Win SyzyASan': 'win_gn_syzyasan_release_bot_x86',
'Win32 Release [large tests]': 'gn_release_bot_x86', 'Win32 Release [large tests]': 'gn_release_bot_x86',
'Win64 Debug (GYP)': 'gyp_debug_bot_x64_exclude_tests',
'Win64 Release (GYP)': 'gyp_release_bot_x64_exclude_tests',
}, },
'client.webrtc.perf': { 'client.webrtc.perf': {
# Android # Android
@ -95,7 +85,7 @@
# Linux # Linux
'Linux64 GCC': 'gn_gcc_release_bot_x64', 'Linux64 GCC': 'gn_gcc_release_bot_x64',
'Linux Asan (swarming)': 'gn_asan_lsan_clang_release_bot_x64', 'Linux Asan (swarming)': 'gn_asan_lsan_clang_release_bot_x64',
'Linux Memcheck (swarming)': 'gn_memcheck_release_bot_x64', 'Linux Memcheck (swarming)': 'gn_release_bot_x64',
'Linux MSan (swarming)': 'gn_msan_clang_release_bot_x64', 'Linux MSan (swarming)': 'gn_msan_clang_release_bot_x64',
'Linux Tsan v2 (swarming)': 'gn_tsan_clang_release_bot_x64', 'Linux Tsan v2 (swarming)': 'gn_tsan_clang_release_bot_x64',
'Linux UBSan (swarming)': 'gn_ubsan_clang_release_bot_x64', 'Linux UBSan (swarming)': 'gn_ubsan_clang_release_bot_x64',
@ -122,8 +112,6 @@
'ios_arm64_rel': 'ios_gn_release_bot_arm64_device', 'ios_arm64_rel': 'ios_gn_release_bot_arm64_device',
'ios32_sim_dbg': 'ios_gn_debug_static_bot_x86', 'ios32_sim_dbg': 'ios_gn_debug_static_bot_x86',
'ios64_sim_dbg': 'ios_gn_debug_static_bot_x64', 'ios64_sim_dbg': 'ios_gn_debug_static_bot_x64',
'ios64_gyp_dbg': 'ios_gyp_debug_static_bot_arm64_device',
'ios64_gyp_rel': 'ios_gyp_release_bot_arm64_device',
# Mac # Mac
'mac_compile_dbg': 'gn_debug_bot_x64', 'mac_compile_dbg': 'gn_debug_bot_x64',
@ -133,8 +121,6 @@
'mac_asan': 'mac_gn_asan_clang_release_bot_x64', 'mac_asan': 'mac_gn_asan_clang_release_bot_x64',
'mac_baremetal': 'gn_release_bot_x64', 'mac_baremetal': 'gn_release_bot_x64',
'mac_swarming': 'swarming_gn_debug_bot_x64', 'mac_swarming': 'swarming_gn_debug_bot_x64',
'mac_gyp_dbg': 'gyp_debug_bot_x64_exclude_tests',
'mac_gyp_rel': 'gyp_release_bot_x64_exclude_tests',
# Linux # Linux
'linux_compile_dbg': 'gn_debug_bot_x64', 'linux_compile_dbg': 'gn_debug_bot_x64',
@ -143,17 +129,15 @@
'linux_rel': 'gn_release_bot_x64', 'linux_rel': 'gn_release_bot_x64',
'linux32_dbg': 'gn_debug_bot_x86', 'linux32_dbg': 'gn_debug_bot_x86',
'linux32_rel': 'gn_release_bot_x86', 'linux32_rel': 'gn_release_bot_x86',
'linux_arm': 'gn_crosscompile_release_bot_arm', 'linux_arm': 'gn_release_bot_arm',
'linux_asan': 'gn_asan_lsan_clang_release_bot_x64', 'linux_asan': 'gn_asan_lsan_clang_release_bot_x64',
'linux_memcheck': 'gn_memcheck_release_bot_x64', 'linux_memcheck': 'gn_release_bot_x64',
'linux_msan': 'gn_msan_clang_release_bot_x64', 'linux_msan': 'gn_msan_clang_release_bot_x64',
'linux_tsan2': 'gn_tsan_clang_release_bot_x64', 'linux_tsan2': 'gn_tsan_clang_release_bot_x64',
'linux_ubsan': 'gn_ubsan_clang_release_bot_x64', 'linux_ubsan': 'gn_ubsan_clang_release_bot_x64',
'linux_ubsan_vptr': 'gn_ubsan_vptr_clang_release_bot_x64', 'linux_ubsan_vptr': 'gn_ubsan_vptr_clang_release_bot_x64',
'linux_baremetal': 'gn_release_bot_x64', 'linux_baremetal': 'gn_release_bot_x64',
'linux_swarming': 'swarming_gn_debug_bot_x64', 'linux_swarming': 'swarming_gn_debug_bot_x64',
'linux_gyp_dbg': 'gyp_debug_bot_x64_exclude_tests',
'linux_gyp_rel': 'gyp_release_bot_x64_exclude_tests',
# Android # Android
'android_compile_dbg': 'android_gn_debug_static_bot_arm', 'android_compile_dbg': 'android_gn_debug_static_bot_arm',
@ -169,8 +153,6 @@
'android_clang_dbg': 'android_gn_clang_debug_bot_arm', 'android_clang_dbg': 'android_gn_clang_debug_bot_arm',
'android_arm64_rel': 'android_gn_release_bot_arm64', 'android_arm64_rel': 'android_gn_release_bot_arm64',
'android_n6': 'android_gn_debug_static_bot_arm', 'android_n6': 'android_gn_debug_static_bot_arm',
'android_gyp_dbg': 'android_gyp_debug_static_bot_arm',
'android_gyp_rel': 'android_gyp_release_bot_arm',
'android_swarming': 'swarming_android_gn_release_bot_arm', 'android_swarming': 'swarming_android_gn_release_bot_arm',
# Windows # Windows
@ -191,8 +173,6 @@
'win_swarming': 'swarming_gn_debug_bot_x64', 'win_swarming': 'swarming_gn_debug_bot_x64',
'win_x64_win8': 'gn_debug_bot_x64', 'win_x64_win8': 'gn_debug_bot_x64',
'win_x64_win10': 'gn_debug_bot_x64', 'win_x64_win10': 'gn_debug_bot_x64',
'win_x64_gyp_dbg': 'gyp_debug_bot_x64_exclude_tests',
'win_x64_gyp_rel': 'gyp_release_bot_x64_exclude_tests',
} }
}, },
@ -221,34 +201,17 @@
'ios_gn_debug_static_bot_x64': [ 'ios_gn_debug_static_bot_x64': [
'ios', 'gn', 'debug_static_bot', 'x64' 'ios', 'gn', 'debug_static_bot', 'x64'
], ],
'ios_gyp_debug_static_bot_arm64_device': [
'ios', 'gyp', 'gyp_limited_support_build', 'debug_static_bot', 'arm64',
'device'
],
'ios_gyp_release_bot_arm64_device': [
'ios', 'gyp', 'gyp_limited_support_build', 'release_bot', 'arm64',
'device'
],
# Linux, Mac and Windows # Linux, Mac and Windows
'gn_gcc_release_bot_x64': [ 'gn_gcc_release_bot_x64': [
'gn', 'gcc', 'release_bot', 'x64' 'gn', 'gcc', 'release_bot', 'x64'
], ],
'gn_crosscompile_release_bot_arm': [ 'gn_release_bot_arm': [
'gn', 'crosscompile', 'openh264_release_bot', 'arm' 'gn', 'openh264_release_bot', 'arm'
],
'gyp_debug_bot_x64_exclude_tests': [
'gyp', 'gyp_limited_support_build', 'debug_bot', 'x64'
],
'gyp_release_bot_x64_exclude_tests': [
'gyp', 'gyp_limited_support_build', 'release_bot', 'x64'
], ],
'gn_asan_lsan_clang_release_bot_x64': [ 'gn_asan_lsan_clang_release_bot_x64': [
'gn', 'asan', 'lsan', 'clang', 'openh264_release_bot', 'x64' 'gn', 'asan', 'lsan', 'clang', 'openh264_release_bot', 'x64'
], ],
'gn_memcheck_release_bot_x64': [
'gn', 'memcheck', 'openh264_release_bot', 'x64'
],
'gn_msan_clang_release_bot_x64': [ 'gn_msan_clang_release_bot_x64': [
'gn', 'msan', 'clang', 'openh264_release_bot', 'x64' 'gn', 'msan', 'clang', 'openh264_release_bot', 'x64'
], ],
@ -300,12 +263,6 @@
], ],
# Android # Android
'android_gyp_debug_static_bot_arm': [
'android', 'gyp', 'gyp_limited_support_build', 'debug_static_bot', 'arm'
],
'android_gyp_release_bot_arm': [
'android', 'gyp', 'gyp_limited_support_build', 'release_bot', 'arm'
],
'android_gn_debug_static_bot_arm': [ 'android_gn_debug_static_bot_arm': [
'android', 'gn', 'debug_static_bot', 'arm' 'android', 'gn', 'debug_static_bot', 'arm'
], ],
@ -352,40 +309,26 @@
'mixins': { 'mixins': {
'android': { 'android': {
'gn_args': 'target_os="android"', 'gn_args': 'target_os="android"',
'gyp_defines': 'OS=android',
}, },
'arm': { 'arm': {
'gn_args': 'target_cpu="arm"', 'gn_args': 'target_cpu="arm"',
'gyp_defines': 'target_arch=arm',
}, },
'arm64': { 'arm64': {
'gn_args': 'target_cpu="arm64"', 'gn_args': 'target_cpu="arm64"',
'gyp_defines': 'target_arch=arm64',
}, },
'asan': { 'asan': {
'gn_args': 'is_asan=true', 'gn_args': 'is_asan=true',
'gyp_defines': 'asan=1',
}, },
'clang': { 'clang': {
'gn_args': 'is_clang=true', 'gn_args': 'is_clang=true',
'gyp_defines': 'clang=1',
},
'crosscompile': {
# This mixin is only needed on GYP bots that are doing cross-compiles
# but are *not* targetting Android or iOS (where
# webrtc/build/gyp_webrtc.py will set the crosscompile variable
# automatically). It is not need in GN at all.
'gyp_crosscompile': True,
}, },
'dcheck_always_on': { 'dcheck_always_on': {
'gn_args': 'dcheck_always_on=true', 'gn_args': 'dcheck_always_on=true',
'gyp_defines': 'dcheck_always_on=1',
}, },
'debug': { 'debug': {
@ -402,7 +345,6 @@
'device': { 'device': {
'gn_args': 'ios_enable_code_signing=false', 'gn_args': 'ios_enable_code_signing=false',
'gyp_defines': 'chromium_ios_signing=0',
}, },
# This mixin is used to force configs that use it to fail. It # This mixin is used to force configs that use it to fail. It
@ -411,7 +353,6 @@
# that are test-only and should never run MB. # that are test-only and should never run MB.
'error': { 'error': {
'gn_args': 'error', 'gn_args': 'error',
'gyp_defines': 'target_arch=unknown',
}, },
'gcc': { 'gcc': {
@ -422,22 +363,7 @@
'gn': {'type': 'gn'}, 'gn': {'type': 'gn'},
'goma': { 'goma': {
# The MB code will properly escape goma_dir if necessary in the GYP
# code path; the GN code path needs no escaping.
'gn_args': 'use_goma=true', 'gn_args': 'use_goma=true',
'gyp_defines': 'use_goma=1',
},
'gyp': {'type': 'gyp'},
'gyp_limited_support_build': {
'gyp_defines': (
'include_examples=0 include_tests=0 include_ilbc=0 '
'build_expat=0 build_json=0 build_libevent=0 build_libjpeg=0 '
'build_libsrtp=0 build_libvpx=0 build_libyuv=0 build_openmax_dl=0 '
'build_opus=0 build_protobuf=0 build_ssl=0 build_usrsctp=0 '
'enable_video=0 linux_use_bundled_binutils=0 rtc_use_openmax_dl=1 '
'use_openssl=1 use_x11=0 use_gtk=0'),
}, },
'ios': { 'ios': {
@ -447,38 +373,27 @@
'lsan': { 'lsan': {
'gn_args': 'is_lsan=true', 'gn_args': 'is_lsan=true',
'gyp_defines': 'lsan=1',
},
'memcheck': {
'gyp_defines': 'build_for_tool=memcheck',
}, },
'minimal_symbols': { 'minimal_symbols': {
'gn_args': 'symbol_level=1', 'gn_args': 'symbol_level=1',
'gyp_defines': 'fastbuild=1',
}, },
'mipsel': { 'mipsel': {
'gn_args': 'target_cpu="mipsel"', 'gn_args': 'target_cpu="mipsel"',
'gyp_defines': 'target_arch=mipsel',
}, },
'minimal_symbols': { 'minimal_symbols': {
'gn_args': 'symbol_level=1', 'gn_args': 'symbol_level=1',
'gyp_defines': 'fastbuild=1',
}, },
'msan': { 'msan': {
'gn_args': ('is_msan=true msan_track_origins=2 ' 'gn_args': ('is_msan=true msan_track_origins=2 '
'use_prebuilt_instrumented_libraries=true'), 'use_prebuilt_instrumented_libraries=true'),
'gyp_defines': ('msan=1 msan_track_origins=2 '
'use_prebuilt_instrumented_libraries=1'),
}, },
'openh264': { 'openh264': {
'gn_args': 'ffmpeg_branding="Chrome" rtc_use_h264=true', 'gn_args': 'ffmpeg_branding="Chrome" rtc_use_h264=true',
'gyp_defines': 'ffmpeg_branding=Chrome rtc_use_h264=1',
}, },
'openh264_debug_bot': { 'openh264_debug_bot': {
@ -499,47 +414,38 @@
'shared': { 'shared': {
'gn_args': 'is_component_build=true', 'gn_args': 'is_component_build=true',
'gyp_defines': 'component=shared_library',
}, },
'static': { 'static': {
'gn_args': 'is_component_build=false', 'gn_args': 'is_component_build=false',
'gyp_defines': 'component=static_library',
}, },
'swarming': { 'swarming': {
'gn_args': '', 'gn_args': '',
'gyp_defines': 'test_isolation_mode=prepare',
}, },
'syzyasan': { 'syzyasan': {
'gn_args': 'is_syzyasan=true', 'gn_args': 'is_syzyasan=true',
'gyp_defines': 'syzyasan=1'
}, },
'tsan': { 'tsan': {
'gn_args': 'is_tsan=true', 'gn_args': 'is_tsan=true',
'gyp_defines': 'tsan=1',
}, },
'ubsan': { 'ubsan': {
'gn_args': 'is_ubsan=true', 'gn_args': 'is_ubsan=true',
'gyp_defines': 'ubsan=1',
}, },
'ubsan_vptr': { 'ubsan_vptr': {
'gn_args': 'is_ubsan_vptr=true', 'gn_args': 'is_ubsan_vptr=true',
'gyp_defines': 'ubsan_vptr=1',
}, },
'x64': { 'x64': {
'gn_args': 'target_cpu="x64"', 'gn_args': 'target_cpu="x64"',
'gyp_defines': 'target_arch=x64',
}, },
'x86': { 'x86': {
'gn_args': 'target_cpu="x86"', 'gn_args': 'target_cpu="x86"',
'gyp_defines': 'target_arch=ia32',
}, },
}, },
} }

View File

@ -1,49 +0,0 @@
# Copyright (c) 2011 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.
{
'includes': ['common.gypi',],
'variables': {
'merge_libs_dependencies': [
],
},
'targets': [
{
'target_name': 'no_op',
'type': 'executable',
'dependencies': [
'<@(merge_libs_dependencies)',
'../webrtc.gyp:webrtc',
'../p2p/p2p.gyp:rtc_p2p',
],
'sources': ['no_op.cc',],
},
{
'target_name': 'merged_lib',
'type': 'none',
'dependencies': [
'no_op',
],
'actions': [
{
'variables': {
'output_lib_name': 'webrtc_merged',
'output_lib': '<(PRODUCT_DIR)/<(STATIC_LIB_PREFIX)<(output_lib_name)<(STATIC_LIB_SUFFIX)',
},
'action_name': 'merge_libs',
'inputs': ['<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)no_op<(EXECUTABLE_SUFFIX)'],
'outputs': ['<(output_lib)'],
'action': ['python',
'merge_libs.py',
'<(PRODUCT_DIR)',
'<(output_lib)',],
},
],
},
],
}

View File

@ -1,48 +0,0 @@
# Copyright (c) 2014 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.
{
'includes': ['common.gypi',],
'variables': {
'merge_libs_dependencies': [
],
},
'targets': [
{
'target_name': 'no_op_voice',
'type': 'executable',
'dependencies': [
'<@(merge_libs_dependencies)',
'../voice_engine/voice_engine.gyp:voice_engine'
],
'sources': ['no_op.cc',],
},
{
'target_name': 'merged_lib_voice',
'type': 'none',
'dependencies': [
'no_op_voice',
],
'actions': [
{
'variables': {
'output_lib_name': 'rtc_voice_merged',
'output_lib': '<(PRODUCT_DIR)/<(STATIC_LIB_PREFIX)<(output_lib_name)<(STATIC_LIB_SUFFIX)',
},
'action_name': 'merge_libs_voice',
'inputs': ['<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)no_op_voice<(EXECUTABLE_SUFFIX)'],
'outputs': ['<(output_lib)'],
'action': ['python',
'merge_libs.py',
'<(PRODUCT_DIR)',
'<(output_lib)',],
},
],
},
],
}

View File

@ -1,43 +0,0 @@
# Copyright (c) 2012 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.
{
'includes': [ 'common.gypi', ],
'targets': [
{
'target_name': 'no_op',
'type': 'executable',
'dependencies': [
'../voice_engine/voice_engine.gyp:voice_engine',
],
'sources': [ 'no_op.cc', ],
},
{
'target_name': 'merge_voice_libs',
'type': 'none',
'dependencies': [
'no_op',
],
'actions': [
{
'variables': {
'output_lib_name': 'webrtc_voice',
'output_lib': '<(PRODUCT_DIR)/<(STATIC_LIB_PREFIX)<(output_lib_name)<(STATIC_LIB_SUFFIX)',
},
'action_name': 'merge_libs',
'inputs': ['<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)no_op<(EXECUTABLE_SUFFIX)'],
'outputs': ['<(output_lib)'],
'action': ['python',
'merge_libs.py',
'<(PRODUCT_DIR)',
'<(output_lib)',],
},
],
},
],
}

View File

@ -1,21 +0,0 @@
# Copyright 2016 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.
# ObjC target common prefix header.
{
'variables': {
'objc_prefix_file': '../sdk/objc/WebRTC-Prefix.pch',
},
'xcode_settings': {
'CLANG_ENABLE_OBJC_ARC': 'YES',
'CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS': 'YES',
'GCC_PREFIX_HEADER': '<(objc_prefix_file)',
'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'
},
}

View File

@ -1,136 +0,0 @@
# 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.
# Copied from Chromium's src/build/protoc.gypi
#
# It was necessary to copy this file to WebRTC, because the path to
# build/common.gypi is different for the standalone and Chromium builds. Gyp
# doesn't permit conditional inclusion or variable expansion in include paths.
# http://code.google.com/p/gyp/wiki/InputFormatReference#Including_Other_Files
#
# Local changes:
# * Removed <(DEPTH) from include_dir due to difficulties with generated
# downstream code.
# This file is meant to be included into a target to provide a rule
# to invoke protoc in a consistent manner. For Java-targets, see
# protoc_java.gypi.
#
# To use this, create a gyp target with the following form:
# {
# 'target_name': 'my_proto_lib',
# 'type': 'static_library',
# 'sources': [
# 'foo.proto',
# 'bar.proto',
# ],
# 'variables': {
# # Optional, see below: 'proto_in_dir': '.'
# 'proto_out_dir': 'dir/for/my_proto_lib'
# },
# 'includes': ['path/to/this/gypi/file'],
# }
# If necessary, you may add normal .cc files to the sources list or other gyp
# dependencies. The proto headers are guaranteed to be generated before any
# source files, even within this target, are compiled.
#
# The 'proto_in_dir' variable must be the relative path to the
# directory containing the .proto files. If left out, it defaults to '.'.
#
# The 'proto_out_dir' variable specifies the path suffix that output
# files are generated under. Targets that gyp-depend on my_proto_lib
# will be able to include the resulting proto headers with an include
# like:
# #include "dir/for/my_proto_lib/foo.pb.h"
#
# If you need to add an EXPORT macro to a protobuf's c++ header, set the
# 'cc_generator_options' variable with the value: 'dllexport_decl=FOO_EXPORT:'
# e.g. 'dllexport_decl=BASE_EXPORT:'
#
# It is likely you also need to #include a file for the above EXPORT macro to
# work. You can do so with the 'cc_include' variable.
# e.g. 'base/base_export.h'
#
# Implementation notes:
# A proto_out_dir of foo/bar produces
# <(SHARED_INTERMEDIATE_DIR)/protoc_out/foo/bar/{file1,file2}.pb.{cc,h}
# <(SHARED_INTERMEDIATE_DIR)/pyproto/foo/bar/{file1,file2}_pb2.py
{
'variables': {
'protoc_wrapper': '<(DEPTH)/tools/protoc_wrapper/protoc_wrapper.py',
'cc_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out/<(proto_out_dir)',
'py_dir': '<(PRODUCT_DIR)/pyproto/<(proto_out_dir)',
'cc_generator_options%': '',
'cc_include%': '',
'proto_in_dir%': '.',
'conditions': [
['use_system_protobuf==0', {
'protoc': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)',
}, { # use_system_protobuf==1
'protoc': '<!(which protoc)',
}],
],
},
'rules': [
{
'rule_name': 'genproto',
'extension': 'proto',
'inputs': [
'<(protoc_wrapper)',
'<(protoc)',
],
'outputs': [
'<(py_dir)/<(RULE_INPUT_ROOT)_pb2.py',
'<(cc_dir)/<(RULE_INPUT_ROOT).pb.cc',
'<(cc_dir)/<(RULE_INPUT_ROOT).pb.h',
],
'action': [
'python',
'<(protoc_wrapper)',
'--protoc',
'<(protoc)',
# Using the --arg val form (instead of --arg=val) allows gyp's msvs rule
# generation to correct 'val' which is a path.
'--proto-in-dir','<(proto_in_dir)',
# Naively you'd use <(RULE_INPUT_PATH) here, but protoc requires
# --proto_path is a strict prefix of the path given as an argument.
'--cc-out-dir', '<(cc_generator_options)<(cc_dir)',
'--py-out-dir', '<(py_dir)',
'<(RULE_INPUT_ROOT)<(RULE_INPUT_EXT)',
],
'message': 'Generating C++ and Python code from <(RULE_INPUT_PATH)',
'process_outputs_as_sources': 1,
},
],
'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)/protoc_out',
],
'direct_dependent_settings': {
'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)/protoc_out',
]
},
# This target exports a hard dependency because it generates header
# files.
'hard_dependency': 1,
'conditions': [
['build_protobuf==1', {
'dependencies': [
'<(DEPTH)/third_party/protobuf/protobuf.gyp:protoc#host',
'<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite',
],
'export_dependent_settings': [
# The generated headers reference headers within protobuf_lite,
# so dependencies must be able to find those headers too.
'<(DEPTH)/third_party/protobuf/protobuf.gyp:protobuf_lite',
],
}],
],
}

View File

@ -7,5 +7,3 @@ stefan@webrtc.org
# structural changes, please get a review from a reviewer in this file. # structural changes, please get a review from a reviewer in this file.
per-file *.gn=* per-file *.gn=*
per-file *.gni=* per-file *.gni=*
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,26 +0,0 @@
# 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': {
'webrtc_call_dependencies': [
'<(webrtc_root)/common.gyp:webrtc_common',
'<(webrtc_root)/modules/modules.gyp:congestion_controller',
'<(webrtc_root)/modules/modules.gyp:rtp_rtcp',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/webrtc.gyp:rtc_event_log_impl',
],
'webrtc_call_sources': [
'call/bitrate_allocator.cc',
'call/call.cc',
'call/flexfec_receive_stream.cc',
'call/flexfec_receive_stream.h',
'video/transport_adapter.cc',
'video/transport_adapter.h',
],
},
}

View File

@ -1,24 +0,0 @@
# Copyright (c) 2014 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.
{
'includes': ['build/common.gypi'],
'targets': [
{
'target_name': 'webrtc_common',
'type': 'static_library',
'sources': [
'common_types.cc',
'common_types.h',
'config.h',
'config.cc',
'typedefs.h',
'voice_engine_configurations.h',
],
},
],
}

View File

@ -3,11 +3,7 @@ jan.skoglund@webrtc.org
kwiberg@webrtc.org kwiberg@webrtc.org
tina.legrand@webrtc.org tina.legrand@webrtc.org
per-file *.isolate=kjellander@webrtc.org
# These are for the common case of adding or renaming files. If you're doing # These are for the common case of adding or renaming files. If you're doing
# structural changes, please get a review from a reviewer in this file. # structural changes, please get a review from a reviewer in this file.
per-file *.gn=* per-file *.gn=*
per-file *.gni=* per-file *.gni=*
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,232 +0,0 @@
# Copyright (c) 2011 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.
{
'includes': [
'../build/common.gypi',
],
'targets': [
{
'target_name': 'common_audio',
'type': 'static_library',
'dependencies': [
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
],
'include_dirs': [
'resampler/include',
'signal_processing/include',
],
'direct_dependent_settings': {
'include_dirs': [
'resampler/include',
'signal_processing/include',
'vad/include',
],
},
'sources': [
'audio_converter.cc',
'audio_converter.h',
'audio_ring_buffer.cc',
'audio_ring_buffer.h',
'audio_util.cc',
'blocker.cc',
'blocker.h',
'channel_buffer.cc',
'channel_buffer.h',
'fft4g.c',
'fft4g.h',
'fir_filter.cc',
'fir_filter.h',
'fir_filter_neon.h',
'fir_filter_sse.h',
'include/audio_util.h',
'lapped_transform.cc',
'lapped_transform.h',
'real_fourier.cc',
'real_fourier.h',
'real_fourier_ooura.cc',
'real_fourier_ooura.h',
'resampler/include/push_resampler.h',
'resampler/include/resampler.h',
'resampler/push_resampler.cc',
'resampler/push_sinc_resampler.cc',
'resampler/push_sinc_resampler.h',
'resampler/resampler.cc',
'resampler/sinc_resampler.cc',
'resampler/sinc_resampler.h',
'ring_buffer.c',
'ring_buffer.h',
'signal_processing/include/real_fft.h',
'signal_processing/include/signal_processing_library.h',
'signal_processing/include/spl_inl.h',
'signal_processing/auto_corr_to_refl_coef.c',
'signal_processing/auto_correlation.c',
'signal_processing/complex_fft.c',
'signal_processing/complex_fft_tables.h',
'signal_processing/complex_bit_reverse.c',
'signal_processing/copy_set_operations.c',
'signal_processing/cross_correlation.c',
'signal_processing/division_operations.c',
'signal_processing/dot_product_with_scale.c',
'signal_processing/downsample_fast.c',
'signal_processing/energy.c',
'signal_processing/filter_ar.c',
'signal_processing/filter_ar_fast_q12.c',
'signal_processing/filter_ma_fast_q12.c',
'signal_processing/get_hanning_window.c',
'signal_processing/get_scaling_square.c',
'signal_processing/ilbc_specific_functions.c',
'signal_processing/levinson_durbin.c',
'signal_processing/lpc_to_refl_coef.c',
'signal_processing/min_max_operations.c',
'signal_processing/randomization_functions.c',
'signal_processing/refl_coef_to_lpc.c',
'signal_processing/real_fft.c',
'signal_processing/resample.c',
'signal_processing/resample_48khz.c',
'signal_processing/resample_by_2.c',
'signal_processing/resample_by_2_internal.c',
'signal_processing/resample_by_2_internal.h',
'signal_processing/resample_fractional.c',
'signal_processing/spl_init.c',
'signal_processing/spl_inl.c',
'signal_processing/spl_sqrt.c',
'signal_processing/spl_sqrt_floor.c',
'signal_processing/splitting_filter.c',
'signal_processing/sqrt_of_one_minus_x_squared.c',
'signal_processing/vector_scaling_operations.c',
'sparse_fir_filter.cc',
'sparse_fir_filter.h',
'vad/include/vad.h',
'vad/include/webrtc_vad.h',
'vad/vad.cc',
'vad/webrtc_vad.c',
'vad/vad_core.c',
'vad/vad_core.h',
'vad/vad_filterbank.c',
'vad/vad_filterbank.h',
'vad/vad_gmm.c',
'vad/vad_gmm.h',
'vad/vad_sp.c',
'vad/vad_sp.h',
'wav_header.cc',
'wav_header.h',
'wav_file.cc',
'wav_file.h',
'window_generator.cc',
'window_generator.h',
],
'conditions': [
['rtc_use_openmax_dl==1', {
'sources': [
'real_fourier_openmax.cc',
'real_fourier_openmax.h',
],
'defines': ['RTC_USE_OPENMAX_DL',],
'conditions': [
['build_openmax_dl==1', {
'dependencies': ['<(DEPTH)/third_party/openmax_dl/dl/dl.gyp:openmax_dl',],
}],
],
}],
['target_arch=="ia32" or target_arch=="x64"', {
'dependencies': ['common_audio_sse2',],
}],
['build_with_neon==1', {
'dependencies': ['common_audio_neon',],
}],
['target_arch=="arm"', {
'sources': [
'signal_processing/complex_bit_reverse_arm.S',
'signal_processing/spl_sqrt_floor_arm.S',
],
'sources!': [
'signal_processing/complex_bit_reverse.c',
'signal_processing/spl_sqrt_floor.c',
],
'conditions': [
['arm_version>=7', {
'sources': [
'signal_processing/filter_ar_fast_q12_armv7.S',
],
'sources!': [
'signal_processing/filter_ar_fast_q12.c',
],
}],
], # conditions
}],
['target_arch=="mipsel" and mips_arch_variant!="r6"', {
'sources': [
'signal_processing/include/spl_inl_mips.h',
'signal_processing/complex_bit_reverse_mips.c',
'signal_processing/complex_fft_mips.c',
'signal_processing/cross_correlation_mips.c',
'signal_processing/downsample_fast_mips.c',
'signal_processing/filter_ar_fast_q12_mips.c',
'signal_processing/min_max_operations_mips.c',
'signal_processing/resample_by_2_mips.c',
'signal_processing/spl_sqrt_floor_mips.c',
],
'sources!': [
'signal_processing/complex_bit_reverse.c',
'signal_processing/complex_fft.c',
'signal_processing/filter_ar_fast_q12.c',
'signal_processing/spl_sqrt_floor.c',
],
'conditions': [
['mips_dsp_rev>0', {
'sources': [
'signal_processing/vector_scaling_operations_mips.c',
],
}],
],
}],
], # conditions
# Ignore warning on shift operator promotion.
'msvs_disabled_warnings': [ 4334, ],
},
], # targets
'conditions': [
['target_arch=="ia32" or target_arch=="x64"', {
'targets': [
{
'target_name': 'common_audio_sse2',
'type': 'static_library',
'sources': [
'fir_filter_sse.cc',
'resampler/sinc_resampler_sse.cc',
],
'conditions': [
['os_posix==1', {
'cflags': [ '-msse2', ],
'xcode_settings': {
'OTHER_CFLAGS': [ '-msse2', ],
},
}],
],
},
], # targets
}],
['build_with_neon==1', {
'targets': [
{
'target_name': 'common_audio_neon',
'type': 'static_library',
'includes': ['../build/arm_neon.gypi',],
'sources': [
'fir_filter_neon.cc',
'resampler/sinc_resampler_neon.cc',
'signal_processing/cross_correlation_neon.c',
'signal_processing/downsample_fast_neon.c',
'signal_processing/min_max_operations_neon.c',
],
},
], # targets
}],
], # conditions
}

View File

@ -4,11 +4,7 @@ marpan@webrtc.org
pbos@webrtc.org pbos@webrtc.org
stefan@webrtc.org stefan@webrtc.org
per-file *.isolate=kjellander@webrtc.org
# These are for the common case of adding or renaming files. If you're doing # These are for the common case of adding or renaming files. If you're doing
# structural changes, please get a review from a reviewer in this file. # structural changes, please get a review from a reviewer in this file.
per-file *.gn=* per-file *.gn=*
per-file *.gni=* per-file *.gni=*
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,86 +0,0 @@
# Copyright (c) 2012 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.
{
'includes': ['../build/common.gypi'],
'targets': [
{
'target_name': 'common_video',
'type': 'static_library',
'include_dirs': [
'<(webrtc_root)/modules/interface/',
'include',
'libyuv/include',
],
'dependencies': [
'<(webrtc_root)/base/base.gyp:rtc_task_queue',
'<(webrtc_root)/common.gyp:webrtc_common',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
],
'direct_dependent_settings': {
'include_dirs': [
'include',
'libyuv/include',
],
},
'conditions': [
['build_libyuv==1', {
'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',],
'export_dependent_settings': [
'<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',
],
}, {
# Need to add a directory normally exported by libyuv.gyp.
'include_dirs': ['<(libyuv_dir)/include',],
}],
['OS=="ios" or OS=="mac"', {
'sources': [
'corevideo_frame_buffer.cc',
'include/corevideo_frame_buffer.h',
],
'link_settings': {
'xcode_settings': {
'OTHER_LDFLAGS': [
'-framework CoreVideo',
],
},
},
}],
],
'sources': [
'bitrate_adjuster.cc',
'h264/sps_vui_rewriter.cc',
'h264/sps_vui_rewriter.h',
'h264/h264_common.cc',
'h264/h264_common.h',
'h264/pps_parser.cc',
'h264/pps_parser.h',
'h264/profile_level_id.cc',
'h264/profile_level_id.h',
'h264/sps_parser.cc',
'h264/sps_parser.h',
'h264/h264_bitstream_parser.cc',
'h264/h264_bitstream_parser.h',
'i420_buffer_pool.cc',
'video_frame.cc',
'incoming_video_stream.cc',
'include/bitrate_adjuster.h',
'include/frame_callback.h',
'include/i420_buffer_pool.h',
'include/incoming_video_stream.h',
'include/video_bitrate_allocator.h',
'include/video_frame_buffer.h',
'libyuv/include/webrtc_libyuv.h',
'libyuv/webrtc_libyuv.cc',
'video_frame_buffer.cc',
'video_render_frames.cc',
'video_render_frames.h',
],
},
], # targets
}

View File

@ -7,5 +7,3 @@ tkchin@webrtc.org
# structural changes, please get a review from a reviewer in this file. # structural changes, please get a review from a reviewer in this file.
per-file *.gn=* per-file *.gn=*
per-file *.gni=* per-file *.gni=*
per-file *.gyp=*
per-file *.gypi=*

View File

@ -4,5 +4,3 @@
# structural changes, please get a review from a reviewer in this file. # structural changes, please get a review from a reviewer in this file.
per-file *.gn=* per-file *.gn=*
per-file *.gni=* per-file *.gni=*
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,46 +0,0 @@
# Copyright (c) 2014 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.
{
'includes': [ '../../build/common.gypi', ],
'targets': [
{
'target_name': 'rtc_xmllite',
'type': 'static_library',
'dependencies': [
'<(webrtc_root)/base/base.gyp:rtc_base',
],
'conditions': [
['build_expat==1', {
'dependencies': [
'<(DEPTH)/third_party/expat/expat.gyp:expat',
],
'export_dependent_settings': [
'<(DEPTH)/third_party/expat/expat.gyp:expat',
],
}],
],
'sources': [
'qname.cc',
'qname.h',
'xmlbuilder.cc',
'xmlbuilder.h',
'xmlconstants.cc',
'xmlconstants.h',
'xmlelement.cc',
'xmlelement.h',
'xmlnsstack.cc',
'xmlnsstack.h',
'xmlparser.cc',
'xmlparser.h',
'xmlprinter.cc',
'xmlprinter.h',
],
},
], # targets
}

View File

@ -4,5 +4,3 @@
# structural changes, please get a review from a reviewer in this file. # structural changes, please get a review from a reviewer in this file.
per-file *.gn=* per-file *.gn=*
per-file *.gni=* per-file *.gni=*
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,142 +0,0 @@
# Copyright (c) 2014 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.
{
'includes': [ '../../build/common.gypi', ],
'targets': [
{
'target_name': 'rtc_xmpp',
'type': 'static_library',
'dependencies': [
'<(webrtc_root)/base/base.gyp:rtc_base',
'<(webrtc_root)/libjingle/xmllite/xmllite.gyp:rtc_xmllite',
],
'defines': [
'FEATURE_ENABLE_SSL',
],
'sources': [
'asyncsocket.h',
'constants.cc',
'constants.h',
'jid.cc',
'jid.h',
'plainsaslhandler.h',
'prexmppauth.h',
'saslcookiemechanism.h',
'saslhandler.h',
'saslmechanism.cc',
'saslmechanism.h',
'saslplainmechanism.h',
'xmppclient.cc',
'xmppclient.h',
'xmppclientsettings.h',
'xmppengine.h',
'xmppengineimpl.cc',
'xmppengineimpl.h',
'xmppengineimpl_iq.cc',
'xmpplogintask.cc',
'xmpplogintask.h',
'xmppstanzaparser.cc',
'xmppstanzaparser.h',
'xmpptask.cc',
'xmpptask.h',
],
'direct_dependent_settings': {
'defines': [
'FEATURE_ENABLE_SSL',
'FEATURE_ENABLE_VOICEMAIL',
],
},
'conditions': [
['build_expat==1', {
'dependencies': [
'<(DEPTH)/third_party/expat/expat.gyp:expat',
],
'export_dependent_settings': [
'<(DEPTH)/third_party/expat/expat.gyp:expat',
],
}],
['build_with_chromium==0', {
'defines': [
'FEATURE_ENABLE_VOICEMAIL',
'FEATURE_ENABLE_PSTN',
],
'sources': [
'chatroommodule.h',
'chatroommoduleimpl.cc',
'discoitemsquerytask.cc',
'discoitemsquerytask.h',
'hangoutpubsubclient.cc',
'hangoutpubsubclient.h',
'iqtask.cc',
'iqtask.h',
'module.h',
'moduleimpl.cc',
'moduleimpl.h',
'mucroomconfigtask.cc',
'mucroomconfigtask.h',
'mucroomdiscoverytask.cc',
'mucroomdiscoverytask.h',
'mucroomlookuptask.cc',
'mucroomlookuptask.h',
'mucroomuniquehangoutidtask.cc',
'mucroomuniquehangoutidtask.h',
'pingtask.cc',
'pingtask.h',
'presenceouttask.cc',
'presenceouttask.h',
'presencereceivetask.cc',
'presencereceivetask.h',
'presencestatus.cc',
'presencestatus.h',
'pubsub_task.cc',
'pubsub_task.h',
'pubsubclient.cc',
'pubsubclient.h',
'pubsubstateclient.cc',
'pubsubstateclient.h',
'pubsubtasks.cc',
'pubsubtasks.h',
'receivetask.cc',
'receivetask.h',
'rostermodule.h',
'rostermoduleimpl.cc',
'rostermoduleimpl.h',
'xmppauth.cc',
'xmppauth.h',
'xmpppump.cc',
'xmpppump.h',
'xmppsocket.cc',
'xmppsocket.h',
'xmppthread.cc',
'xmppthread.h',
]
}],
['os_posix==1', {
'configurations': {
'Debug_Base': {
'defines': [
# Chromium's build/common.gypi defines this for all posix
# _except_ for ios & mac. We want it there as well, e.g.
# because ASSERT and friends trigger off of it.
'_DEBUG',
],
},
}
}],
['OS=="android"', {
'cflags!': [
'-Wextra',
'-Wall',
],
}],
],
},
], # targets
}

View File

@ -9,5 +9,3 @@ solenberg@webrtc.org
# structural changes, please get a review from a reviewer in this file. # structural changes, please get a review from a reviewer in this file.
per-file *.gn=* per-file *.gn=*
per-file *.gni=* per-file *.gni=*
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,152 +0,0 @@
# Copyright (c) 2016 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.
{
'includes': [ '../build/common.gypi', ],
'targets': [
{
'target_name': 'rtc_media',
'type': 'static_library',
'dependencies': [
'<(webrtc_root)/base/base.gyp:rtc_base_approved',
'<(webrtc_root)/common.gyp:webrtc_common',
'<(webrtc_root)/webrtc.gyp:webrtc',
'<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/p2p/p2p.gyp:rtc_p2p',
],
'direct_dependent_settings': {
'include_dirs': [
'<(libyuv_dir)/include',
],
},
'sources': [
'base/adaptedvideotracksource.cc',
'base/adaptedvideotracksource.h',
'base/audiosource.h',
'base/codec.cc',
'base/codec.h',
'base/cryptoparams.h',
'base/device.h',
'base/hybriddataengine.h',
'base/mediachannel.h',
'base/mediaconstants.cc',
'base/mediaconstants.h',
'base/mediaengine.cc',
'base/mediaengine.h',
'base/rtpdataengine.cc',
'base/rtpdataengine.h',
'base/rtpdump.cc',
'base/rtpdump.h',
'base/rtputils.cc',
'base/rtputils.h',
'base/streamparams.cc',
'base/streamparams.h',
'base/turnutils.cc',
'base/turnutils.h',
'base/videoadapter.cc',
'base/videoadapter.h',
'base/videobroadcaster.cc',
'base/videobroadcaster.h',
'base/videocapturer.cc',
'base/videocapturer.h',
'base/videocapturerfactory.h',
'base/videocommon.cc',
'base/videocommon.h',
'base/videoframe.h',
'base/videosourcebase.cc',
'base/videosourcebase.h',
'engine/nullwebrtcvideoengine.h',
'engine/payload_type_mapper.cc',
'engine/payload_type_mapper.h',
'engine/simulcast.cc',
'engine/simulcast.h',
'engine/webrtccommon.h',
'engine/webrtcmediaengine.cc',
'engine/webrtcmediaengine.h',
'engine/webrtcmediaengine.cc',
'engine/webrtcvideocapturer.cc',
'engine/webrtcvideocapturer.h',
'engine/webrtcvideocapturerfactory.h',
'engine/webrtcvideocapturerfactory.cc',
'engine/webrtcvideodecoderfactory.h',
'engine/webrtcvideoencoderfactory.cc',
'engine/webrtcvideoencoderfactory.h',
'engine/webrtcvideoengine2.cc',
'engine/webrtcvideoengine2.h',
'engine/webrtcvideoframe.h',
'engine/webrtcvoe.h',
'engine/webrtcvoiceengine.cc',
'engine/webrtcvoiceengine.h',
'sctp/sctpdataengine.cc',
'sctp/sctpdataengine.h',
],
# TODO(kjellander): Make the code compile without disabling these flags.
# See https://bugs.chromium.org/p/webrtc/issues/detail?id=3307
'cflags': [
'-Wno-deprecated-declarations',
],
'cflags!': [
'-Wextra',
],
'msvs_disabled_warnings': [
4245, # conversion from 'int' to 'size_t', signed/unsigned mismatch.
4267, # conversion from 'size_t' to 'int', possible loss of data.
4389, # signed/unsigned mismatch.
],
'conditions': [
['build_libyuv==1', {
'dependencies': ['<(DEPTH)/third_party/libyuv/libyuv.gyp:libyuv',],
}],
['build_usrsctp==1', {
'include_dirs': [
# TODO(jiayl): move this into the direct_dependent_settings of
# usrsctp.gyp.
'<(DEPTH)/third_party/usrsctp/usrsctplib',
],
'dependencies': [
'<(DEPTH)/third_party/usrsctp/usrsctp.gyp:usrsctplib',
],
}],
['enable_intelligibility_enhancer==1', {
'defines': ['WEBRTC_INTELLIGIBILITY_ENHANCER=1',],
}, {
'defines': ['WEBRTC_INTELLIGIBILITY_ENHANCER=0',],
}],
['build_with_chromium==1', {
'dependencies': [
'<(webrtc_root)/modules/modules.gyp:video_capture',
],
}, {
'defines': [
'HAVE_WEBRTC_VIDEO',
'HAVE_WEBRTC_VOICE',
],
'direct_dependent_settings': {
'defines': [
'HAVE_WEBRTC_VIDEO',
'HAVE_WEBRTC_VOICE',
],
},
'dependencies': [
'<(webrtc_root)/modules/modules.gyp:video_capture_module_internal_impl',
],
}],
['OS=="linux" and use_gtk==1', {
'sources': [
'devices/gtkvideorenderer.cc',
'devices/gtkvideorenderer.h',
],
'cflags': [
'<!@(pkg-config --cflags gobject-2.0 gthread-2.0 gtk+-2.0)',
],
}],
],
}, # target rtc_media
], # targets.
}

View File

@ -1,8 +1,4 @@
per-file *.isolate=kjellander@webrtc.org
# These are for the common case of adding or renaming files. If you're doing # These are for the common case of adding or renaming files. If you're doing
# structural changes, please get a review from a reviewer in this file. # structural changes, please get a review from a reviewer in this file.
per-file *.gn=* per-file *.gn=*
per-file *.gni=* per-file *.gni=*
per-file *.gyp=*
per-file *.gypi=*

View File

@ -9,5 +9,3 @@ jan.skoglund@webrtc.org
# structural changes, please get a review from a reviewer in this file. # structural changes, please get a review from a reviewer in this file.
per-file *.gn=* per-file *.gn=*
per-file *.gni=* per-file *.gni=*
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,195 +0,0 @@
# Copyright (c) 2015 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.
{
'includes': [
'../../build/common.gypi',
'audio_network_adaptor/audio_network_adaptor.gypi',
'codecs/interfaces.gypi',
'codecs/cng/cng.gypi',
'codecs/g711/g711.gypi',
'codecs/g722/g722.gypi',
'codecs/ilbc/ilbc.gypi',
'codecs/isac/isac.gypi',
'codecs/isac/isac_common.gypi',
'codecs/isac/isacfix.gypi',
'codecs/pcm16b/pcm16b.gypi',
'codecs/red/red.gypi',
'neteq/neteq.gypi',
],
'variables': {
'variables': {
'audio_codec_dependencies': [
'cng',
'g711',
'pcm16b',
],
'audio_codec_defines': [],
'conditions': [
['include_ilbc==1', {
'audio_codec_dependencies': ['ilbc',],
'audio_codec_defines': ['WEBRTC_CODEC_ILBC',],
}],
['include_opus==1', {
'audio_codec_dependencies': ['webrtc_opus',],
'audio_codec_defines': ['WEBRTC_CODEC_OPUS',],
}],
['build_with_mozilla==0', {
'conditions': [
['target_arch=="arm"', {
'audio_codec_dependencies': ['isac_fix',],
'audio_codec_defines': ['WEBRTC_CODEC_ISACFX',],
}, {
'audio_codec_dependencies': ['isac',],
'audio_codec_defines': ['WEBRTC_CODEC_ISAC',],
}],
],
'audio_codec_dependencies': ['g722',],
'audio_codec_defines': ['WEBRTC_CODEC_G722',],
}],
['build_with_mozilla==0 and build_with_chromium==0', {
'audio_codec_dependencies': ['red',],
'audio_codec_defines': ['WEBRTC_CODEC_RED',],
}],
],
},
'audio_codec_dependencies': '<(audio_codec_dependencies)',
'audio_codec_defines': '<(audio_codec_defines)',
'audio_coding_dependencies': [
'<@(audio_codec_dependencies)',
'<(webrtc_root)/common.gyp:webrtc_common',
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
],
'audio_coding_defines': '<(audio_codec_defines)',
},
'targets': [
{
'target_name': 'audio_decoder_factory_interface',
'type': 'static_library',
'dependencies': [
'<(webrtc_root)/common.gyp:webrtc_common',
],
'include_dirs': [
'<(webrtc_root)',
],
'direct_dependent_settings': {
'include_dirs': [
'<(webrtc_root)',
],
},
'sources': [
'codecs/audio_decoder_factory.h',
'codecs/audio_format.cc',
'codecs/audio_format.h',
'codecs/audio_format_conversion.cc',
'codecs/audio_format_conversion.h',
],
},
{
'target_name': 'builtin_audio_decoder_factory',
'type': 'static_library',
'defines': [
'<@(audio_codec_defines)',
],
'dependencies': [
'<(webrtc_root)/common.gyp:webrtc_common',
'<@(audio_codec_dependencies)',
'audio_decoder_factory_interface',
],
'include_dirs': [
'<(webrtc_root)',
],
'direct_dependent_settings': {
'include_dirs': [
'<(webrtc_root)',
],
},
'sources': [
'codecs/builtin_audio_decoder_factory.cc',
'codecs/builtin_audio_decoder_factory.h',
],
},
{
'target_name': 'rent_a_codec',
'type': 'static_library',
'defines': [
'<@(audio_codec_defines)',
],
'dependencies': [
'<(webrtc_root)/common.gyp:webrtc_common',
'<@(audio_codec_dependencies)',
],
'include_dirs': [
'<(webrtc_root)',
],
'direct_dependent_settings': {
'include_dirs': [
'<(webrtc_root)',
],
},
'sources': [
'acm2/acm_codec_database.cc',
'acm2/acm_codec_database.h',
'acm2/rent_a_codec.cc',
'acm2/rent_a_codec.h',
],
},
{
'target_name': 'audio_coding_module',
'type': 'static_library',
'defines': [
'<@(audio_coding_defines)',
],
'dependencies': [
'<@(audio_coding_dependencies)',
'<(webrtc_root)/common.gyp:webrtc_common',
'<(webrtc_root)/webrtc.gyp:rtc_event_log_api',
'audio_network_adaptor',
'neteq',
'rent_a_codec',
],
'include_dirs': [
'include',
'../include',
'<(webrtc_root)',
],
'direct_dependent_settings': {
'include_dirs': [
'include',
'../include',
'<(webrtc_root)',
],
},
'conditions': [
['include_opus==1', {
'export_dependent_settings': ['webrtc_opus'],
}],
],
'sources': [
'acm2/acm_common_defs.h',
'acm2/acm_receiver.cc',
'acm2/acm_receiver.h',
'acm2/acm_resampler.cc',
'acm2/acm_resampler.h',
'acm2/audio_coding_module.cc',
'acm2/call_statistics.cc',
'acm2/call_statistics.h',
'acm2/codec_manager.cc',
'acm2/codec_manager.h',
'include/audio_coding_module.h',
'include/audio_coding_module_typedefs.h',
],
},
],
'conditions': [
['include_opus==1', {
'includes': ['codecs/opus/opus.gypi',],
}],
],
}

View File

@ -1,42 +0,0 @@
# Copyright (c) 2015 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.
{
'includes': [
'../../build/common.gypi',
'codecs/isac/isac_test.gypi',
'codecs/isac/isacfix_test.gypi',
],
'targets': [
{
'target_name': 'audio_codec_speed_tests',
'type': '<(gtest_target_type)',
'dependencies': [
'audio_processing',
'isac_fix',
'webrtc_opus',
'<(DEPTH)/testing/gtest.gyp:gtest',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/test/test.gyp:test_support_main',
],
'sources': [
'codecs/isac/fix/test/isac_speed_test.cc',
'codecs/opus/opus_speed_test.cc',
'codecs/tools/audio_codec_speed_test.h',
'codecs/tools/audio_codec_speed_test.cc',
],
'conditions': [
['OS=="android"', {
'dependencies': [
'<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
],
}],
],
},
],
}

View File

@ -1,83 +0,0 @@
# Copyright (c) 2016 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.
{
'targets': [
{ 'target_name': 'audio_network_adaptor',
'type': 'static_library',
'sources': [
'audio_network_adaptor.cc',
'audio_network_adaptor_impl.cc',
'audio_network_adaptor_impl.h',
'bitrate_controller.h',
'bitrate_controller.cc',
'channel_controller.cc',
'channel_controller.h',
'controller.h',
'controller.cc',
'controller_manager.cc',
'controller_manager.h',
'debug_dump_writer.cc',
'debug_dump_writer.h',
'dtx_controller.h',
'dtx_controller.cc',
'fec_controller.h',
'fec_controller.cc',
'frame_length_controller.cc',
'frame_length_controller.h',
'include/audio_network_adaptor.h',
'smoothing_filter.h',
'smoothing_filter.cc',
], # sources
'dependencies': [
'<(webrtc_root)/common.gyp:webrtc_common',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
],
'conditions': [
['enable_protobuf==1', {
'dependencies': [
'ana_config_proto',
'ana_debug_dump_proto',
],
'defines': ['WEBRTC_AUDIO_NETWORK_ADAPTOR_DEBUG_DUMP'],
}],
], # conditions
},
], # targets
'conditions': [
['enable_protobuf==1', {
'targets': [
{ 'target_name': 'ana_debug_dump_proto',
'type': 'static_library',
'sources': ['debug_dump.proto',],
'variables': {
'proto_in_dir': '.',
# Workaround to protect against gyp's pathname relativization when
# this file is included by modules.gyp.
'proto_out_protected': 'webrtc/modules/audio_coding/audio_network_adaptor',
'proto_out_dir': '<(proto_out_protected)',
},
'includes': ['../../../build/protoc.gypi',],
},
{ 'target_name': 'ana_config_proto',
'type': 'static_library',
'sources': ['config.proto',],
'variables': {
'proto_in_dir': '.',
# Workaround to protect against gyp's pathname relativization when
# this file is included by modules.gyp.
'proto_out_protected': 'webrtc/modules/audio_coding/audio_network_adaptor',
'proto_out_dir': '<(proto_out_protected)',
},
'includes': ['../../../build/protoc.gypi',],
},
], # targets
}],
], # conditions
}

View File

@ -1,4 +0,0 @@
# These are for the common case of adding or renaming files. If you're doing
# structural changes, please get a review from a reviewer in this file.
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,5 +0,0 @@
# These are for the common case of adding or renaming files. If you're doing
# structural changes, please get a review from a reviewer in this file.
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,26 +0,0 @@
# Copyright (c) 2011 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.
{
'targets': [
{
'target_name': 'cng',
'type': 'static_library',
'dependencies': [
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
'audio_encoder_interface',
],
'sources': [
'audio_encoder_cng.cc',
'audio_encoder_cng.h',
'webrtc_cng.cc',
'webrtc_cng.h',
],
},
], # targets
}

View File

@ -1,5 +0,0 @@
# These are for the common case of adding or renaming files. If you're doing
# structural changes, please get a review from a reviewer in this file.
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,30 +0,0 @@
# Copyright (c) 2011 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.
{
'targets': [
{
'target_name': 'g711',
'type': 'static_library',
'dependencies': [
'audio_encoder_interface',
'audio_decoder_interface',
],
'sources': [
'audio_decoder_pcm.cc',
'audio_decoder_pcm.h',
'audio_encoder_pcm.cc',
'audio_encoder_pcm.h',
'g711_interface.c',
'g711_interface.h',
'g711.c',
'g711.h',
],
},
], # targets
}

View File

@ -1,5 +0,0 @@
# These are for the common case of adding or renaming files. If you're doing
# structural changes, please get a review from a reviewer in this file.
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,30 +0,0 @@
# Copyright (c) 2011 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.
{
'targets': [
{
'target_name': 'g722',
'type': 'static_library',
'dependencies': [
'audio_encoder_interface',
'audio_decoder_interface',
],
'sources': [
'audio_decoder_g722.cc',
'audio_decoder_g722.h',
'audio_encoder_g722.cc',
'audio_encoder_g722.h',
'g722_interface.c',
'g722_interface.h',
'g722_decode.c',
'g722_enc_dec.h',
'g722_encode.c',
],
},
], # targets
}

View File

@ -1,5 +0,0 @@
# These are for the common case of adding or renaming files. If you're doing
# structural changes, please get a review from a reviewer in this file.
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,166 +0,0 @@
# Copyright (c) 2011 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.
{
'targets': [
{
'target_name': 'ilbc',
'type': 'static_library',
'dependencies': [
'<(webrtc_root)/base/base.gyp:rtc_base_approved',
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
'audio_encoder_interface',
],
'sources': [
'abs_quant.c',
'abs_quant_loop.c',
'audio_decoder_ilbc.cc',
'audio_decoder_ilbc.h',
'audio_encoder_ilbc.cc',
'audio_encoder_ilbc.h',
'augmented_cb_corr.c',
'bw_expand.c',
'cb_construct.c',
'cb_mem_energy.c',
'cb_mem_energy_augmentation.c',
'cb_mem_energy_calc.c',
'cb_search.c',
'cb_search_core.c',
'cb_update_best_index.c',
'chebyshev.c',
'comp_corr.c',
'constants.c',
'create_augmented_vec.c',
'decode.c',
'decode_residual.c',
'decoder_interpolate_lsf.c',
'do_plc.c',
'encode.c',
'energy_inverse.c',
'enh_upsample.c',
'enhancer.c',
'enhancer_interface.c',
'filtered_cb_vecs.c',
'frame_classify.c',
'gain_dequant.c',
'gain_quant.c',
'get_cd_vec.c',
'get_lsp_poly.c',
'get_sync_seq.c',
'hp_input.c',
'hp_output.c',
'ilbc.c',
'ilbc.h',
'index_conv_dec.c',
'index_conv_enc.c',
'init_decode.c',
'init_encode.c',
'interpolate.c',
'interpolate_samples.c',
'lpc_encode.c',
'lsf_check.c',
'lsf_interpolate_to_poly_dec.c',
'lsf_interpolate_to_poly_enc.c',
'lsf_to_lsp.c',
'lsf_to_poly.c',
'lsp_to_lsf.c',
'my_corr.c',
'nearest_neighbor.c',
'pack_bits.c',
'poly_to_lsf.c',
'poly_to_lsp.c',
'refiner.c',
'simple_interpolate_lsf.c',
'simple_lpc_analysis.c',
'simple_lsf_dequant.c',
'simple_lsf_quant.c',
'smooth.c',
'smooth_out_data.c',
'sort_sq.c',
'split_vq.c',
'state_construct.c',
'state_search.c',
'swap_bytes.c',
'unpack_bits.c',
'vq3.c',
'vq4.c',
'window32_w32.c',
'xcorr_coef.c',
'abs_quant.h',
'abs_quant_loop.h',
'augmented_cb_corr.h',
'bw_expand.h',
'cb_construct.h',
'cb_mem_energy.h',
'cb_mem_energy_augmentation.h',
'cb_mem_energy_calc.h',
'cb_search.h',
'cb_search_core.h',
'cb_update_best_index.h',
'chebyshev.h',
'comp_corr.h',
'constants.h',
'create_augmented_vec.h',
'decode.h',
'decode_residual.h',
'decoder_interpolate_lsf.h',
'do_plc.h',
'encode.h',
'energy_inverse.h',
'enh_upsample.h',
'enhancer.h',
'enhancer_interface.h',
'filtered_cb_vecs.h',
'frame_classify.h',
'gain_dequant.h',
'gain_quant.h',
'get_cd_vec.h',
'get_lsp_poly.h',
'get_sync_seq.h',
'hp_input.h',
'hp_output.h',
'defines.h',
'index_conv_dec.h',
'index_conv_enc.h',
'init_decode.h',
'init_encode.h',
'interpolate.h',
'interpolate_samples.h',
'lpc_encode.h',
'lsf_check.h',
'lsf_interpolate_to_poly_dec.h',
'lsf_interpolate_to_poly_enc.h',
'lsf_to_lsp.h',
'lsf_to_poly.h',
'lsp_to_lsf.h',
'my_corr.h',
'nearest_neighbor.h',
'pack_bits.h',
'poly_to_lsf.h',
'poly_to_lsp.h',
'refiner.h',
'simple_interpolate_lsf.h',
'simple_lpc_analysis.h',
'simple_lsf_dequant.h',
'simple_lsf_quant.h',
'smooth.h',
'smooth_out_data.h',
'sort_sq.h',
'split_vq.h',
'state_construct.h',
'state_search.h',
'swap_bytes.h',
'unpack_bits.h',
'vq3.h',
'vq4.h',
'window32_w32.h',
'xcorr_coef.h',
], # sources
}, # ilbc
], # targets
}

View File

@ -1,39 +0,0 @@
# Copyright (c) 2014 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.
{
'targets': [
{
'target_name': 'audio_decoder_interface',
'type': 'static_library',
'sources': [
'audio_decoder.cc',
'audio_decoder.h',
'legacy_encoded_audio_frame.cc',
'legacy_encoded_audio_frame.h',
],
'dependencies': [
'<(webrtc_root)/base/base.gyp:rtc_base_approved',
'<(webrtc_root)/common.gyp:webrtc_common',
],
},
{
'target_name': 'audio_encoder_interface',
'type': 'static_library',
'sources': [
'audio_encoder.cc',
'audio_encoder.h',
],
'dependencies': [
'<(webrtc_root)/base/base.gyp:rtc_base_approved',
'<(webrtc_root)/common.gyp:webrtc_common',
],
},
],
}

View File

@ -1,5 +0,0 @@
# These are for the common case of adding or renaming files. If you're doing
# structural changes, please get a review from a reviewer in this file.
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,5 +0,0 @@
# These are for the common case of adding or renaming files. If you're doing
# structural changes, please get a review from a reviewer in this file.
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,95 +0,0 @@
# Copyright (c) 2011 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.
{
'targets': [
{
'target_name': 'isac',
'type': 'static_library',
'dependencies': [
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
'audio_decoder_interface',
'audio_encoder_interface',
'isac_common',
],
'include_dirs': [
'main/include',
'<(webrtc_root)',
],
'direct_dependent_settings': {
'include_dirs': [
'main/include',
'<(webrtc_root)',
],
},
'sources': [
'main/include/audio_decoder_isac.h',
'main/include/audio_encoder_isac.h',
'main/include/isac.h',
'main/source/arith_routines.c',
'main/source/arith_routines_hist.c',
'main/source/arith_routines_logist.c',
'main/source/audio_decoder_isac.cc',
'main/source/audio_encoder_isac.cc',
'main/source/bandwidth_estimator.c',
'main/source/crc.c',
'main/source/decode.c',
'main/source/decode_bwe.c',
'main/source/encode.c',
'main/source/encode_lpc_swb.c',
'main/source/entropy_coding.c',
'main/source/fft.c',
'main/source/filter_functions.c',
'main/source/filterbank_tables.c',
'main/source/intialize.c',
'main/source/isac.c',
'main/source/isac_float_type.h',
'main/source/filterbanks.c',
'main/source/pitch_lag_tables.c',
'main/source/lattice.c',
'main/source/lpc_gain_swb_tables.c',
'main/source/lpc_analysis.c',
'main/source/lpc_shape_swb12_tables.c',
'main/source/lpc_shape_swb16_tables.c',
'main/source/lpc_tables.c',
'main/source/pitch_estimator.c',
'main/source/pitch_filter.c',
'main/source/pitch_gain_tables.c',
'main/source/spectrum_ar_model_tables.c',
'main/source/transform.c',
'main/source/arith_routines.h',
'main/source/bandwidth_estimator.h',
'main/source/codec.h',
'main/source/crc.h',
'main/source/encode_lpc_swb.h',
'main/source/entropy_coding.h',
'main/source/fft.h',
'main/source/filterbank_tables.h',
'main/source/lpc_gain_swb_tables.h',
'main/source/lpc_analysis.h',
'main/source/lpc_shape_swb12_tables.h',
'main/source/lpc_shape_swb16_tables.h',
'main/source/lpc_tables.h',
'main/source/pitch_estimator.h',
'main/source/pitch_gain_tables.h',
'main/source/pitch_lag_tables.h',
'main/source/settings.h',
'main/source/spectrum_ar_model_tables.h',
'main/source/structs.h',
'main/source/os_specific_inline.h',
],
'conditions': [
['OS=="linux"', {
'link_settings': {
'libraries': ['-lm',],
},
}],
],
},
],
}

View File

@ -1,22 +0,0 @@
# Copyright (c) 2015 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.
{
'targets': [
{
'target_name': 'isac_common',
'type': 'static_library',
'sources': [
'audio_encoder_isac_t.h',
'audio_encoder_isac_t_impl.h',
'locked_bandwidth_info.cc',
'locked_bandwidth_info.h',
],
},
],
}

View File

@ -1,83 +0,0 @@
# Copyright (c) 2011 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.
{
'targets': [
# simple kenny
{
'target_name': 'isac_test',
'type': 'executable',
'dependencies': [
'isac',
'<(webrtc_root)/base/base.gyp:rtc_base_approved',
],
'include_dirs': [
'./main/include',
'./main/test',
'./main/util',
'<(webrtc_root)',
],
'sources': [
'empty.cc', # force build system to use C++ linker
'./main/test/simpleKenny.c',
'./main/util/utility.c',
],
'conditions': [
['OS=="win" and clang==1', {
'msvs_settings': {
'VCCLCompilerTool': {
'AdditionalOptions': [
# Disable warnings failing when compiling with Clang on Windows.
# https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
'-Wno-format',
],
},
},
}],
], # conditions.
},
# ReleaseTest-API
{
'target_name': 'isac_api_test',
'type': 'executable',
'dependencies': [
'isac',
'<(webrtc_root)/base/base.gyp:rtc_base_approved',
],
'include_dirs': [
'./main/test',
'./main/include',
'./main/util',
'<(webrtc_root)',
],
'sources': [
'./main/test/ReleaseTest-API/ReleaseTest-API.cc',
'./main/util/utility.c',
],
},
# SwitchingSampRate
{
'target_name': 'isac_switch_samprate_test',
'type': 'executable',
'dependencies': [
'isac',
],
'include_dirs': [
'./main/test',
'./main/include',
'../../../../common_audio/signal_processing/include',
'./main/util',
'<(webrtc_root)',
],
'sources': [
'./main/test/SwitchingSampRate/SwitchingSampRate.cc',
'./main/util/utility.c',
],
},
],
}

View File

@ -1,146 +0,0 @@
# Copyright (c) 2012 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.
{
'targets': [
{
'target_name': 'isac_fix',
'type': 'static_library',
'dependencies': [
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'isac_common',
],
'include_dirs': [
'fix/include',
'<(webrtc_root)'
],
'direct_dependent_settings': {
'include_dirs': [
'fix/include',
'<(webrtc_root)',
],
},
'sources': [
'fix/include/audio_decoder_isacfix.h',
'fix/include/audio_encoder_isacfix.h',
'fix/include/isacfix.h',
'fix/source/arith_routines.c',
'fix/source/arith_routines_hist.c',
'fix/source/arith_routines_logist.c',
'fix/source/audio_decoder_isacfix.cc',
'fix/source/audio_encoder_isacfix.cc',
'fix/source/bandwidth_estimator.c',
'fix/source/decode.c',
'fix/source/decode_bwe.c',
'fix/source/decode_plc.c',
'fix/source/encode.c',
'fix/source/entropy_coding.c',
'fix/source/fft.c',
'fix/source/filterbank_tables.c',
'fix/source/filterbanks.c',
'fix/source/filters.c',
'fix/source/initialize.c',
'fix/source/isac_fix_type.h',
'fix/source/isacfix.c',
'fix/source/lattice.c',
'fix/source/lattice_c.c',
'fix/source/lpc_masking_model.c',
'fix/source/lpc_tables.c',
'fix/source/pitch_estimator.c',
'fix/source/pitch_estimator_c.c',
'fix/source/pitch_filter.c',
'fix/source/pitch_filter_c.c',
'fix/source/pitch_gain_tables.c',
'fix/source/pitch_lag_tables.c',
'fix/source/spectrum_ar_model_tables.c',
'fix/source/transform.c',
'fix/source/transform_tables.c',
'fix/source/arith_routins.h',
'fix/source/bandwidth_estimator.h',
'fix/source/codec.h',
'fix/source/entropy_coding.h',
'fix/source/fft.h',
'fix/source/filterbank_tables.h',
'fix/source/lpc_masking_model.h',
'fix/source/lpc_tables.h',
'fix/source/pitch_estimator.h',
'fix/source/pitch_gain_tables.h',
'fix/source/pitch_lag_tables.h',
'fix/source/settings.h',
'fix/source/spectrum_ar_model_tables.h',
'fix/source/structs.h',
],
'conditions': [
['target_arch=="arm" and arm_version>=7', {
'sources': [
'fix/source/lattice_armv7.S',
'fix/source/pitch_filter_armv6.S',
],
'sources!': [
'fix/source/lattice_c.c',
'fix/source/pitch_filter_c.c',
],
}],
['build_with_neon==1', {
'dependencies': ['isac_neon', ],
}],
['target_arch=="mipsel" and mips_arch_variant!="r6"', {
'sources': [
'fix/source/entropy_coding_mips.c',
'fix/source/filters_mips.c',
'fix/source/lattice_mips.c',
'fix/source/pitch_estimator_mips.c',
'fix/source/transform_mips.c',
],
'sources!': [
'fix/source/lattice_c.c',
'fix/source/pitch_estimator_c.c',
],
'conditions': [
['mips_dsp_rev>0', {
'sources': [
'fix/source/filterbanks_mips.c',
],
}],
['mips_dsp_rev>1', {
'sources': [
'fix/source/lpc_masking_model_mips.c',
'fix/source/pitch_filter_mips.c',
],
'sources!': [
'fix/source/pitch_filter_c.c',
],
}],
],
}],
],
},
],
'conditions': [
['build_with_neon==1', {
'targets': [
{
'target_name': 'isac_neon',
'type': 'static_library',
'includes': ['../../../../build/arm_neon.gypi',],
'dependencies': [
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
],
'sources': [
'fix/source/entropy_coding_neon.c',
'fix/source/filterbanks_neon.c',
'fix/source/filters_neon.c',
'fix/source/lattice_neon.c',
'fix/source/transform_neon.c',
],
},
],
}],
],
}

View File

@ -1,35 +0,0 @@
# Copyright (c) 2012 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.
{
'targets': [
# kenny
{
'target_name': 'isac_fix_test',
'type': 'executable',
'dependencies': [
'isac_fix',
'<(webrtc_root)/test/test.gyp:test_support',
],
'include_dirs': [
'./fix/test',
'./fix/include',
'<(webrtc_root)',
],
'sources': [
'./fix/test/kenny.cc',
],
# Disable warnings to enable Win64 build, issue 1323.
'msvs_disabled_warnings': [
4267, # size_t to int truncation.
],
},
],
}
# TODO(kma): Add bit-exact test for iSAC-fix.

View File

@ -1,5 +0,0 @@
# These are for the common case of adding or renaming files. If you're doing
# structural changes, please get a review from a reviewer in this file.
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,5 +0,0 @@
# These are for the common case of adding or renaming files. If you're doing
# structural changes, please get a review from a reviewer in this file.
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,54 +0,0 @@
# Copyright (c) 2012 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.
{
'targets': [
{
'target_name': 'webrtc_opus',
'type': 'static_library',
'conditions': [
['build_opus==1', {
'dependencies': [
'<(opus_dir)/opus.gyp:opus'
],
'export_dependent_settings': [
'<(opus_dir)/opus.gyp:opus',
],
'direct_dependent_settings': {
'include_dirs': [ # need by Neteq audio classifier.
'<(opus_dir)/src/src',
'<(opus_dir)/src/celt',
],
},
}, {
'conditions': [
['build_with_mozilla==1', {
# Mozilla provides its own build of the opus library.
'include_dirs': [
'$(DIST)/include/opus',
]
}],
],
}],
],
'dependencies': [
'audio_encoder_interface',
'audio_network_adaptor',
],
'sources': [
'audio_decoder_opus.cc',
'audio_decoder_opus.h',
'audio_encoder_opus.cc',
'audio_encoder_opus.h',
'opus_inst.h',
'opus_interface.c',
'opus_interface.h',
],
},
],
}

View File

@ -1,5 +0,0 @@
# These are for the common case of adding or renaming files. If you're doing
# structural changes, please get a review from a reviewer in this file.
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,29 +0,0 @@
# Copyright (c) 2011 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.
{
'targets': [
{
'target_name': 'pcm16b',
'type': 'static_library',
'dependencies': [
'audio_encoder_interface',
'audio_decoder_interface',
'g711',
],
'sources': [
'audio_decoder_pcm16b.cc',
'audio_decoder_pcm16b.h',
'audio_encoder_pcm16b.cc',
'audio_encoder_pcm16b.h',
'pcm16b.c',
'pcm16b.h',
],
},
], # targets
}

View File

@ -1,33 +0,0 @@
# Copyright (c) 2014 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.
{
'targets': [
{
'target_name': 'red',
'type': 'static_library',
'dependencies': [
'audio_encoder_interface',
],
'include_dirs': [
'include',
'<(webrtc_root)',
],
'direct_dependent_settings': {
'include_dirs': [
'include',
'<(webrtc_root)',
],
},
'sources': [
'audio_encoder_copy_red.h',
'audio_encoder_copy_red.cc',
],
},
], # targets
}

View File

@ -1,6 +0,0 @@
per-file *.isolate=kjellander@webrtc.org
# These are for the common case of adding or renaming files. If you're doing
# structural changes, please get a review from a reviewer in this file.
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,6 +0,0 @@
per-file *.isolate=kjellander@webrtc.org
# These are for the common case of adding or renaming files. If you're doing
# structural changes, please get a review from a reviewer in this file.
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,137 +0,0 @@
# Copyright (c) 2012 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': {
'codecs': [
'cng',
'g711',
'pcm16b',
],
'neteq_defines': [],
'conditions': [
['include_ilbc==1', {
'codecs': ['ilbc',],
'neteq_defines': ['WEBRTC_CODEC_ILBC',],
}],
['include_opus==1', {
'codecs': ['webrtc_opus',],
'neteq_defines': ['WEBRTC_CODEC_OPUS',],
}],
['build_with_mozilla==0', {
'conditions': [
['target_arch=="arm"', {
'codecs': ['isac_fix',],
'neteq_defines': ['WEBRTC_CODEC_ISACFX',],
}, {
'codecs': ['isac',],
'neteq_defines': ['WEBRTC_CODEC_ISAC',],
}],
],
'codecs': ['g722',],
'neteq_defines': ['WEBRTC_CODEC_G722',],
}],
],
'neteq_dependencies': [
'<@(codecs)',
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'audio_decoder_interface',
],
},
'targets': [
{
'target_name': 'neteq',
'type': 'static_library',
'dependencies': [
'<@(neteq_dependencies)',
'<(webrtc_root)/common.gyp:webrtc_common',
'builtin_audio_decoder_factory',
'rent_a_codec',
],
'defines': [
'<@(neteq_defines)',
],
'sources': [
'include/neteq.h',
'accelerate.cc',
'accelerate.h',
'audio_classifier.cc',
'audio_classifier.h',
'audio_decoder_impl.cc',
'audio_decoder_impl.h',
'audio_multi_vector.cc',
'audio_multi_vector.h',
'audio_vector.cc',
'audio_vector.h',
'background_noise.cc',
'background_noise.h',
'buffer_level_filter.cc',
'buffer_level_filter.h',
'comfort_noise.cc',
'comfort_noise.h',
'cross_correlation.cc',
'cross_correlation.h',
'decision_logic.cc',
'decision_logic.h',
'decision_logic_fax.cc',
'decision_logic_fax.h',
'decision_logic_normal.cc',
'decision_logic_normal.h',
'decoder_database.cc',
'decoder_database.h',
'defines.h',
'delay_manager.cc',
'delay_manager.h',
'delay_peak_detector.cc',
'delay_peak_detector.h',
'dsp_helper.cc',
'dsp_helper.h',
'dtmf_buffer.cc',
'dtmf_buffer.h',
'dtmf_tone_generator.cc',
'dtmf_tone_generator.h',
'expand.cc',
'expand.h',
'merge.cc',
'merge.h',
'nack_tracker.h',
'nack_tracker.cc',
'neteq_impl.cc',
'neteq_impl.h',
'neteq.cc',
'statistics_calculator.cc',
'statistics_calculator.h',
'normal.cc',
'normal.h',
'packet.cc',
'packet.h',
'packet_buffer.cc',
'packet_buffer.h',
'red_payload_splitter.cc',
'red_payload_splitter.h',
'post_decode_vad.cc',
'post_decode_vad.h',
'preemptive_expand.cc',
'preemptive_expand.h',
'random_vector.cc',
'random_vector.h',
'rtcp.cc',
'rtcp.h',
'sync_buffer.cc',
'sync_buffer.h',
'tick_timer.cc',
'tick_timer.h',
'timestamp_scaler.cc',
'timestamp_scaler.h',
'time_stretch.cc',
'time_stretch.h',
],
},
], # targets
}

View File

@ -1,312 +0,0 @@
# Copyright (c) 2012 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.
{
'conditions': [
['enable_protobuf==1', {
'targets': [
{
'target_name': 'neteq_rtpplay',
'type': 'executable',
'dependencies': [
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
'<(webrtc_root)/test/test.gyp:test_support',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:metrics_default',
'neteq',
'neteq_unittest_tools',
],
'sources': [
'tools/neteq_rtpplay.cc',
],
'defines': [
],
}, # neteq_rtpplay
],
}],
],
'targets': [
{
'target_name': 'RTPencode',
'type': 'executable',
'dependencies': [
# TODO(hlundin): Make RTPencode use ACM to encode files.
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
'cng',
'g711',
'g722',
'ilbc',
'isac',
'neteq_test_tools', # Test helpers
'pcm16b',
'webrtc_opus',
],
'defines': [
'CODEC_ILBC',
'CODEC_PCM16B',
'CODEC_G711',
'CODEC_G722',
'CODEC_ISAC',
'CODEC_PCM16B_WB',
'CODEC_ISAC_SWB',
'CODEC_PCM16B_32KHZ',
'CODEC_PCM16B_48KHZ',
'CODEC_CNGCODEC8',
'CODEC_CNGCODEC16',
'CODEC_CNGCODEC32',
'CODEC_ATEVENT_DECODE',
'CODEC_RED',
'CODEC_OPUS',
],
'include_dirs': [
'include',
'test',
'<(webrtc_root)',
],
'sources': [
'test/RTPencode.cc',
],
# Disable warnings to enable Win64 build, issue 1323.
'msvs_disabled_warnings': [
4267, # size_t to int truncation.
],
},
{
'target_name': 'RTPjitter',
'type': 'executable',
'dependencies': [
'<(webrtc_root)/common.gyp:webrtc_common',
'<(DEPTH)/testing/gtest.gyp:gtest',
],
'sources': [
'test/RTPjitter.cc',
],
},
{
'target_name': 'rtp_analyze',
'type': 'executable',
'dependencies': [
'<(DEPTH)/testing/gtest.gyp:gtest',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
'neteq_unittest_tools',
],
'sources': [
'tools/rtp_analyze.cc',
],
},
{
'target_name': 'RTPchange',
'type': 'executable',
'dependencies': [
'<(DEPTH)/testing/gtest.gyp:gtest',
'neteq_test_tools',
],
'sources': [
'test/RTPchange.cc',
],
},
{
'target_name': 'RTPtimeshift',
'type': 'executable',
'dependencies': [
'<(DEPTH)/testing/gtest.gyp:gtest',
'neteq_test_tools',
],
'sources': [
'test/RTPtimeshift.cc',
],
},
{
'target_name': 'rtpcat',
'type': 'executable',
'dependencies': [
'<(DEPTH)/testing/gtest.gyp:gtest',
'<(webrtc_root)/test/test.gyp:rtp_test_utils',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
],
'sources': [
'tools/rtpcat.cc',
],
},
{
'target_name': 'audio_classifier_test',
'type': 'executable',
'dependencies': [
'neteq',
'webrtc_opus',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
],
'sources': [
'test/audio_classifier_test.cc',
],
},
{
'target_name': 'neteq_test_support',
'type': 'static_library',
'dependencies': [
'<(DEPTH)/testing/gtest.gyp:gtest',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
'neteq',
'neteq_unittest_tools',
'pcm16b',
],
'sources': [
'tools/neteq_external_decoder_test.cc',
'tools/neteq_external_decoder_test.h',
'tools/neteq_performance_test.cc',
'tools/neteq_performance_test.h',
],
}, # neteq_test_support
{
'target_name': 'neteq_quality_test_support',
'type': 'static_library',
'dependencies': [
'<(DEPTH)/testing/gtest.gyp:gtest',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
'neteq',
'neteq_unittest_tools',
],
'sources': [
'tools/neteq_quality_test.cc',
'tools/neteq_quality_test.h',
],
}, # neteq_test_support
{
'target_name': 'neteq_speed_test',
'type': 'executable',
'dependencies': [
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
'<(webrtc_root)/test/test.gyp:test_support',
'neteq',
'neteq_test_support',
],
'sources': [
'test/neteq_speed_test.cc',
],
},
{
'target_name': 'neteq_opus_quality_test',
'type': 'executable',
'dependencies': [
'<(DEPTH)/testing/gtest.gyp:gtest',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
'<(webrtc_root)/test/test.gyp:test_support_main',
'neteq',
'neteq_quality_test_support',
'webrtc_opus',
],
'sources': [
'test/neteq_opus_quality_test.cc',
],
},
{
'target_name': 'neteq_isac_quality_test',
'type': 'executable',
'dependencies': [
'<(DEPTH)/testing/gtest.gyp:gtest',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
'<(webrtc_root)/test/test.gyp:test_support_main',
'isac_fix',
'neteq',
'neteq_quality_test_support',
],
'sources': [
'test/neteq_isac_quality_test.cc',
],
},
{
'target_name': 'neteq_pcmu_quality_test',
'type': 'executable',
'dependencies': [
'<(DEPTH)/testing/gtest.gyp:gtest',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
'<(webrtc_root)/test/test.gyp:test_support_main',
'g711',
'neteq',
'neteq_quality_test_support',
],
'sources': [
'test/neteq_pcmu_quality_test.cc',
],
},
{
'target_name': 'neteq_ilbc_quality_test',
'type': 'executable',
'dependencies': [
'<(DEPTH)/testing/gtest.gyp:gtest',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
'<(webrtc_root)/test/test.gyp:test_support_main',
'neteq',
'neteq_quality_test_support',
'ilbc',
],
'sources': [
'test/neteq_ilbc_quality_test.cc',
],
},
{
'target_name': 'neteq_test_tools',
# Collection of useful functions used in other tests.
'type': 'static_library',
'variables': {
# Expects RTP packets without payloads when enabled.
'neteq_dummy_rtp%': 0,
},
'dependencies': [
'<(DEPTH)/testing/gtest.gyp:gtest',
'<(webrtc_root)/common.gyp:webrtc_common',
'cng',
'g711',
'g722',
'ilbc',
'isac',
'pcm16b',
],
'direct_dependent_settings': {
'include_dirs': [
'include',
'test',
'<(webrtc_root)',
],
},
'defines': [
],
'include_dirs': [
'include',
'test',
'<(webrtc_root)',
],
'sources': [
'test/NETEQTEST_DummyRTPpacket.cc',
'test/NETEQTEST_DummyRTPpacket.h',
'test/NETEQTEST_RTPpacket.cc',
'test/NETEQTEST_RTPpacket.h',
],
# Disable warnings to enable Win64 build, issue 1323.
'msvs_disabled_warnings': [
4267, # size_t to int truncation.
],
},
], # targets
}

View File

@ -4,5 +4,3 @@ minyue@webrtc.org
# structural changes, please get a review from a reviewer in this file. # structural changes, please get a review from a reviewer in this file.
per-file *.gn=* per-file *.gn=*
per-file *.gni=* per-file *.gni=*
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,34 +0,0 @@
# Copyright (c) 2011 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.
{
'targets': [
{
'target_name': 'audio_conference_mixer',
'type': 'static_library',
'dependencies': [
'audio_processing',
'webrtc_utility',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
],
'sources': [
'include/audio_conference_mixer.h',
'include/audio_conference_mixer_defines.h',
'source/audio_frame_manipulator.cc',
'source/audio_frame_manipulator.h',
'source/memory_pool.h',
'source/memory_pool_posix.h',
'source/memory_pool_win.h',
'source/audio_conference_mixer_impl.cc',
'source/audio_conference_mixer_impl.h',
'source/time_scheduler.cc',
'source/time_scheduler.h',
],
},
], # targets
}

View File

@ -1,5 +0,0 @@
# These are for the common case of adding or renaming files. If you're doing
# structural changes, please get a review from a reviewer in this file.
per-file *.gyp=*
per-file *.gypi=*

View File

@ -8,5 +8,3 @@ xians@webrtc.org
# structural changes, please get a review from a reviewer in this file. # structural changes, please get a review from a reviewer in this file.
per-file *.gn=* per-file *.gn=*
per-file *.gni=* per-file *.gni=*
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,262 +0,0 @@
# Copyright (c) 2012 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.
{
'targets': [
{
'target_name': 'audio_device',
'type': 'static_library',
'dependencies': [
'webrtc_utility',
'<(webrtc_root)/base/base.gyp:rtc_base_approved',
'<(webrtc_root)/common.gyp:webrtc_common',
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
],
'include_dirs': [
'.',
'../include',
'include',
'dummy', # Contains dummy audio device implementations.
],
'direct_dependent_settings': {
'include_dirs': [
'../include',
'include',
],
},
# TODO(xians): Rename files to e.g. *_linux.{ext}, remove sources in conditions section
'sources': [
'include/audio_device.h',
'include/audio_device_defines.h',
'audio_device_buffer.cc',
'audio_device_buffer.h',
'audio_device_generic.cc',
'audio_device_generic.h',
'audio_device_config.h',
'dummy/audio_device_dummy.cc',
'dummy/audio_device_dummy.h',
'dummy/file_audio_device.cc',
'dummy/file_audio_device.h',
'fine_audio_buffer.cc',
'fine_audio_buffer.h',
],
'conditions': [
['OS=="linux"', {
'include_dirs': [
'linux',
],
}], # OS==linux
['OS=="ios"', {
'include_dirs': [
'ios',
],
}], # OS==ios
['OS=="mac"', {
'include_dirs': [
'mac',
],
}], # OS==mac
['OS=="win"', {
'include_dirs': [
'win',
],
}],
['OS=="android"', {
'include_dirs': [
'android',
],
}], # OS==android
['include_internal_audio_device==0', {
'defines': [
'WEBRTC_DUMMY_AUDIO_BUILD',
],
}],
['build_with_chromium==0', {
'sources': [
# Don't link these into Chrome since they contain static data.
'dummy/file_audio_device_factory.cc',
'dummy/file_audio_device_factory.h',
],
}],
['include_internal_audio_device==1', {
'sources': [
'audio_device_impl.cc',
'audio_device_impl.h',
],
'conditions': [
['use_dummy_audio_file_devices==1', {
'defines': [
'WEBRTC_DUMMY_FILE_DEVICES',
],
}, { # use_dummy_audio_file_devices==0, so use a platform device.
'conditions': [
['OS=="android"', {
'sources': [
'android/audio_device_template.h',
'android/audio_manager.cc',
'android/audio_manager.h',
'android/audio_record_jni.cc',
'android/audio_record_jni.h',
'android/audio_track_jni.cc',
'android/audio_track_jni.h',
'android/build_info.cc',
'android/build_info.h',
'android/opensles_common.cc',
'android/opensles_common.h',
'android/opensles_player.cc',
'android/opensles_player.h',
'android/opensles_recorder.cc',
'android/opensles_recorder.h',
],
'link_settings': {
'libraries': [
'-llog',
'-lOpenSLES',
],
},
}],
['OS=="linux"', {
'sources': [
'linux/alsasymboltable_linux.cc',
'linux/alsasymboltable_linux.h',
'linux/audio_device_alsa_linux.cc',
'linux/audio_device_alsa_linux.h',
'linux/audio_mixer_manager_alsa_linux.cc',
'linux/audio_mixer_manager_alsa_linux.h',
'linux/latebindingsymboltable_linux.cc',
'linux/latebindingsymboltable_linux.h',
],
'defines': [
'LINUX_ALSA',
],
'link_settings': {
'libraries': [
'-ldl','-lX11',
],
},
'conditions': [
['include_pulse_audio==1', {
'defines': [
'LINUX_PULSE',
],
'sources': [
'linux/audio_device_pulse_linux.cc',
'linux/audio_device_pulse_linux.h',
'linux/audio_mixer_manager_pulse_linux.cc',
'linux/audio_mixer_manager_pulse_linux.h',
'linux/pulseaudiosymboltable_linux.cc',
'linux/pulseaudiosymboltable_linux.h',
],
}],
],
}],
['OS=="mac"', {
'sources': [
'mac/audio_device_mac.cc',
'mac/audio_device_mac.h',
'mac/audio_mixer_manager_mac.cc',
'mac/audio_mixer_manager_mac.h',
'mac/portaudio/pa_memorybarrier.h',
'mac/portaudio/pa_ringbuffer.c',
'mac/portaudio/pa_ringbuffer.h',
],
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework',
'$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
],
},
}],
['OS=="ios"', {
'dependencies': [
'<(webrtc_root)/base/base.gyp:rtc_base',
'<(webrtc_root)/sdk/sdk.gyp:rtc_sdk_common_objc',
],
'export_dependent_settings': [
'<(webrtc_root)/sdk/sdk.gyp:rtc_sdk_common_objc',
],
'sources': [
'ios/audio_device_ios.h',
'ios/audio_device_ios.mm',
'ios/audio_device_not_implemented_ios.mm',
'ios/audio_session_observer.h',
'ios/objc/RTCAudioSession+Configuration.mm',
'ios/objc/RTCAudioSession+Private.h',
'ios/objc/RTCAudioSession.h',
'ios/objc/RTCAudioSession.mm',
'ios/objc/RTCAudioSessionConfiguration.h',
'ios/objc/RTCAudioSessionConfiguration.m',
'ios/objc/RTCAudioSessionDelegateAdapter.h',
'ios/objc/RTCAudioSessionDelegateAdapter.mm',
'ios/voice_processing_audio_unit.h',
'ios/voice_processing_audio_unit.mm',
],
'xcode_settings': {
'CLANG_ENABLE_OBJC_ARC': 'YES',
},
'link_settings': {
'xcode_settings': {
'OTHER_LDFLAGS': [
'-framework AudioToolbox',
'-framework AVFoundation',
'-framework Foundation',
'-framework UIKit',
],
},
},
}],
['OS=="win"', {
'sources': [
'win/audio_device_core_win.cc',
'win/audio_device_core_win.h',
'win/audio_device_wave_win.cc',
'win/audio_device_wave_win.h',
'win/audio_mixer_manager_win.cc',
'win/audio_mixer_manager_win.h',
],
'link_settings': {
'libraries': [
# Required for the built-in WASAPI AEC.
'-ldmoguids.lib',
'-lwmcodecdspuuid.lib',
'-lamstrmid.lib',
'-lmsdmo.lib',
],
},
}],
['OS=="win" and clang==1', {
'msvs_settings': {
'VCCLCompilerTool': {
'AdditionalOptions': [
# Disable warnings failing when compiling with Clang on Windows.
# https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
'-Wno-bool-conversion',
'-Wno-delete-non-virtual-dtor',
'-Wno-logical-op-parentheses',
'-Wno-microsoft-extra-qualification',
'-Wno-microsoft-goto',
'-Wno-missing-braces',
'-Wno-parentheses-equality',
'-Wno-reorder',
'-Wno-shift-overflow',
'-Wno-tautological-compare',
'-Wno-unused-private-field',
],
},
},
}],
], # conditions (for non-dummy devices)
}], # use_dummy_audio_file_devices check
], # conditions
}], # include_internal_audio_device==1
], # conditions
},
],
}

View File

@ -5,5 +5,3 @@ henrik.lundin@webrtc.org
# structural changes, please get a review from a reviewer in this file. # structural changes, please get a review from a reviewer in this file.
per-file *.gn=* per-file *.gn=*
per-file *.gni=* per-file *.gni=*
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,40 +0,0 @@
# Copyright (c) 2016 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.
{
'targets': [
{
'target_name': 'audio_mixer_impl',
'type': 'static_library',
'dependencies': [
'audio_frame_manipulator',
'audio_processing',
'webrtc_utility',
'<(webrtc_root)/api/api.gyp:audio_mixer_api',
'<(webrtc_root)/base/base.gyp:rtc_base_approved',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
],
'sources': [
'audio_mixer_impl.cc',
'audio_mixer_impl.h',
],
},
{
'target_name': 'audio_frame_manipulator',
'type': 'static_library',
'dependencies': [
'webrtc_utility',
'<(webrtc_root)/base/base.gyp:rtc_base_approved',
],
'sources': [
'audio_frame_manipulator.cc',
'audio_frame_manipulator.h',
],
},
], # targets
}

View File

@ -6,5 +6,3 @@ peah@webrtc.org
# structural changes, please get a review from a reviewer in this file. # structural changes, please get a review from a reviewer in this file.
per-file *.gn=* per-file *.gn=*
per-file *.gni=* per-file *.gni=*
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,332 +0,0 @@
# Copyright (c) 2012 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': {
'shared_generated_dir': '<(SHARED_INTERMEDIATE_DIR)/audio_processing/asm_offsets',
},
'targets': [
{
'target_name': 'audio_processing',
'type': 'static_library',
'variables': {
# Outputs some low-level debug files.
'agc_debug_dump%': 0,
# Disables the usual mode where we trust the reported system delay
# values the AEC receives. The corresponding define is set appropriately
# in the code, but it can be force-enabled here for testing.
'aec_untrusted_delay_for_testing%': 0,
},
'dependencies': [
'<(webrtc_root)/base/base.gyp:rtc_base_approved',
'<(webrtc_root)/common.gyp:webrtc_common',
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
'<(webrtc_root)/modules/modules.gyp:isac',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
],
'sources': [
'aec/aec_core.cc',
'aec/aec_core.h',
'aec/aec_core_optimized_methods.h',
'aec/aec_resampler.cc',
'aec/aec_resampler.h',
'aec/echo_cancellation.cc',
'aec/echo_cancellation.h',
'aecm/aecm_core.cc',
'aecm/aecm_core.h',
'aecm/echo_control_mobile.cc',
'aecm/echo_control_mobile.h',
'agc/agc.cc',
'agc/agc.h',
'agc/agc_manager_direct.cc',
'agc/agc_manager_direct.h',
'agc/gain_map_internal.h',
'agc/loudness_histogram.cc',
'agc/loudness_histogram.h',
'agc/legacy/analog_agc.c',
'agc/legacy/analog_agc.h',
'agc/legacy/digital_agc.c',
'agc/legacy/digital_agc.h',
'agc/legacy/gain_control.h',
'agc/utility.cc',
'agc/utility.h',
'audio_buffer.cc',
'audio_buffer.h',
'audio_processing_impl.cc',
'audio_processing_impl.h',
'beamformer/array_util.cc',
'beamformer/array_util.h',
'beamformer/complex_matrix.h',
'beamformer/covariance_matrix_generator.cc',
'beamformer/covariance_matrix_generator.h',
'beamformer/matrix.h',
'beamformer/nonlinear_beamformer.cc',
'beamformer/nonlinear_beamformer.h',
'common.h',
'echo_cancellation_impl.cc',
'echo_cancellation_impl.h',
'echo_control_mobile_impl.cc',
'echo_control_mobile_impl.h',
'echo_detector/circular_buffer.cc',
'echo_detector/circular_buffer.h',
'echo_detector/mean_variance_estimator.cc',
'echo_detector/mean_variance_estimator.h',
'echo_detector/normalized_covariance_estimator.cc',
'echo_detector/normalized_covariance_estimator.h',
'gain_control_for_experimental_agc.cc',
'gain_control_for_experimental_agc.h',
'gain_control_impl.cc',
'gain_control_impl.h',
'high_pass_filter_impl.cc',
'high_pass_filter_impl.h',
'include/audio_processing.cc',
'include/audio_processing.h',
'include/config.cc',
'include/config.h',
'level_controller/biquad_filter.cc',
'level_controller/biquad_filter.h',
'level_controller/down_sampler.cc',
'level_controller/down_sampler.h',
'level_controller/gain_applier.cc',
'level_controller/gain_applier.h',
'level_controller/gain_selector.cc',
'level_controller/gain_selector.h',
'level_controller/level_controller_constants.h',
'level_controller/level_controller.cc',
'level_controller/level_controller.h',
'level_controller/noise_spectrum_estimator.cc',
'level_controller/noise_spectrum_estimator.h',
'level_controller/noise_level_estimator.cc',
'level_controller/noise_level_estimator.h',
'level_controller/peak_level_estimator.cc',
'level_controller/peak_level_estimator.h',
'level_controller/saturating_gain_estimator.cc',
'level_controller/saturating_gain_estimator.h',
'level_controller/signal_classifier.cc',
'level_controller/signal_classifier.h',
'level_estimator_impl.cc',
'level_estimator_impl.h',
'logging/apm_data_dumper.cc',
'logging/apm_data_dumper.h',
'noise_suppression_impl.cc',
'noise_suppression_impl.h',
'render_queue_item_verifier.h',
'residual_echo_detector.cc',
'residual_echo_detector.h',
'rms_level.cc',
'rms_level.h',
'splitting_filter.cc',
'splitting_filter.h',
'three_band_filter_bank.cc',
'three_band_filter_bank.h',
'transient/common.h',
'transient/daubechies_8_wavelet_coeffs.h',
'transient/dyadic_decimator.h',
'transient/moving_moments.cc',
'transient/moving_moments.h',
'transient/transient_detector.cc',
'transient/transient_detector.h',
'transient/transient_suppressor.cc',
'transient/transient_suppressor.h',
'transient/wpd_node.cc',
'transient/wpd_node.h',
'transient/wpd_tree.cc',
'transient/wpd_tree.h',
'typing_detection.cc',
'typing_detection.h',
'utility/block_mean_calculator.cc',
'utility/block_mean_calculator.h',
'utility/delay_estimator.cc',
'utility/delay_estimator.h',
'utility/delay_estimator_internal.h',
'utility/delay_estimator_wrapper.cc',
'utility/delay_estimator_wrapper.h',
'utility/ooura_fft.cc',
'utility/ooura_fft.h',
'utility/ooura_fft_tables_common.h',
'vad/common.h',
'vad/gmm.cc',
'vad/gmm.h',
'vad/noise_gmm_tables.h',
'vad/pitch_based_vad.cc',
'vad/pitch_based_vad.h',
'vad/pitch_internal.cc',
'vad/pitch_internal.h',
'vad/pole_zero_filter.cc',
'vad/pole_zero_filter.h',
'vad/standalone_vad.cc',
'vad/standalone_vad.h',
'vad/vad_audio_proc.cc',
'vad/vad_audio_proc.h',
'vad/vad_audio_proc_internal.h',
'vad/vad_circular_buffer.cc',
'vad/vad_circular_buffer.h',
'vad/voice_activity_detector.cc',
'vad/voice_activity_detector.h',
'vad/voice_gmm_tables.h',
'voice_detection_impl.cc',
'voice_detection_impl.h',
],
'conditions': [
['apm_debug_dump==1', {
'defines': ['WEBRTC_APM_DEBUG_DUMP=1',],
}, {
'defines': ['WEBRTC_APM_DEBUG_DUMP=0',],
}],
['aec_untrusted_delay_for_testing==1', {
'defines': ['WEBRTC_UNTRUSTED_DELAY',],
}],
['agc_debug_dump==1', {
'defines': ['WEBRTC_AGC_DEBUG_DUMP',],
}],
['enable_protobuf==1', {
'dependencies': ['audioproc_debug_proto'],
'defines': ['WEBRTC_AUDIOPROC_DEBUG_DUMP'],
}],
['enable_intelligibility_enhancer==1', {
'defines': ['WEBRTC_INTELLIGIBILITY_ENHANCER=1',],
'sources': [
'intelligibility/intelligibility_enhancer.cc',
'intelligibility/intelligibility_enhancer.h',
'intelligibility/intelligibility_utils.cc',
'intelligibility/intelligibility_utils.h',
],
}, {
'defines': ['WEBRTC_INTELLIGIBILITY_ENHANCER=0',],
}],
['prefer_fixed_point==1', {
'defines': ['WEBRTC_NS_FIXED'],
'sources': [
'ns/noise_suppression_x.h',
'ns/noise_suppression_x.c',
'ns/nsx_core.c',
'ns/nsx_core.h',
'ns/nsx_defines.h',
],
'conditions': [
['target_arch=="mipsel" and mips_arch_variant!="r6"', {
'sources': [
'ns/nsx_core_mips.c',
],
}, {
'sources': [
'ns/nsx_core_c.c',
],
}],
],
}, {
'defines': ['WEBRTC_NS_FLOAT'],
'sources': [
'ns/defines.h',
'ns/noise_suppression.h',
'ns/noise_suppression.c',
'ns/ns_core.c',
'ns/ns_core.h',
'ns/windows_private.h',
],
}],
['target_arch=="ia32" or target_arch=="x64"', {
'dependencies': ['audio_processing_sse2',],
}],
['build_with_neon==1', {
'dependencies': ['audio_processing_neon',],
}],
['target_arch=="mipsel" and mips_arch_variant!="r6"', {
'sources': [
'aecm/aecm_core_mips.cc',
],
'conditions': [
['mips_float_abi=="hard"', {
'sources': [
'aec/aec_core_mips.cc',
'utility/ooura_fft_mips.cc',
],
}],
],
}, {
'sources': [
'aecm/aecm_core_c.cc',
],
}],
],
# TODO(jschuh): Bug 1348: fix size_t to int truncations.
'msvs_disabled_warnings': [ 4267, ],
},
],
'conditions': [
['enable_protobuf==1', {
'targets': [
{
'target_name': 'audioproc_debug_proto',
'type': 'static_library',
'sources': ['debug.proto',],
'variables': {
'proto_in_dir': '.',
# Workaround to protect against gyp's pathname relativization when
# this file is included by modules.gyp.
'proto_out_protected': 'webrtc/modules/audio_processing',
'proto_out_dir': '<(proto_out_protected)',
},
'includes': ['../../build/protoc.gypi',],
},
],
}],
['target_arch=="ia32" or target_arch=="x64"', {
'targets': [
{
'target_name': 'audio_processing_sse2',
'type': 'static_library',
'sources': [
'aec/aec_core_sse2.cc',
'utility/ooura_fft_sse2.cc',
'utility/ooura_fft_tables_neon_sse2.h',
],
'conditions': [
['apm_debug_dump==1', {
'defines': ['WEBRTC_APM_DEBUG_DUMP=1',],
}, {
'defines': ['WEBRTC_APM_DEBUG_DUMP=0',],
}],
['os_posix==1', {
'cflags': [ '-msse2', ],
'xcode_settings': {
'OTHER_CFLAGS': [ '-msse2', ],
},
}],
],
},
],
}],
['build_with_neon==1', {
'targets': [{
'target_name': 'audio_processing_neon',
'type': 'static_library',
'includes': ['../../build/arm_neon.gypi',],
'dependencies': [
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
],
'sources': [
'aec/aec_core_neon.cc',
'aecm/aecm_core_neon.cc',
'ns/nsx_core_neon.c',
'utility/ooura_fft_neon.cc',
'utility/ooura_fft_tables_neon_sse2.h',
],
'conditions': [
['apm_debug_dump==1', {
'defines': ['WEBRTC_APM_DEBUG_DUMP=1',],
}],
['apm_debug_dump==0', {
'defines': ['WEBRTC_APM_DEBUG_DUMP=0',],
}],
],
}],
}],
],
}

View File

@ -1,151 +0,0 @@
# Copyright (c) 2012 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.
{
'targets': [
{
'target_name': 'audioproc_test_utils',
'type': 'static_library',
'dependencies': [
'<(webrtc_root)/base/base.gyp:rtc_base_approved',
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
],
'sources': [
'test/audio_buffer_tools.cc',
'test/audio_buffer_tools.h',
'test/test_utils.cc',
'test/test_utils.h',
],
},
{
'target_name': 'transient_suppression_test',
'type': 'executable',
'dependencies': [
'<(DEPTH)/testing/gtest.gyp:gtest',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
'<(webrtc_root)/test/test.gyp:test_support',
'<(webrtc_root)/modules/modules.gyp:audio_processing',
],
'sources': [
'transient/transient_suppression_test.cc',
'transient/file_utils.cc',
'transient/file_utils.h',
],
}, # transient_suppression_test
{
'target_name': 'click_annotate',
'type': 'executable',
'dependencies': [
'<(webrtc_root)/modules/modules.gyp:audio_processing',
],
'sources': [
'transient/click_annotate.cc',
'transient/file_utils.cc',
'transient/file_utils.h',
],
}, # click_annotate
{
'target_name': 'nonlinear_beamformer_test',
'type': 'executable',
'dependencies': [
'audioproc_test_utils',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
'<(webrtc_root)/modules/modules.gyp:audio_processing',
],
'sources': [
'beamformer/nonlinear_beamformer_test.cc',
],
}, # nonlinear_beamformer_test
],
'conditions': [
['enable_intelligibility_enhancer==1', {
'defines': ['WEBRTC_INTELLIGIBILITY_ENHANCER=1',],
'targets': [
{
'target_name': 'intelligibility_proc',
'type': 'executable',
'dependencies': [
'audioproc_test_utils',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
'<(DEPTH)/testing/gtest.gyp:gtest',
'<(webrtc_root)/modules/modules.gyp:audio_processing',
'<(webrtc_root)/test/test.gyp:test_support',
],
'sources': [
'intelligibility/test/intelligibility_proc.cc',
],
},
],
}, {
'defines': ['WEBRTC_INTELLIGIBILITY_ENHANCER=0',],
}],
['enable_protobuf==1', {
'targets': [
{
'target_name': 'audioproc_unittest_proto',
'type': 'static_library',
'sources': [ 'test/unittest.proto', ],
'variables': {
'proto_in_dir': 'test',
# Workaround to protect against gyp's pathname relativization when
# this file is included by modules.gyp.
'proto_out_protected': 'webrtc/modules/audio_processing',
'proto_out_dir': '<(proto_out_protected)',
},
'includes': [ '../../build/protoc.gypi', ],
},
{
'target_name': 'audioproc_protobuf_utils',
'type': 'static_library',
'dependencies': [
'audioproc_debug_proto',
],
'sources': [
'test/protobuf_utils.cc',
'test/protobuf_utils.h',
],
},
{
'target_name': 'audioproc_f',
'type': 'executable',
'dependencies': [
'audio_processing',
'audioproc_debug_proto',
'audioproc_test_utils',
'audioproc_protobuf_utils',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers_default',
'<(webrtc_root)/test/test.gyp:test_support',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
],
'sources': [
'test/audio_processing_simulator.cc',
'test/audio_processing_simulator.h',
'test/aec_dump_based_simulator.cc',
'test/aec_dump_based_simulator.h',
'test/wav_based_simulator.cc',
'test/wav_based_simulator.h',
'test/audioproc_float.cc',
],
},
{
'target_name': 'unpack_aecdump',
'type': 'executable',
'dependencies': [
'audioproc_debug_proto',
'audioproc_test_utils',
'audioproc_protobuf_utils',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/common_audio/common_audio.gyp:common_audio',
'<(DEPTH)/third_party/gflags/gflags.gyp:gflags',
],
'sources': [ 'test/unpack.cc', ],
},
],
}],
],
}

View File

@ -7,5 +7,3 @@ asapersson@webrtc.org
# structural changes, please get a review from a reviewer in this file. # structural changes, please get a review from a reviewer in this file.
per-file *.gn=* per-file *.gn=*
per-file *.gni=* per-file *.gni=*
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,35 +0,0 @@
# Copyright (c) 2012 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.
{
'targets': [
{
'target_name': 'bitrate_controller',
'type': 'static_library',
'dependencies': [
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
],
'sources': [
'bitrate_controller_impl.cc',
'bitrate_controller_impl.h',
'include/bitrate_controller.h',
'send_side_bandwidth_estimation.cc',
'send_side_bandwidth_estimation.h',
],
'conditions': [
['enable_bwe_test_logging==1', {
'defines': [ 'BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=1' ],
}, {
'defines': [ 'BWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0' ],
}],
],
# TODO(jschuh): Bug 1348: fix size_t to int truncations.
'msvs_disabled_warnings': [ 4267, ],
},
], # targets
}

View File

@ -5,5 +5,3 @@ stefan@webrtc.org
# structural changes, please get a review from a reviewer in this file. # structural changes, please get a review from a reviewer in this file.
per-file *.gn=* per-file *.gn=*
per-file *.gni=* per-file *.gni=*
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,34 +0,0 @@
# Copyright (c) 2016 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.
{
'targets': [
{
'target_name': 'congestion_controller',
'type': 'static_library',
'dependencies': [
'<(webrtc_root)/modules/modules.gyp:bitrate_controller',
'<(webrtc_root)/modules/modules.gyp:paced_sender',
],
'sources': [
'congestion_controller.cc',
'delay_based_bwe.cc',
'delay_based_bwe.h',
'include/congestion_controller.h',
'probe_bitrate_estimator.cc',
'probe_bitrate_estimator.h',
'probe_controller.cc',
'probe_controller.h',
'transport_feedback_adapter.cc',
'transport_feedback_adapter.h',
],
# TODO(jschuh): Bug 1348: fix size_t to int truncations.
'msvs_disabled_warnings': [ 4267, ],
},
], # targets
}

View File

@ -7,5 +7,3 @@ wez@chromium.org
# structural changes, please get a review from a reviewer in this file. # structural changes, please get a review from a reviewer in this file.
per-file *.gn=* per-file *.gn=*
per-file *.gni=* per-file *.gni=*
per-file *.gyp=*
per-file *.gypi=*

View File

@ -1,198 +0,0 @@
# 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.
{
'targets': [
{
'target_name': 'primitives',
'type': 'static_library',
'sources': [
'desktop_capture_types.h',
'desktop_frame.cc',
'desktop_frame.h',
'desktop_geometry.cc',
'desktop_geometry.h',
'desktop_region.cc',
'desktop_region.h',
],
},
{
'target_name': 'desktop_capture',
'type': 'static_library',
'dependencies': [
':primitives',
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
'<(webrtc_root)/base/base.gyp:rtc_base',
],
'sources': [
'cropped_desktop_frame.cc',
'cropped_desktop_frame.h',
'cropping_window_capturer.cc',
'cropping_window_capturer.h',
'cropping_window_capturer_win.cc',
'desktop_and_cursor_composer.cc',
'desktop_and_cursor_composer.h',
'desktop_capture_options.h',
'desktop_capture_options.cc',
'desktop_capturer.cc',
'desktop_capturer.h',
'desktop_frame_win.cc',
'desktop_frame_win.h',
'mac/desktop_configuration.h',
'mac/desktop_configuration.mm',
'mac/desktop_configuration_monitor.h',
'mac/desktop_configuration_monitor.cc',
'mac/full_screen_chrome_window_detector.cc',
'mac/full_screen_chrome_window_detector.h',
'mac/scoped_pixel_buffer_object.cc',
'mac/scoped_pixel_buffer_object.h',
'mac/window_list_utils.cc',
'mac/window_list_utils.h',
'mouse_cursor.cc',
'mouse_cursor.h',
'mouse_cursor_monitor.h',
'mouse_cursor_monitor_mac.mm',
'mouse_cursor_monitor_win.cc',
'screen_capture_frame_queue.h',
'screen_capturer_helper.cc',
'screen_capturer_helper.h',
'screen_capturer_mac.mm',
'screen_capturer_win.cc',
'shared_desktop_frame.cc',
'shared_desktop_frame.h',
'shared_memory.cc',
'shared_memory.h',
'win/cursor.cc',
'win/cursor.h',
'win/d3d_device.cc',
'win/d3d_device.h',
'win/desktop.cc',
'win/desktop.h',
'win/dxgi_adapter_duplicator.cc',
'win/dxgi_adapter_duplicator.h',
'win/dxgi_duplicator_controller.cc',
'win/dxgi_duplicator_controller.h',
'win/dxgi_output_duplicator.cc',
'win/dxgi_output_duplicator.h',
'win/dxgi_texture.cc',
'win/dxgi_texture.h',
'win/dxgi_texture_mapping.cc',
'win/dxgi_texture_mapping.h',
'win/dxgi_texture_staging.cc',
'win/dxgi_texture_staging.h',
'win/scoped_gdi_object.h',
'win/scoped_thread_desktop.cc',
'win/scoped_thread_desktop.h',
'win/screen_capture_utils.cc',
'win/screen_capture_utils.h',
'win/screen_capturer_win_directx.cc',
'win/screen_capturer_win_directx.h',
'win/screen_capturer_win_gdi.cc',
'win/screen_capturer_win_gdi.h',
'win/screen_capturer_win_magnifier.cc',
'win/screen_capturer_win_magnifier.h',
'win/window_capture_utils.cc',
'win/window_capture_utils.h',
'window_capturer_mac.mm',
'window_capturer_win.cc',
],
'conditions': [
['OS!="ios" and (target_arch=="ia32" or target_arch=="x64")', {
'dependencies': [
'desktop_capture_differ_sse2',
],
}],
['use_x11==1', {
'sources': [
'mouse_cursor_monitor_x11.cc',
'screen_capturer_x11.cc',
'window_capturer_x11.cc',
'x11/shared_x_display.h',
'x11/shared_x_display.cc',
'x11/x_error_trap.cc',
'x11/x_error_trap.h',
'x11/x_server_pixel_buffer.cc',
'x11/x_server_pixel_buffer.h',
],
'link_settings': {
'libraries': [
'-lX11',
'-lXcomposite',
'-lXdamage',
'-lXext',
'-lXfixes',
'-lXrender',
],
},
}],
['OS!="win" and OS!="mac" and use_x11==0', {
'sources': [
'mouse_cursor_monitor_null.cc',
'screen_capturer_null.cc',
'window_capturer_null.cc',
],
}],
['OS!="ios" ', {
'sources': [
'desktop_capturer_differ_wrapper.cc',
'desktop_capturer_differ_wrapper.h',
'differ_block.cc',
'differ_block.h',
],
}],
['OS=="mac"', {
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
'$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
'$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
],
},
}],
],
'all_dependent_settings': {
'conditions': [
['OS=="win"', {
'msvs_settings': {
'VCLinkerTool': {
'AdditionalDependencies': [
'd3d11.lib',
'dxgi.lib',
],
},
},
}],
],
},
},
], # targets
'conditions': [
['OS!="ios" and (target_arch=="ia32" or target_arch=="x64")', {
'targets': [
{
# Have to be compiled as a separate target because it needs to be
# compiled with SSE2 enabled.
'target_name': 'desktop_capture_differ_sse2',
'type': 'static_library',
'sources': [
'differ_vector_sse2.cc',
'differ_vector_sse2.h',
],
'conditions': [
['os_posix==1', {
'cflags': [ '-msse2', ],
'xcode_settings': {
'OTHER_CFLAGS': [ '-msse2', ],
},
}],
],
},
], # targets
}],
],
}

Some files were not shown because too many files have changed in this diff Show More