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

Unified Diff: build/android/dex.py

Issue 13432002: Add input content checking to some build scripts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | « no previous file | build/android/gyp/dex.py » ('j') | build/android/gyp/dex.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/dex.py
diff --git a/build/android/dex.py b/build/android/dex.py
deleted file mode 100755
index 00c2c527422bc96788ad7f2e8d0f8f1910fb46e8..0000000000000000000000000000000000000000
--- a/build/android/dex.py
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright 2013 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 optparse
-import os
-import sys
-
-from pylib import build_utils
-
-
-def DoDex(options, paths):
- dx_binary = os.path.join(options.android_sdk_root, 'platform-tools', 'dx')
- dex_cmd = [dx_binary, '--dex', '--output', options.dex_path] + paths
- build_utils.CheckCallDie(dex_cmd)
-
-
-def main(argv):
- parser = optparse.OptionParser()
- parser.add_option('--android-sdk-root', help='Android sdk root directory.')
- parser.add_option('--dex-path', help='Dex output path.')
- parser.add_option('--stamp', help='Path to touch on success.')
-
- # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja.
- parser.add_option('--ignore', help='Ignored.')
-
- options, paths = parser.parse_args()
-
- DoDex(options, paths)
-
- if options.stamp:
- build_utils.Touch(options.stamp)
-
-
-if __name__ == '__main__':
- sys.exit(main(sys.argv))
-
« no previous file with comments | « no previous file | build/android/gyp/dex.py » ('j') | build/android/gyp/dex.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698