Skip to content

Commit

Permalink
Merge branch 'trunk' into ninja
Browse files Browse the repository at this point in the history
  • Loading branch information
evmar committed Jun 8, 2011
2 parents af5b1c3 + ff2a3cd commit 9dfe8d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
6 changes: 3 additions & 3 deletions pylib/gyp/generator/make.py
Expand Up @@ -511,7 +511,7 @@ def Sourceify(path):

# Map from qualified target to path to output.
target_outputs = {}
# Map from qualified target to a list of linkable outputs. A subset
# Map from qualified target to any linkable output. A subset
# of target_outputs. E.g. when mybinary depends on liba, we want to
# include liba in the linker line; when otherbinary depends on
# mybinary, we just want to build mybinary first.
Expand Down Expand Up @@ -620,7 +620,7 @@ def Write(self, qualified_target, base_path, output_filename, spec, configs,

# Update global list of link dependencies.
if self.type in ('static_library', 'shared_library'):
target_link_deps[qualified_target] = [self.output]
target_link_deps[qualified_target] = self.output

# Currently any versions have the same effect, but in future the behavior
# could be different.
Expand Down Expand Up @@ -982,7 +982,7 @@ def ComputeDeps(self, spec):
if target_outputs[dep]])
for dep in spec['dependencies']:
if dep in target_link_deps:
link_deps.extend(target_link_deps[dep])
link_deps.append(target_link_deps[dep])
deps.extend(link_deps)
# TODO: It seems we need to transitively link in libraries (e.g. -lfoo)?
# This hack makes it work:
Expand Down
8 changes: 0 additions & 8 deletions pylib/gyp/input.py
Expand Up @@ -1545,14 +1545,6 @@ def AdjustStaticLibraryDependencies(flat_list, targets, dependency_nodes):
target_dict['dependencies'] = []
if not dependency in target_dict['dependencies']:
target_dict['dependencies'].append(dependency)
# Sort the dependencies list in the order from dependents to dependencies.
# e.g. If A and B depend on C and C depends on D, sort them in A, B, C, D.
# Note: flat_list is already sorted in the order from dependencies to
# dependents.
if 'dependencies' in target_dict:
target_dict['dependencies'] = [
dep for dep in flat_list if dep in target_dict['dependencies']]
target_dict['dependencies'].reverse()

# Initialize this here to speed up MakePathRelative.
exception_re = re.compile(r'''["']?[-/$<>]''')
Expand Down

0 comments on commit 9dfe8d9

Please sign in to comment.