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

Unified Diff: sky/engine/bindings-dart/dart/gyp/scripts/dart_html_lib_deps.py

Issue 875013003: Import Dart bindings as of Blink r188698. This merely copies the files over and does not attach any… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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
Index: sky/engine/bindings-dart/dart/gyp/scripts/dart_html_lib_deps.py
diff --git a/sky/tools/lint_test_expectations b/sky/engine/bindings-dart/dart/gyp/scripts/dart_html_lib_deps.py
old mode 100755
new mode 100644
similarity index 63%
copy from sky/tools/lint_test_expectations
copy to sky/engine/bindings-dart/dart/gyp/scripts/dart_html_lib_deps.py
index c56eb77dbb04628a711330f4a0c63dfd55f8343a..ff534f0dec08fd619862944877304abed3226bc1
--- a/sky/tools/lint_test_expectations
+++ b/sky/engine/bindings-dart/dart/gyp/scripts/dart_html_lib_deps.py
@@ -1,4 +1,5 @@
-#!/usr/bin/env python
+#!/usr/bin/python
+#
# Copyright (C) 2012 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -26,12 +27,39 @@
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# Copyright (c) 2012 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.
+
+import fnmatch
+import os
import sys
-from webkitpy.common import version_check
-from webkitpy.layout_tests import lint_test_expectations
+def printAllFilesRecursively(directory, pattern):
+ def matches(basename): return fnmatch.fnmatch(basename, pattern)
+ for root, _, files in os.walk(directory):
+ for basename in filter(matches, files):
+ # gyp operates correctly only on /, not Windows \.
+ print os.path.join(root, basename).replace(os.sep, '/')
+
+
+
+def main(args):
+ dart_html_lib_dir = args[1]
+
+ deps = [
+ ('idl', '*.idl'),
+ ('scripts', '*.py'),
+ ('src', '*.dart'),
+ ('templates', '*.*template'),
+ ]
+
+ for directory, pattern in deps:
+ printAllFilesRecursively(os.path.join(dart_html_lib_dir, directory), pattern)
-sys.exit(lint_test_expectations.main(sys.argv[1:], sys.stdout, sys.stderr))
+if __name__ == '__main__':
+ sys.exit(main(sys.argv))

Powered by Google App Engine
This is Rietveld 408576698