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

Side by Side Diff: build/java.gypi

Issue 1408163009: [Android] Enable multidex for debug builds of ChromePublic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no-op ChromiumMultiDex.install for non-multidex builds Created 5 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 unified diff | Download patch
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # This file is meant to be included into a target to provide a rule 5 # This file is meant to be included into a target to provide a rule
6 # to build Java in a consistent manner. 6 # to build Java in a consistent manner.
7 # 7 #
8 # To use this, create a gyp target with the following form: 8 # To use this, create a gyp target with the following form:
9 # { 9 # {
10 # 'target_name': 'my-package_java', 10 # 'target_name': 'my-package_java',
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 'javac_includes': [], 58 'javac_includes': [],
59 'jar_name': '<(_target_name).jar', 59 'jar_name': '<(_target_name).jar',
60 'jar_dir': '<(PRODUCT_DIR)/lib.java', 60 'jar_dir': '<(PRODUCT_DIR)/lib.java',
61 'jar_path': '<(intermediate_dir)/<(jar_name)', 61 'jar_path': '<(intermediate_dir)/<(jar_name)',
62 'jar_final_path': '<(jar_dir)/<(jar_name)', 62 'jar_final_path': '<(jar_dir)/<(jar_name)',
63 'jar_excluded_classes': [ '*/R.class', '*/R##*.class' ], 63 'jar_excluded_classes': [ '*/R.class', '*/R##*.class' ],
64 'emma_instr_stamp': '<(intermediate_dir)/emma_instr.stamp', 64 'emma_instr_stamp': '<(intermediate_dir)/emma_instr.stamp',
65 'additional_input_paths': [], 65 'additional_input_paths': [],
66 'additional_locale_input_paths': [], 66 'additional_locale_input_paths': [],
67 'dex_path': '<(PRODUCT_DIR)/lib.java/<(_target_name).dex.jar', 67 'dex_path': '<(PRODUCT_DIR)/lib.java/<(_target_name).dex.jar',
68 'main_dex_list_path': '<(intermediate_dir)/main_dex_list.txt',
69 'generated_src_dirs': ['>@(generated_R_dirs)'], 68 'generated_src_dirs': ['>@(generated_R_dirs)'],
70 'generated_R_dirs': [], 69 'generated_R_dirs': [],
71 'has_java_resources%': 0, 70 'has_java_resources%': 0,
72 'res_extra_dirs': [], 71 'res_extra_dirs': [],
73 'res_extra_files': [], 72 'res_extra_files': [],
74 'res_v14_skip%': 0, 73 'res_v14_skip%': 0,
75 'resource_input_paths': ['>@(res_extra_files)'], 74 'resource_input_paths': ['>@(res_extra_files)'],
76 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', 75 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)',
77 'compile_stamp': '<(intermediate_dir)/compile.stamp', 76 'compile_stamp': '<(intermediate_dir)/compile.stamp',
78 'lint_stamp': '<(intermediate_dir)/lint.stamp', 77 'lint_stamp': '<(intermediate_dir)/lint.stamp',
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 'errorprone_exe_path': '<(PRODUCT_DIR)/bin.java/chromium_errorprone', 112 'errorprone_exe_path': '<(PRODUCT_DIR)/bin.java/chromium_errorprone',
114 }, 113 },
115 'conditions': [ 114 'conditions': [
116 ['add_to_dependents_classpaths == 1', { 115 ['add_to_dependents_classpaths == 1', {
117 # This all_dependent_settings is used for java targets only. This will add the 116 # This all_dependent_settings is used for java targets only. This will add the
118 # jar path to the classpath of dependent java targets. 117 # jar path to the classpath of dependent java targets.
119 'all_dependent_settings': { 118 'all_dependent_settings': {
120 'variables': { 119 'variables': {
121 'input_jars_paths': ['<(jar_final_path)'], 120 'input_jars_paths': ['<(jar_final_path)'],
122 'library_dexed_jars_paths': ['<(dex_path)'], 121 'library_dexed_jars_paths': ['<(dex_path)'],
123 'main_dex_list_paths': ['<(main_dex_list_path)'],
124 }, 122 },
125 }, 123 },
126 }], 124 }],
127 ['has_java_resources == 1', { 125 ['has_java_resources == 1', {
128 'variables': { 126 'variables': {
129 'resource_dir': '<(java_in_dir)/res', 127 'resource_dir': '<(java_in_dir)/res',
130 'res_input_dirs': ['<(resource_dir)', '<@(res_extra_dirs)'], 128 'res_input_dirs': ['<(resource_dir)', '<@(res_extra_dirs)'],
131 'resource_input_paths': ['<!@(find <(resource_dir) -type f)'], 129 'resource_input_paths': ['<!@(find <(resource_dir) -type f)'],
132 130
133 'R_dir': '<(intermediate_dir)/java_R', 131 'R_dir': '<(intermediate_dir)/java_R',
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 '--javac-includes=<(javac_includes)', 318 '--javac-includes=<(javac_includes)',
321 '--chromium-code=<(chromium_code)', 319 '--chromium-code=<(chromium_code)',
322 '--jar-path=<(javac_jar_path)', 320 '--jar-path=<(javac_jar_path)',
323 '--jar-excluded-classes=<(jar_excluded_classes)', 321 '--jar-excluded-classes=<(jar_excluded_classes)',
324 '--stamp=<(compile_stamp)', 322 '--stamp=<(compile_stamp)',
325 '>@(java_sources)', 323 '>@(java_sources)',
326 '<@(extra_args)', 324 '<@(extra_args)',
327 ] 325 ]
328 }, 326 },
329 { 327 {
330 'action_name': 'main_dex_list_for_<(_target_name)',
331 'variables': {
332 'jar_path': '<(javac_jar_path)',
333 'output_path': '<(main_dex_list_path)',
334 },
335 'includes': [ 'android/main_dex_action.gypi' ],
336 },
337 {
338 'action_name': 'emma_instr_jar_<(_target_name)', 328 'action_name': 'emma_instr_jar_<(_target_name)',
339 'message': 'Instrumenting <(_target_name) jar', 329 'message': 'Instrumenting <(_target_name) jar',
340 'variables': { 330 'variables': {
341 'input_path': '<(jar_path)', 331 'input_path': '<(jar_path)',
342 'output_path': '<(jar_final_path)', 332 'output_path': '<(jar_final_path)',
343 'stamp_path': '<(emma_instr_stamp)', 333 'stamp_path': '<(emma_instr_stamp)',
344 'instr_type': 'jar', 334 'instr_type': 'jar',
345 }, 335 },
346 'outputs': [ 336 'outputs': [
347 '<(jar_final_path)', 337 '<(jar_final_path)',
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 'dex_no_locals': 1, 387 'dex_no_locals': 1,
398 }], 388 }],
399 ], 389 ],
400 'dex_input_paths': [ '<(jar_final_path)' ], 390 'dex_input_paths': [ '<(jar_final_path)' ],
401 'output_path': '<(dex_path)', 391 'output_path': '<(dex_path)',
402 }, 392 },
403 'includes': [ 'android/dex_action.gypi' ], 393 'includes': [ 'android/dex_action.gypi' ],
404 }, 394 },
405 ], 395 ],
406 } 396 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698