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

Unified Diff: build/java_apk.gypi

Issue 313273004: Make test apks only dex files not in tested apk (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/dex.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/java_apk.gypi
diff --git a/build/java_apk.gypi b/build/java_apk.gypi
index aab83793050e5e539848be9cf1a083a9cce84ede..13d67e7f084bc0dc873ffc15b76a3ef1fbe7e8fa 100644
--- a/build/java_apk.gypi
+++ b/build/java_apk.gypi
@@ -52,6 +52,7 @@
# never_lint - Set to 1 to not run lint on this target.
{
'variables': {
+ 'tested_apk_dex_path%': '/',
'additional_input_paths': [],
'input_jars_paths': [],
'library_dexed_jars_paths': [],
@@ -150,6 +151,7 @@
'apk_package_native_libs_dir': '<(apk_package_native_libs_dir)',
'unsigned_standalone_apk_path': '<(unsigned_standalone_apk_path)',
'extra_native_libs': [],
+ 'apk_dex_input_paths': [ '>@(library_dexed_jars_paths)' ],
},
# Pass the jar path to the apk's "fake" jar target. This would be better as
# direct_dependent_settings, but a variable set by a direct_dependent_settings
@@ -157,6 +159,7 @@
'all_dependent_settings': {
'variables': {
'apk_output_jar_path': '<(jar_path)',
+ 'tested_apk_dex_path': '<(dex_path)',
},
},
'conditions': [
@@ -663,20 +666,37 @@
{
'action_name': 'dex_<(_target_name)',
'variables': {
- 'conditions': [
- ['emma_instrument != 0', {
- 'dex_no_locals': 1,
- 'dex_input_paths': [ '<(emma_device_jar)' ],
- }],
- ],
- 'dex_input_paths': [ '>@(library_dexed_jars_paths)' ],
- 'dex_generated_input_dirs': [ '<(classes_final_dir)' ],
'output_path': '<(dex_path)',
+ 'dex_input_paths': [
+ '>@(apk_dex_input_paths)',
+ '<(jar_path)',
+ ],
'proguard_enabled_input_path': '<(obfuscated_jar_path)',
},
+ 'target_conditions': [
+ ['emma_instrument != 0', {
+ 'dex_no_locals': 1,
+ 'dex_input_paths': [
+ '<(emma_device_jar)'
+ ],
+ }],
+ ['is_test_apk == 1 and tested_apk_dex_path != "/"', {
+ 'variables': {
+ 'dex_additional_options': [
+ '--excluded-paths-file', '>(tested_apk_dex_path).inputs'
+ ],
+ },
+ 'inputs': [
+ '>(tested_apk_dex_path).inputs',
+ ],
+ }],
+ ],
'conditions': [
- ['proguard_enabled == "true"', { 'inputs': [ '<(obfuscate_stamp)' ] },
- { 'inputs': [ '<(instr_stamp)' ] }],
+ ['proguard_enabled == "true"', {
+ 'inputs': [ '<(obfuscate_stamp)' ]
+ }, {
+ 'inputs': [ '<(instr_stamp)' ]
+ }],
],
'includes': [ 'android/dex_action.gypi' ],
},
« no previous file with comments | « build/android/gyp/dex.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698