From 44d30c6fa6b407a42702d851eda36c485dc4ecd2 Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Fri, 24 Oct 2014 13:50:21 -0700 Subject: [PATCH] Remove a bunch of dead files found by missing_from_gn I also fixed several errors in our BUILD.gn files including bad script dependencies found by missing_from_gn and gn check. Still need to figure out how best to handle :libraries deps being private to :core, etc. R=abarth@chromium.org Review URL: https://codereview.chromium.org/678703004 --- engine/src/flutter/tools/missing_from_gn | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/engine/src/flutter/tools/missing_from_gn b/engine/src/flutter/tools/missing_from_gn index d8d6ebe607..fdc64d07e9 100755 --- a/engine/src/flutter/tools/missing_from_gn +++ b/engine/src/flutter/tools/missing_from_gn @@ -23,11 +23,9 @@ def stripped_lines_from_command(cmd, cwd=None): def gn_desc(*args): # GN doesn't understand absolute paths yet, so use a relative BUILD_DIR # and pass ROOT_DIR as the CWD. - cmd = [ - 'gn', 'desc', - # Hard-coding Debug for now: - os.path.join('out', 'Debug'), - ] + list(args) + # Hard-coding Debug for now: + BUILD_DIR = '//out/Debug' # // means repository root-relative. + cmd = ['gn', 'desc', BUILD_DIR] + list(args) return stripped_lines_from_command(cmd, cwd=ROOT_DIR) @@ -40,7 +38,9 @@ def used_files(target): logging.info(target) sources = map(lambda s: s[2:], gn_desc(target, 'sources')) inputs = map(lambda s: s[2:], gn_desc(target, 'inputs')) - return sources + inputs + public = map(lambda s: s[2:], gn_desc(target, 'public')) + script = map(lambda s: s[2:], gn_desc(target, 'script')) + return sources + inputs + public + script def find_on_disk(path):