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

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: yfriedman comments 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
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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 '--javac-includes=<(javac_includes)', 292 '--javac-includes=<(javac_includes)',
291 '--chromium-code=<(chromium_code)', 293 '--chromium-code=<(chromium_code)',
292 '--jar-path=<(javac_jar_path)', 294 '--jar-path=<(javac_jar_path)',
293 '--jar-excluded-classes=<(jar_excluded_classes)', 295 '--jar-excluded-classes=<(jar_excluded_classes)',
294 '--stamp=<(compile_stamp)', 296 '--stamp=<(compile_stamp)',
295 '>@(java_sources)', 297 '>@(java_sources)',
296 '<@(extra_args)', 298 '<@(extra_args)',
297 ] 299 ]
298 }, 300 },
299 { 301 {
302 'action_name': 'main_dex_list_for_<(_target_name)',
303 'variables': {
304 'main_dex_list_script': '<(DEPTH)/build/android/gyp/main_dex_list.py',
305 'main_dex_rules_file': '<(DEPTH)/build/android/main_dex_classes.flags',
306 },
307 'inputs': [
308 '<(javac_jar_path)',
309 '<(main_dex_list_script)',
310 '<(main_dex_rules_file)',
311 ],
312 'outputs': [
313 '<(main_dex_list_path)',
314 ],
315 'action': [
316 'python', '<(main_dex_list_script)',
317 '--main-dex-list-path', '<(main_dex_list_path)',
318 '--main-dex-rules-path', '<(main_dex_rules_file)',
319 '<(javac_jar_path)',
320 ],
321 },
322 {
300 'action_name': 'instr_jar_<(_target_name)', 323 'action_name': 'instr_jar_<(_target_name)',
301 'message': 'Instrumenting <(_target_name) jar', 324 'message': 'Instrumenting <(_target_name) jar',
302 'variables': { 325 'variables': {
303 'input_path': '<(jar_path)', 326 'input_path': '<(jar_path)',
304 'output_path': '<(jar_final_path)', 327 'output_path': '<(jar_final_path)',
305 'stamp_path': '<(instr_stamp)', 328 'stamp_path': '<(instr_stamp)',
306 'instr_type': 'jar', 329 'instr_type': 'jar',
307 }, 330 },
308 'outputs': [ 331 'outputs': [
309 '<(jar_final_path)', 332 '<(jar_final_path)',
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 'dex_no_locals': 1, 382 'dex_no_locals': 1,
360 }], 383 }],
361 ], 384 ],
362 'dex_input_paths': [ '<(jar_final_path)' ], 385 'dex_input_paths': [ '<(jar_final_path)' ],
363 'output_path': '<(dex_path)', 386 'output_path': '<(dex_path)',
364 }, 387 },
365 'includes': [ 'android/dex_action.gypi' ], 388 'includes': [ 'android/dex_action.gypi' ],
366 }, 389 },
367 ], 390 ],
368 } 391 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698