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

Unified Diff: build/java_prebuilt.gypi

Issue 734793002: Fix "Class resolved by unexpected DEX" in uiautomator tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add neverlink variable Created 6 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/java_prebuilt.gypi
diff --git a/build/java_prebuilt.gypi b/build/java_prebuilt.gypi
index a3a8cc0c1c7e7c31ac5b3bea5bb2ab752070e2c3..8efc4ef7f4d17aa153368c6b931b103be966aa6a 100644
--- a/build/java_prebuilt.gypi
+++ b/build/java_prebuilt.gypi
@@ -27,6 +27,7 @@
'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)',
'android_jar': '<(android_sdk)/android.jar',
'input_jars_paths': [ '<(android_jar)' ],
+ 'neverlink%': 0,
'proguard_config%': '',
'proguard_preprocess%': '0',
'variables': {
@@ -46,7 +47,13 @@
'all_dependent_settings': {
'variables': {
'input_jars_paths': ['<(dex_input_jar_path)'],
- 'library_dexed_jars_paths': ['<(dex_path)'],
+ 'conditions': [
+ ['neverlink == 1', {
+ 'library_dexed_jars_paths': [],
+ }, {
+ 'library_dexed_jars_paths': ['<(dex_path)'],
+ }],
+ ],
},
},
'conditions' : [
@@ -76,18 +83,20 @@
},
],
}],
- ],
- 'actions': [
- {
- 'action_name': 'dex_<(_target_name)',
- 'message': 'Dexing <(_target_name) jar',
- 'variables': {
- 'dex_input_paths': [
- '<(dex_input_jar_path)',
- ],
- 'output_path': '<(dex_path)',
- },
- 'includes': [ 'android/dex_action.gypi' ],
- },
+ ['neverlink == 0', {
+ 'actions': [
+ {
+ 'action_name': 'dex_<(_target_name)',
+ 'message': 'Dexing <(_target_name) jar',
+ 'variables': {
+ 'dex_input_paths': [
+ '<(dex_input_jar_path)',
+ ],
+ 'output_path': '<(dex_path)',
+ },
+ 'includes': [ 'android/dex_action.gypi' ],
+ },
+ ],
+ }],
],
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698