1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
7 'native_lib_placeholders_file%': '',
8 # Temporarily turn off all relocation packing, pending fixes for
9 # breakpad problems revealed by moving to Android-style packing.
10 # See http://crbug.com/499747.
11 'chrome_apk_use_relocation_packer%': 0,
13 # Use the chromium linker unless cygprofile instrumentation is active.
14 # Chromium linker causes instrumentation to return incorrect results.
15 ['order_profiling == 0', {
16 'chrome_apk_use_chromium_linker%': 1,
17 'chrome_apk_load_library_from_zip%': 1,
19 'chrome_apk_use_chromium_linker%': 0,
20 'chrome_apk_load_library_from_zip%': 0,
24 'asset_location': '<(PRODUCT_DIR)/assets/<(package_name)',
25 'java_in_dir_suffix': '/src_dummy',
26 'native_lib_version_name': '<(version_full)',
27 'proguard_enabled': 'true',
28 'proguard_flags_paths': ['<(DEPTH)/chrome/android/java/proguard.flags'],
29 'additional_input_paths' : ['<@(chrome_android_pak_output_resources)'],
31 ['component != "shared_library"', {
32 # Only enable the chromium linker on regular builds, since the
33 # component build crashes on Android 4.4. See b/11379966
34 'use_chromium_linker': '<(chrome_apk_use_chromium_linker)',
36 ['"<(native_lib_placeholders_file)" != ""', {
37 'native_lib_placeholders': ['<!@(cat <(native_lib_placeholders_file))'],
39 # Pack relocations where the chromium linker is enabled. Packing is
40 # a no-op if this is not a Release build.
41 # TODO: Enable packed relocations for x64. See: b/20532404
42 ['chrome_apk_use_chromium_linker == 1 and target_arch != "x64"', {
43 'use_relocation_packer': '<(chrome_apk_use_relocation_packer)',
50 'includes': [ '../../build/java_apk.gypi' ],