Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: source/test/depstest/dependencies.py

Issue 845603002: Update ICU to 54.1 step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: remove unusued directories Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/test/cintltst/utransts.c ('k') | source/test/depstest/dependencies.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/depstest/dependencies.py
diff --git a/source/test/depstest/dependencies.py b/source/test/depstest/dependencies.py
index 448f685c5111800fc6f319d447de8f7ed7c13589..fb1fc2e3b1011a73bda34742e2b8602d44ca4554 100755
--- a/source/test/depstest/dependencies.py
+++ b/source/test/depstest/dependencies.py
@@ -1,7 +1,7 @@
#! /usr/bin/python
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2011, International Business Machines
+# Copyright (C) 2011-2014, International Business Machines
# Corporation and others. All Rights Reserved.
#
# file name: dependencies.py
@@ -22,6 +22,7 @@ Attributes:
The one "system_symbols" item and its groups have sets of "system_symbols"
with standard-library system symbol names.
libraries: Set of library names mentioned in the dependencies file.
+ file_to_item: Map from a symbol (ushoe.o) to library or group (shoesize)
"""
__author__ = "Markus W. Scherer"
@@ -35,6 +36,7 @@ import sys
files = set()
items = {}
libraries = set()
+file_to_item = {}
_line_number = 0
_groups_to_be_defined = set()
@@ -85,6 +87,7 @@ def _ReadFiles(deps_file, item, library_name):
sys.exit("Error:%d: file %s listed in multiple groups" % (_line_number, file_name))
files.add(file_name)
item_files.add(file_name)
+ file_to_item[file_name] = item["name"]
def _IsLibrary(item): return item and item["type"] == "library"
@@ -151,7 +154,7 @@ def Load():
if name in items:
sys.exit("Error:%d: library definition using duplicate name %s" % (_line_number, name))
libraries.add(name)
- item = items[name] = {"type": "library"}
+ item = items[name] = {"type": "library", "name": name}
line = _ReadFiles(deps_file, item, name)
elif line.startswith("group: "):
current_type = "group"
@@ -164,6 +167,7 @@ def Load():
sys.exit("Error:%d: group definition using duplicate name %s" % (_line_number, name))
_groups_to_be_defined.remove(name)
item = items[name]
+ item["name"] = name
library_name = item.get("library")
if library_name:
line = _ReadFiles(deps_file, item, library_name)
@@ -184,7 +188,7 @@ def Load():
current_type = "system_symbols"
if current_type in items:
sys.exit("Error:%d: duplicate entry for system_symbols" % _line_number)
- item = items[current_type] = {"type": current_type}
+ item = items[current_type] = {"type": current_type, "name": current_type}
line = _ReadSystemSymbols(deps_file, item)
else:
sys.exit("Syntax error:%d: %s" % (_line_number, line))
« no previous file with comments | « source/test/cintltst/utransts.c ('k') | source/test/depstest/dependencies.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698