Lines Matching refs:item
17 items: Map from library or group names to item maps.
18 Each item has a "type" ("library" or "group" or "system_symbols").
19 A library or group item can have an optional set of "files" (as in the files attribute).
20 Each item can have an optional set of "deps" (libraries & groups).
21 A group item also has a "library" name unless it is a group of system symbols.
22 The one "system_symbols" item and its groups have sets of "system_symbols"
30 # item contents: {"type": "binary"} with optional files & deps
73 def _ReadFiles(deps_file, item, library_name):
75 item_files = item.get("files")
80 if item_files == None: item_files = item["files"] = set()
89 def _IsLibrary(item): return item and item["type"] == "library"
91 def _IsLibraryGroup(item): return item and "library" in item
93 def _ReadDeps(deps_file, item, library_name):
95 item_deps = item.get("deps")
100 if item_deps == None: item_deps = item["deps"] = set()
104 if item["type"] == "system_symbols" and (_IsLibraryGroup(dep_item) or _IsLibrary(dep_item)):
114 def _AddSystemSymbol(item, symbol):
115 exports = item.get("system_symbols")
116 if exports == None: exports = item["system_symbols"] = set()
119 def _ReadSystemSymbols(deps_file, item):
130 _AddSystemSymbol(item, symbol)
135 for symbol in line.split(): _AddSystemSymbol(item, symbol)
154 item = items[name] = {"type": "library"}
155 line = _ReadFiles(deps_file, item, name)
166 item = items[name]
167 library_name = item.get("library")
169 line = _ReadFiles(deps_file, item, library_name)
171 line = _ReadSystemSymbols(deps_file, item)
176 item = items[name]
177 line = _ReadDeps(deps_file, item, item.get("library"))
179 item = items[current_type]
180 line = _ReadDeps(deps_file, item, None)
187 item = items[current_type] = {"type": current_type}
188 line = _ReadSystemSymbols(deps_file, item)