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 'chrome_apk_use_relocation_packer%': 1,
10 # Use the chromium linker unless cygprofile instrumentation is active.
11 # Chromium linker causes instrumentation to return incorrect results.
12 ['order_profiling == 0', {
13 'chrome_apk_use_chromium_linker%': 1,
14 'chrome_apk_load_library_from_zip%': 1,
16 'chrome_apk_use_chromium_linker%': 0,
17 'chrome_apk_load_library_from_zip%': 0,
21 'asset_location': '<(PRODUCT_DIR)/assets/<(package_name)',
22 'java_in_dir_suffix': '/src_dummy',
23 'native_lib_version_name': '<(version_full)',
24 'proguard_enabled': 'true',
25 'proguard_flags_paths': ['<(DEPTH)/chrome/android/java/proguard.flags'],
26 'additional_input_paths' : ['<@(chrome_android_pak_output_resources)'],
28 ['android_must_copy_system_libraries == 0', {
29 # Only enable the chromium linker on regular builds, since the
30 # component build crashes on Android 4.4. See b/11379966
31 'use_chromium_linker': '<(chrome_apk_use_chromium_linker)',
33 ['"<(native_lib_placeholders_file)" != ""', {
34 'native_lib_placeholders': ['<!@(cat <(native_lib_placeholders_file))'],
36 # Pack relocations where the chromium linker is enabled. Packing is
37 # a no-op if this is not a Release build.
38 # TODO: Enable packed relocations for x64. See: b/20532404
39 ['chrome_apk_use_chromium_linker == 1 and target_arch != "x64"', {
40 'use_relocation_packer': '<(chrome_apk_use_relocation_packer)',
47 'includes': [ '../../build/java_apk.gypi' ],