summaryrefslogtreecommitdiffstats
path: root/chrome/android/chrome_apk.gypi
blob: 59cca2d3f1fef54193c8b4b8ab09501a666bb93f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
  'variables': {
    'variables': {
      'native_lib_placeholders_file%': '',
      'chrome_apk_use_relocation_packer%': 1,
      'conditions': [
        # Use the chromium linker unless cygprofile instrumentation is active.
        # Chromium linker causes instrumentation to return incorrect results.
        ['order_profiling == 0', {
          'chrome_apk_use_chromium_linker%': 1,
          'chrome_apk_load_library_from_zip%': 1,
        }, {
          'chrome_apk_use_chromium_linker%': 0,
          'chrome_apk_load_library_from_zip%': 0,
        }],
      ],
    },
    'asset_location': '<(PRODUCT_DIR)/assets/<(package_name)',
    'java_in_dir_suffix': '/src_dummy',
    'native_lib_version_name': '<(version_full)',
    'proguard_enabled': 'true',
    'proguard_flags_paths': ['<(DEPTH)/chrome/android/java/proguard.flags'],
    'additional_input_paths' : ['<@(chrome_android_pak_output_resources)'],
    'conditions': [
      ['component != "shared_library"', {
        # Only enable the chromium linker on regular builds, since the
        # component build crashes on Android 4.4. See b/11379966
        'use_chromium_linker': '<(chrome_apk_use_chromium_linker)',
        'conditions': [
          ['"<(native_lib_placeholders_file)" != ""', {
            'native_lib_placeholders': ['<!@(cat <(native_lib_placeholders_file))'],
          }],
          # Only attempt relocation packing for 32-bit and 64-bit arm builds
          # that enable the chromium linker. Packing is a no-op if this
          # is not a Release build.
          ['chrome_apk_use_chromium_linker == 1 and (target_arch == "arm" or target_arch == "arm64")', {
            'use_relocation_packer': '<(chrome_apk_use_relocation_packer)',
          }],
        ],
      }],
    ],
    'run_findbugs': 0,
  },
  'includes': [ '../../build/java_apk.gypi' ],
}