summaryrefslogtreecommitdiffstats
path: root/tools/generate_stubs
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-30 00:28:40 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-30 00:28:40 +0000
commit6ef2067c287ffbe78bf193f72fd12cf9ce57f08a (patch)
tree7a851346c1ab91ec138d2391b325f418b043226d /tools/generate_stubs
parentd278c8299792fac77a5b9775ee33a94c55bddf43 (diff)
downloadchromium_src-6ef2067c287ffbe78bf193f72fd12cf9ce57f08a.zip
chromium_src-6ef2067c287ffbe78bf193f72fd12cf9ce57f08a.tar.gz
chromium_src-6ef2067c287ffbe78bf193f72fd12cf9ce57f08a.tar.bz2
Roll DEPS to include changes to FFmpeg build system
This change will avoid exporting libvpx symbols if libvpx is not built into FFmpeg. BUG=None TEST=FFmpeg can be loaded on ARM Review URL: http://codereview.chromium.org/3518002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61013 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/generate_stubs')
-rwxr-xr-xtools/generate_stubs/generate_stubs.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/generate_stubs/generate_stubs.py b/tools/generate_stubs/generate_stubs.py
index 7263c1e..97c8106 100755
--- a/tools/generate_stubs/generate_stubs.py
+++ b/tools/generate_stubs/generate_stubs.py
@@ -1,6 +1,6 @@
#!/usr/bin/python
#
-# Copyright (c) 2009 The Chromium Authors. All rights reserved.
+# Copyright (c) 2010 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.
@@ -344,7 +344,16 @@ def ExtractModuleName(infile_path):
The module name as a string.
"""
basename = os.path.basename(infile_path)
- return os.path.splitext(basename)[0]
+
+ # This loop continously removes suffixes of the filename separated by a "."
+ # character.
+ while 1:
+ new_basename = os.path.splitext(basename)[0]
+ if basename == new_basename:
+ break
+ else:
+ basename = new_basename
+ return basename
def ParseSignatures(infile):