diff --git a/src/build/common_standalone.gypi b/src/build/common_standalone.gypi deleted file mode 100644 index 55d4371e33..0000000000 --- a/src/build/common_standalone.gypi +++ /dev/null @@ -1,97 +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. - -# This is included when gyp_webrtc is run, and provides the settings -# necessary for a standalone WebRTC build. - -{ - 'variables': { - # .gyp files or targets should set webrtc_code to 1 if they build - # WebRTC-specific code, as opposed to external code. This variable is - # used to control such things as the set of warnings to enable, and - # whether warnings are treated as errors. - 'webrtc_code%': 0, - - 'variables': { - # Compute the architecture that we're building on. - 'conditions': [ - ['OS=="win" or OS=="mac"', { - 'host_arch%': 'ia32', - }, { - # This handles the Unix platforms for which there is some support. - # Anything else gets passed through, which probably won't work very - # well; such hosts should pass an explicit target_arch to gyp. - 'host_arch%': - ' 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) - - # Always include common.gypi & features_override.gypi - AddInclude(os.path.join(script_dir, 'common_standalone.gypi')) - #AddInclude(os.path.join(script_dir, 'features_override.gypi')) - - # Optionally add supplemental .gypi files if present. - supplements = glob.glob(os.path.join(webrtc_src, '*', 'supplement.gypi')) - for supplement in supplements: - AddInclude(supplement) - - return result - -if __name__ == '__main__': - args = sys.argv[1:] - - # 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, check an env var, and then fall back to - # assuming 'all.gyp' from the same directory as the script. - if not gyp_file_specified: - gyp_file = os.environ.get('WEBRTC_GYP_FILE') - if gyp_file: - # Note that CHROMIUM_GYP_FILE values can't have backslashes as - # path separators even on Windows due to the use of shlex.split(). - args.extend(shlex.split(gyp_file)) - else: - # TODO(ajm): move webrtc.gyp to script_dir? - args.append(os.path.join(webrtc_src, 'webrtc.gyp')) - - args.extend(['-I' + i for i in additional_include_files(args)]) - - # Pick depth explicitly. - args += ['--depth', '.'] - - #Building WebRTC as standalone (not as part of Chrome) - #args += ['-D', 'webrtc_standalone=1'] - args += ['-D', 'build_with_chromium=0'] - - print 'Updating projects from gyp files...' - sys.stdout.flush() - - # Off we go... - sys.exit(gyp.main(args))