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

Side by Side Diff: build/java.gypi

Issue 22831044: Adds ability to exclude java libraries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 | « no previous file | third_party/cacheinvalidation/cacheinvalidation.gyp » ('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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 'res_v14_verify_only%': 0, 71 'res_v14_verify_only%': 0,
72 'resource_input_paths': ['>@(res_extra_files)'], 72 'resource_input_paths': ['>@(res_extra_files)'],
73 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)', 73 'intermediate_dir': '<(SHARED_INTERMEDIATE_DIR)/<(_target_name)',
74 'classes_dir': '<(intermediate_dir)/classes', 74 'classes_dir': '<(intermediate_dir)/classes',
75 'compile_stamp': '<(intermediate_dir)/compile.stamp', 75 'compile_stamp': '<(intermediate_dir)/compile.stamp',
76 'proguard_config%': '', 76 'proguard_config%': '',
77 'proguard_preprocess%': '0', 77 'proguard_preprocess%': '0',
78 'variables': { 78 'variables': {
79 'variables': { 79 'variables': {
80 'proguard_preprocess%': 0, 80 'proguard_preprocess%': 0,
81 'emma_never_instrument%': 0,
81 }, 82 },
82 'conditions': [ 83 'conditions': [
83 ['proguard_preprocess == 1', { 84 ['proguard_preprocess == 1', {
84 'javac_jar_path': '<(intermediate_dir)/<(_target_name).pre.jar' 85 'javac_jar_path': '<(intermediate_dir)/<(_target_name).pre.jar'
85 }, { 86 }, {
86 'javac_jar_path': '<(jar_path)' 87 'javac_jar_path': '<(jar_path)'
87 }], 88 }],
89 ['chromium_code != 0 and emma_coverage != 0 and emma_never_instrument == 0', {
90 'emma_instrument': 1,
91 }, {
92 'emma_instrument': 0,
93 }],
88 ], 94 ],
89 }, 95 },
96 'emma_instrument': '<(emma_instrument)',
90 'javac_jar_path': '<(javac_jar_path)', 97 'javac_jar_path': '<(javac_jar_path)',
91 'conditions': [
92 ['chromium_code != 0 and emma_coverage != 0', {
93 'emma_instrument': 1,
94 }, {
95 'emma_instrument': 0,
96 }],
97 ],
98 }, 98 },
99 # This all_dependent_settings is used for java targets only. This will add the 99 # This all_dependent_settings is used for java targets only. This will add the
100 # jar path to the classpath of dependent java targets. 100 # jar path to the classpath of dependent java targets.
101 'all_dependent_settings': { 101 'all_dependent_settings': {
102 'variables': { 102 'variables': {
103 'input_jars_paths': ['<(jar_final_path)'], 103 'input_jars_paths': ['<(jar_final_path)'],
104 'library_dexed_jars_paths': ['<(dex_path)'], 104 'library_dexed_jars_paths': ['<(dex_path)'],
105 }, 105 },
106 }, 106 },
107 'conditions': [ 107 'conditions': [
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 'dex_no_locals': 1, 375 'dex_no_locals': 1,
376 }], 376 }],
377 ], 377 ],
378 'dex_input_paths': [ '<(jar_final_path)' ], 378 'dex_input_paths': [ '<(jar_final_path)' ],
379 'output_path': '<(dex_path)', 379 'output_path': '<(dex_path)',
380 }, 380 },
381 'includes': [ 'android/dex_action.gypi' ], 381 'includes': [ 'android/dex_action.gypi' ],
382 }, 382 },
383 ], 383 ],
384 } 384 }
OLDNEW
« no previous file with comments | « no previous file | third_party/cacheinvalidation/cacheinvalidation.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698