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

Side by Side Diff: build/java.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 unified diff | Download patch
« no previous file with comments | « build/config/android/rules.gni ('k') | build/java_apk.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 'additional_src_dirs': [], 57 'additional_src_dirs': [],
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 'instr_stamp': '<(intermediate_dir)/instr.stamp', 64 'instr_stamp': '<(intermediate_dir)/instr.stamp',
65 'additional_input_paths': [], 65 'additional_input_paths': [],
66 'dex_path': '<(PRODUCT_DIR)/lib.java/<(_target_name).dex.jar', 66 'dex_path': '<(PRODUCT_DIR)/lib.java/<(_target_name).dex.jar',
67 'main_dex_list_path': '<(intermediate_dir)/main_dex_list.txt',
67 'generated_src_dirs': ['>@(generated_R_dirs)'], 68 'generated_src_dirs': ['>@(generated_R_dirs)'],
68 'generated_R_dirs': [], 69 'generated_R_dirs': [],
69 'has_java_resources%': 0, 70 'has_java_resources%': 0,
70 'res_extra_dirs': [], 71 'res_extra_dirs': [],
71 'res_extra_files': [], 72 'res_extra_files': [],
72 'res_v14_skip%': 0, 73 'res_v14_skip%': 0,
73 'resource_input_paths': ['>@(res_extra_files)'], 74 'resource_input_paths': ['>@(res_extra_files)'],
74 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', 75 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)',
75 'compile_stamp': '<(intermediate_dir)/compile.stamp', 76 'compile_stamp': '<(intermediate_dir)/compile.stamp',
76 'lint_stamp': '<(intermediate_dir)/lint.stamp', 77 'lint_stamp': '<(intermediate_dir)/lint.stamp',
(...skipping 29 matching lines...) Expand all
106 'javac_jar_path': '<(javac_jar_path)', 107 'javac_jar_path': '<(javac_jar_path)',
107 }, 108 },
108 'conditions': [ 109 'conditions': [
109 ['add_to_dependents_classpaths == 1', { 110 ['add_to_dependents_classpaths == 1', {
110 # This all_dependent_settings is used for java targets only. This will add the 111 # This all_dependent_settings is used for java targets only. This will add the
111 # jar path to the classpath of dependent java targets. 112 # jar path to the classpath of dependent java targets.
112 'all_dependent_settings': { 113 'all_dependent_settings': {
113 'variables': { 114 'variables': {
114 'input_jars_paths': ['<(jar_final_path)'], 115 'input_jars_paths': ['<(jar_final_path)'],
115 'library_dexed_jars_paths': ['<(dex_path)'], 116 'library_dexed_jars_paths': ['<(dex_path)'],
117 'main_dex_list_paths': ['<(main_dex_list_path)'],
116 }, 118 },
117 }, 119 },
118 }], 120 }],
119 ['has_java_resources == 1', { 121 ['has_java_resources == 1', {
120 'variables': { 122 'variables': {
121 'resource_dir': '<(java_in_dir)/res', 123 'resource_dir': '<(java_in_dir)/res',
122 'res_input_dirs': ['<(resource_dir)', '<@(res_extra_dirs)'], 124 'res_input_dirs': ['<(resource_dir)', '<@(res_extra_dirs)'],
123 'resource_input_paths': ['<!@(find <(resource_dir) -type f)'], 125 'resource_input_paths': ['<!@(find <(resource_dir) -type f)'],
124 126
125 'R_dir': '<(intermediate_dir)/java_R', 127 'R_dir': '<(intermediate_dir)/java_R',
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 '--javac-includes=<(javac_includes)', 304 '--javac-includes=<(javac_includes)',
303 '--chromium-code=<(chromium_code)', 305 '--chromium-code=<(chromium_code)',
304 '--jar-path=<(javac_jar_path)', 306 '--jar-path=<(javac_jar_path)',
305 '--jar-excluded-classes=<(jar_excluded_classes)', 307 '--jar-excluded-classes=<(jar_excluded_classes)',
306 '--stamp=<(compile_stamp)', 308 '--stamp=<(compile_stamp)',
307 '>@(java_sources)', 309 '>@(java_sources)',
308 '<@(extra_args)', 310 '<@(extra_args)',
309 ] 311 ]
310 }, 312 },
311 { 313 {
314 'action_name': 'main_dex_list_for_<(_target_name)',
315 'variables': {
316 'jar_path': '<(javac_jar_path)',
317 'output_path': '<(main_dex_list_path)',
318 },
319 'includes': [ 'android/main_dex_action.gypi' ],
320 },
321 {
312 'action_name': 'instr_jar_<(_target_name)', 322 'action_name': 'instr_jar_<(_target_name)',
313 'message': 'Instrumenting <(_target_name) jar', 323 'message': 'Instrumenting <(_target_name) jar',
314 'variables': { 324 'variables': {
315 'input_path': '<(jar_path)', 325 'input_path': '<(jar_path)',
316 'output_path': '<(jar_final_path)', 326 'output_path': '<(jar_final_path)',
317 'stamp_path': '<(instr_stamp)', 327 'stamp_path': '<(instr_stamp)',
318 'instr_type': 'jar', 328 'instr_type': 'jar',
319 }, 329 },
320 'outputs': [ 330 'outputs': [
321 '<(jar_final_path)', 331 '<(jar_final_path)',
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 'dex_no_locals': 1, 381 'dex_no_locals': 1,
372 }], 382 }],
373 ], 383 ],
374 'dex_input_paths': [ '<(jar_final_path)' ], 384 'dex_input_paths': [ '<(jar_final_path)' ],
375 'output_path': '<(dex_path)', 385 'output_path': '<(dex_path)',
376 }, 386 },
377 'includes': [ 'android/dex_action.gypi' ], 387 'includes': [ 'android/dex_action.gypi' ],
378 }, 388 },
379 ], 389 ],
380 } 390 }
OLDNEW
« no previous file with comments | « build/config/android/rules.gni ('k') | build/java_apk.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698