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

Unified Diff: build/android/main_dex_action.gypi

Issue 1278573002: [Android] Add gyp support for multidex. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 4 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 | « build/android/gyp/main_dex_list.py ('k') | build/android/main_dex_classes.flags » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/main_dex_action.gypi
diff --git a/build/android/main_dex_action.gypi b/build/android/main_dex_action.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..06717ddcff61033f445597296aca597126ba2f36
--- /dev/null
+++ b/build/android/main_dex_action.gypi
@@ -0,0 +1,44 @@
+# Copyright 2015 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.
+
+# This file is meant to be included into an action to provide a rule that
+# generates a list of classes that must be kept in the main dex file.
+#
+# To use this, create a gyp target with the following form:
+# {
+# 'action_name': 'some name for the action'
+# 'actions': [
+# 'variables': {
+# 'jar_path': 'path to jar',
+# 'output_path': 'output path'
+# },
+# 'includes': [ 'relative/path/to/main_dex_action.gypi' ],
+# ],
+# },
+#
+
+{
+ 'message': 'Generating main dex classes list for <(jar_path)',
+ 'variables': {
+ 'jar_path%': '',
+ 'output_path%': '',
+ 'main_dex_list_script': '<(DEPTH)/build/android/gyp/main_dex_list.py',
+ 'main_dex_rules_path': '<(DEPTH)/build/android/main_dex_classes.flags',
+ },
+ 'inputs': [
+ '<(jar_path)',
+ '<(main_dex_list_script)',
+ '<(main_dex_rules_path)',
+ ],
+ 'outputs': [
+ '<(output_path)',
+ ],
+ 'action': [
+ 'python', '<(main_dex_list_script)',
+ '--main-dex-list-path', '<(output_path)',
+ '--android-sdk-tools', '<(android_sdk_tools)',
+ '--main-dex-rules-path', '<(main_dex_rules_path)',
+ '<(jar_path)',
+ ]
+}
« no previous file with comments | « build/android/gyp/main_dex_list.py ('k') | build/android/main_dex_classes.flags » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698