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

Side by Side Diff: build/java_apk.gypi

Issue 1465383003: [Android] Add ChromiumNetTestSupport.apk for the java EmbeddedTestServer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +landmine for GN Created 5 years 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 Android APKs in a consistent manner. 6 # to build Android APKs 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_apk', 10 # 'target_name': 'my_package_apk',
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 'tested_apk_dex_path%': '/', 78 'tested_apk_dex_path%': '/',
79 'tested_apk_is_multidex%': 0, 79 'tested_apk_is_multidex%': 0,
80 'additional_input_paths': [], 80 'additional_input_paths': [],
81 'additional_locale_input_paths': [], 81 'additional_locale_input_paths': [],
82 'create_density_splits%': 0, 82 'create_density_splits%': 0,
83 'language_splits': [], 83 'language_splits': [],
84 'library_jars_paths': [], 84 'library_jars_paths': [],
85 'input_jars_paths': [], 85 'input_jars_paths': [],
86 'library_dexed_jars_paths': [], 86 'library_dexed_jars_paths': [],
87 'additional_src_dirs': [], 87 'additional_src_dirs': [],
88 'generated_src_dirs': [], 88 'generated_src_dirs': [ '<(native_libraries_java_dir)' ],
89 'app_manifest_version_name%': '<(android_app_version_name)', 89 'app_manifest_version_name%': '<(android_app_version_name)',
90 'app_manifest_version_code%': '<(android_app_version_code)', 90 'app_manifest_version_code%': '<(android_app_version_code)',
91 # aapt generates this proguard.txt. 91 # aapt generates this proguard.txt.
92 'generated_proguard_file': '<(intermediate_dir)/proguard.txt', 92 'generated_proguard_file': '<(intermediate_dir)/proguard.txt',
93 'proguard_enabled%': 'false', 93 'proguard_enabled%': 'false',
94 'debug_build_proguard_enabled%': 'false', 94 'debug_build_proguard_enabled%': 'false',
95 'proguard_flags_paths': ['<(generated_proguard_file)'], 95 'proguard_flags_paths': ['<(generated_proguard_file)'],
96 'jar_name': 'chromium_apk_<(_target_name).jar', 96 'jar_name': 'chromium_apk_<(_target_name).jar',
97 'resource_dir%':'<(DEPTH)/build/android/ant/empty/res', 97 'resource_dir%':'<(DEPTH)/build/android/ant/empty/res',
98 'R_package%':'', 98 'R_package%':'',
99 'include_all_resources%': 0, 99 'include_all_resources%': 0,
100 'additional_R_text_files': [], 100 'additional_R_text_files': [],
101 'dependencies_locale_zip_alternative_paths%': [], 101 'dependencies_locale_zip_alternative_paths%': [],
102 'dependencies_locale_zip_paths': [], 102 'dependencies_locale_zip_paths': [],
103 'dependencies_res_zip_paths': [], 103 'dependencies_res_zip_paths': [],
104 'additional_res_packages': [], 104 'additional_res_packages': [],
105 'additional_bundled_libs%': [], 105 'additional_bundled_libs%': [],
106 'is_test_apk%': 0, 106 'is_test_apk%': 0,
107 # Allow icu data, v8 snapshots, and pak files to be loaded directly from the .apk. 107 # Allow icu data, v8 snapshots, and pak files to be loaded directly from the .apk.
108 # Note: These are actually suffix matches, not necessarily extensions. 108 # Note: These are actually suffix matches, not necessarily extensions.
109 'extensions_to_not_compress%': '.dat,.bin,.pak', 109 'extensions_to_not_compress%': '.dat,.bin,.pak',
110 'resource_input_paths': [], 110 'resource_input_paths': [],
111 'intermediate_dir': '<(PRODUCT_DIR)/<(_target_name)', 111 'intermediate_dir': '<(PRODUCT_DIR)/<(_target_name)',
112 'asset_location%': '<(intermediate_dir)/assets', 112 'asset_location%': '<(intermediate_dir)/assets',
113 'codegen_stamp': '<(intermediate_dir)/codegen.stamp', 113 'codegen_stamp': '<(intermediate_dir)/codegen.stamp',
114 'package_input_paths': [], 114 'package_input_paths': [],
115 'ordered_libraries_file': '<(intermediate_dir)/native_libraries.json', 115 'ordered_libraries_file': '<(intermediate_dir)/native_libraries.json',
116 'additional_ordered_libraries_file': '<(intermediate_dir)/additional_native_ libraries.json', 116 'additional_ordered_libraries_file': '<(intermediate_dir)/additional_native_ libraries.json',
117 'native_libraries_template': '<(DEPTH)/base/android/java/templates/NativeLib raries.template',
118 'native_libraries_java_dir': '<(intermediate_dir)/native_libraries_java/', 117 'native_libraries_java_dir': '<(intermediate_dir)/native_libraries_java/',
119 'native_libraries_java_file': '<(native_libraries_java_dir)/NativeLibraries. java',
120 'native_libraries_java_stamp': '<(intermediate_dir)/native_libraries_java.st amp', 118 'native_libraries_java_stamp': '<(intermediate_dir)/native_libraries_java.st amp',
121 'native_libraries_template_data_dir': '<(intermediate_dir)/native_libraries/ ', 119 'native_libraries_template_data_dir': '<(intermediate_dir)/native_libraries/ ',
122 'native_libraries_template_data_file': '<(native_libraries_template_data_dir )/native_libraries_array.h', 120 'native_libraries_template_data_file': '<(native_libraries_template_data_dir )/native_libraries_array.h',
123 'native_libraries_template_version_file': '<(native_libraries_template_data_ dir)/native_libraries_version.h', 121 'native_libraries_template_version_file': '<(native_libraries_template_data_ dir)/native_libraries_version.h',
124 'compile_stamp': '<(intermediate_dir)/compile.stamp', 122 'compile_stamp': '<(intermediate_dir)/compile.stamp',
125 'lint_stamp': '<(intermediate_dir)/lint.stamp', 123 'lint_stamp': '<(intermediate_dir)/lint.stamp',
126 'lint_result': '<(intermediate_dir)/lint_result.xml', 124 'lint_result': '<(intermediate_dir)/lint_result.xml',
127 'lint_config': '<(intermediate_dir)/lint_config.xml', 125 'lint_config': '<(intermediate_dir)/lint_config.xml',
128 'never_lint%': 0, 126 'never_lint%': 0,
129 'findbugs_stamp': '<(intermediate_dir)/findbugs.stamp', 127 'findbugs_stamp': '<(intermediate_dir)/findbugs.stamp',
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 'unsigned_apk_path': '<(intermediate_dir)/<(apk_name)-unsigned.apk', 173 'unsigned_apk_path': '<(intermediate_dir)/<(apk_name)-unsigned.apk',
176 'unsigned_abi_split_apk_path': '<(intermediate_dir)/<(apk_name)-abi-<(an droid_app_abi)-unsigned.apk', 174 'unsigned_abi_split_apk_path': '<(intermediate_dir)/<(apk_name)-abi-<(an droid_app_abi)-unsigned.apk',
177 'create_abi_split%': 0, 175 'create_abi_split%': 0,
178 'enable_multidex%': 0, 176 'enable_multidex%': 0,
179 }, 177 },
180 'unsigned_apk_path': '<(unsigned_apk_path)', 178 'unsigned_apk_path': '<(unsigned_apk_path)',
181 'unsigned_abi_split_apk_path': '<(unsigned_abi_split_apk_path)', 179 'unsigned_abi_split_apk_path': '<(unsigned_abi_split_apk_path)',
182 'create_abi_split%': '<(create_abi_split)', 180 'create_abi_split%': '<(create_abi_split)',
183 'final_apk_path%': '<(PRODUCT_DIR)/apks/<(apk_name).apk', 181 'final_apk_path%': '<(PRODUCT_DIR)/apks/<(apk_name).apk',
184 'conditions': [ 182 'conditions': [
183 ['is_test_apk == 1', {
184 'native_libraries_template': '<(DEPTH)/base/test/android/java/template s/NativeTestLibraries.template',
185 'native_libraries_java_file_name': 'NativeTestLibraries.java',
186 }, {
187 'native_libraries_template': '<(DEPTH)/base/android/java/templates/Nat iveLibraries.template',
188 'native_libraries_java_file_name': 'NativeLibraries.java',
189 }],
185 ['gyp_managed_install == 1 and native_lib_target != ""', { 190 ['gyp_managed_install == 1 and native_lib_target != ""', {
186 'conditions': [ 191 'conditions': [
187 ['create_abi_split == 0', { 192 ['create_abi_split == 0', {
188 'unsigned_standalone_apk_path': '<(intermediate_dir)/<(apk_name)-s tandalone-unsigned.apk', 193 'unsigned_standalone_apk_path': '<(intermediate_dir)/<(apk_name)-s tandalone-unsigned.apk',
189 }, { 194 }, {
190 'unsigned_standalone_apk_path': '<(intermediate_dir)/<(apk_name)-a bi-<(android_app_abi)-standalone-unsigned.apk', 195 'unsigned_standalone_apk_path': '<(intermediate_dir)/<(apk_name)-a bi-<(android_app_abi)-standalone-unsigned.apk',
191 }], 196 }],
192 ], 197 ],
193 }, { 198 }, {
194 'unsigned_standalone_apk_path': '<(unsigned_apk_path)', 199 'unsigned_standalone_apk_path': '<(unsigned_apk_path)',
(...skipping 17 matching lines...) Expand all
212 }], 217 }],
213 ['enable_multidex == 1', { 218 ['enable_multidex == 1', {
214 'dex_path': '<(intermediate_dir)/classes.dex.zip', 219 'dex_path': '<(intermediate_dir)/classes.dex.zip',
215 }, { 220 }, {
216 'dex_path': '<(intermediate_dir)/classes.dex', 221 'dex_path': '<(intermediate_dir)/classes.dex',
217 }], 222 }],
218 ], 223 ],
219 }, 224 },
220 'native_lib_target%': '', 225 'native_lib_target%': '',
221 'native_lib_version_name%': '', 226 'native_lib_version_name%': '',
227 'native_libraries_template': '<(native_libraries_template)',
228 'native_libraries_java_file': '<(native_libraries_java_dir)/<(native_librari es_java_file_name)',
222 'use_chromium_linker%' : 0, 229 'use_chromium_linker%' : 0,
223 'load_library_from_zip%' : 0, 230 'load_library_from_zip%' : 0,
224 'use_relocation_packer%' : 0, 231 'use_relocation_packer%' : 0,
225 'enable_chromium_linker_tests%': 0, 232 'enable_chromium_linker_tests%': 0,
226 'emma_instrument%': '<(emma_instrument)', 233 'emma_instrument%': '<(emma_instrument)',
227 'apk_package_native_libs_dir': '<(apk_package_native_libs_dir)', 234 'apk_package_native_libs_dir': '<(apk_package_native_libs_dir)',
228 'unsigned_standalone_apk_path': '<(unsigned_standalone_apk_path)', 235 'unsigned_standalone_apk_path': '<(unsigned_standalone_apk_path)',
229 'unsigned_apk_path': '<(unsigned_apk_path)', 236 'unsigned_apk_path': '<(unsigned_apk_path)',
230 'unsigned_abi_split_apk_path': '<(unsigned_abi_split_apk_path)', 237 'unsigned_abi_split_apk_path': '<(unsigned_abi_split_apk_path)',
231 'create_abi_split%': '<(create_abi_split)', 238 'create_abi_split%': '<(create_abi_split)',
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 'chromium_linker_path': [ 317 'chromium_linker_path': [
311 '<(SHARED_LIB_DIR)/<(libchromium_android_linker)', 318 '<(SHARED_LIB_DIR)/<(libchromium_android_linker)',
312 ], 319 ],
313 } 320 }
314 }, { 321 }, {
315 'variables': { 322 'variables': {
316 'chromium_linker_path': [], 323 'chromium_linker_path': [],
317 }, 324 },
318 }], 325 }],
319 ], 326 ],
320 'generated_src_dirs': [ '<(native_libraries_java_dir)' ],
321 'native_libs_paths': [ 327 'native_libs_paths': [
322 '<(SHARED_LIB_DIR)/<(native_lib_target).>(android_product_extension)', 328 '<(SHARED_LIB_DIR)/<(native_lib_target).>(android_product_extension)',
323 '<@(chromium_linker_path)' 329 '<@(chromium_linker_path)'
324 ], 330 ],
325 'package_input_paths': [ 331 'package_input_paths': [
326 '<(apk_package_native_libs_dir)/<(android_app_abi)/gdbserver', 332 '<(apk_package_native_libs_dir)/<(android_app_abi)/gdbserver',
327 ], 333 ],
328 }, 334 },
329 'copies': [ 335 'copies': [
330 { 336 {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 '<(DEPTH)/build/android/gyp/util/build_utils.py', 402 '<(DEPTH)/build/android/gyp/util/build_utils.py',
397 '<(DEPTH)/build/android/gyp/gcc_preprocess.py', 403 '<(DEPTH)/build/android/gyp/gcc_preprocess.py',
398 '<(ordered_libraries_file)', 404 '<(ordered_libraries_file)',
399 '<(native_libraries_template)', 405 '<(native_libraries_template)',
400 ], 406 ],
401 'outputs': [ 407 'outputs': [
402 '<(native_libraries_java_stamp)', 408 '<(native_libraries_java_stamp)',
403 ], 409 ],
404 'action': [ 410 'action': [
405 'python', '<(DEPTH)/build/android/gyp/gcc_preprocess.py', 411 'python', '<(DEPTH)/build/android/gyp/gcc_preprocess.py',
406 '--include-path=', 412 '--include-path=<(DEPTH)',
407 '--output=<(native_libraries_java_file)', 413 '--output=<(native_libraries_java_file)',
408 '--template=<(native_libraries_template)', 414 '--template=<(native_libraries_template)',
409 '--stamp=<(native_libraries_java_stamp)', 415 '--stamp=<(native_libraries_java_stamp)',
410 '--defines', 'NATIVE_LIBRARIES_LIST=@FileArg(<(ordered_libraries_fil e):java_libraries_list)', 416 '--defines', 'NATIVE_LIBRARIES_LIST=@FileArg(<(ordered_libraries_fil e):java_libraries_list)',
411 '--defines', 'NATIVE_LIBRARIES_VERSION_NUMBER="<(native_lib_version_ name)"', 417 '--defines', 'NATIVE_LIBRARIES_VERSION_NUMBER="<(native_lib_version_ name)"',
412 '<@(gcc_preprocess_defines)', 418 '<@(gcc_preprocess_defines)',
413 ], 419 ],
414 }, 420 },
415 { 421 {
416 'action_name': 'strip_native_libraries', 422 'action_name': 'strip_native_libraries',
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 # gyp_managed_install != 1 582 # gyp_managed_install != 1
577 'variables': { 583 'variables': {
578 'libraries_source_dir': '<(apk_package_native_libs_dir)/<(android_ap p_abi)', 584 'libraries_source_dir': '<(apk_package_native_libs_dir)/<(android_ap p_abi)',
579 'package_input_paths': [ 585 'package_input_paths': [
580 '<(strip_additional_stamp)', 586 '<(strip_additional_stamp)',
581 '<(pack_relocations_stamp)', 587 '<(pack_relocations_stamp)',
582 ], 588 ],
583 }, 589 },
584 }], 590 }],
585 ], 591 ],
592 }, {
593 'actions': [
594 {
595 'action_name': 'empty_native_libraries_<(_target_name)',
596 'message': 'Creating empty NativeLibraries.java for <(_target_name)',
597 'inputs': [
598 '<(DEPTH)/build/android/gyp/util/build_utils.py',
599 '<(DEPTH)/build/android/gyp/gcc_preprocess.py',
600 '<(native_libraries_template)',
601 ],
602 'outputs': [
603 '<(native_libraries_java_stamp)',
604 ],
605 'action': [
606 'python', '<(DEPTH)/build/android/gyp/gcc_preprocess.py',
607 '--include-path=<(DEPTH)',
608 '--output=<(native_libraries_java_file)',
609 '--template=<(native_libraries_template)',
610 '--stamp=<(native_libraries_java_stamp)',
611 ],
612 },
613 ],
586 }], # native_lib_target != '' 614 }], # native_lib_target != ''
587 ['gyp_managed_install == 0 or create_standalone_apk == 1 or create_abi_split == 1', { 615 ['gyp_managed_install == 0 or create_standalone_apk == 1 or create_abi_split == 1', {
588 'dependencies': [ 616 'dependencies': [
589 '<(DEPTH)/build/android/rezip.gyp:rezip_apk_jar', 617 '<(DEPTH)/build/android/rezip.gyp:rezip_apk_jar',
590 ], 618 ],
591 }], 619 }],
592 ['create_abi_split == 1 or gyp_managed_install == 0 or create_standalone_apk == 1', { 620 ['create_abi_split == 1 or gyp_managed_install == 0 or create_standalone_apk == 1', {
593 'actions': [ 621 'actions': [
594 { 622 {
595 'action_name': 'finalize_base', 623 'action_name': 'finalize_base',
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
1207 'native_libs_dir': '<(apk_package_native_libs_dir)', 1235 'native_libs_dir': '<(apk_package_native_libs_dir)',
1208 }, { 1236 }, {
1209 'native_libs_dir': '<(DEPTH)/build/android/ant/empty/res', 1237 'native_libs_dir': '<(DEPTH)/build/android/ant/empty/res',
1210 }], 1238 }],
1211 ], 1239 ],
1212 }, 1240 },
1213 'includes': ['android/apkbuilder_action.gypi'], 1241 'includes': ['android/apkbuilder_action.gypi'],
1214 }, 1242 },
1215 ], 1243 ],
1216 } 1244 }
OLDNEW
« build/get_landmines.py ('K') | « build/get_landmines.py ('k') | net/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698