summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorspang <spang@chromium.org>2015-05-05 07:30:58 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-05 14:32:30 +0000
commitcfad5d9c6cd08eebc99fbf7cc5ae79ba567d1daa (patch)
tree5033b1a056b9287ea320451ebd2954416b5e8e26 /tools
parent7d36a670f9b38d3fd9e81f1b83fab414bc22c696 (diff)
downloadchromium_src-cfad5d9c6cd08eebc99fbf7cc5ae79ba567d1daa.zip
chromium_src-cfad5d9c6cd08eebc99fbf7cc5ae79ba567d1daa.tar.gz
chromium_src-cfad5d9c6cd08eebc99fbf7cc5ae79ba567d1daa.tar.bz2
Remove swig from the checkout
This dependency has not used used since we removed pyauto (r261229). Review URL: https://codereview.chromium.org/1122803003 Cr-Commit-Position: refs/heads/master@{#328324}
Diffstat (limited to 'tools')
-rwxr-xr-xtools/checklicenses/checklicenses.py3
-rwxr-xr-xtools/swig/swig.py45
2 files changed, 0 insertions, 48 deletions
diff --git a/tools/checklicenses/checklicenses.py b/tools/checklicenses/checklicenses.py
index 559ff4b..8a5b25b 100755
--- a/tools/checklicenses/checklicenses.py
+++ b/tools/checklicenses/checklicenses.py
@@ -361,9 +361,6 @@ PATH_SPECIFIC_WHITELISTED_LICENSES = {
'UNKNOWN',
],
- 'third_party/swig/Lib/linkruntime.c': [ # http://crbug.com/98585
- 'UNKNOWN',
- ],
'third_party/talloc': [
'GPL (v3 or later)',
'UNKNOWN', # http://crbug.com/98588
diff --git a/tools/swig/swig.py b/tools/swig/swig.py
deleted file mode 100755
index 8f4babb..0000000
--- a/tools/swig/swig.py
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Wrapper around swig.
-
-Sets the SWIG_LIB environment var to point to Lib dir
-and defers control to the platform-specific swig binary.
-
-Depends on swig binaries being available at ../../third_party/swig.
-"""
-
-import os
-import subprocess
-import sys
-
-
-def main():
- swig_dir = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]),
- os.pardir, os.pardir, 'third_party', 'swig'))
- lib_dir = os.path.join(swig_dir, "Lib")
- os.putenv("SWIG_LIB", lib_dir)
- dir_map = {
- 'darwin': 'mac',
- 'linux2': 'linux',
- 'linux3': 'linux',
- 'win32': 'win',
- }
- # Swig documentation lies that platform macros are provided to swig
- # preprocessor. Provide them ourselves.
- platform_flags = {
- 'darwin': '-DSWIGMAC',
- 'linux2': '-DSWIGLINUX',
- 'linux3': '-DSWIGLINUX',
- 'win32': '-DSWIGWIN',
- }
- swig_bin = os.path.join(swig_dir, dir_map[sys.platform], 'swig')
- args = [swig_bin, platform_flags[sys.platform]] + sys.argv[1:]
- args = [x.replace('/', os.sep) for x in args]
- return subprocess.call(args)
-
-
-if __name__ == "__main__":
- sys.exit(main())