summaryrefslogtreecommitdiffstats
path: root/android_webview/apk/system_webview_apk_common.gypi
blob: 0d19dac41fd0fc889f6804915fb1d1c58d87f55b (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
# Copyright 2014 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.
#
# When making changes remember that this is shared with the internal .apk
# build rules.
{
  'type': 'none',
  'dependencies': [
    '<(DEPTH)/android_webview/android_webview.gyp:libwebviewchromium',
    '<(DEPTH)/android_webview/android_webview.gyp:android_webview_java',
    '<(DEPTH)/android_webview/android_webview.gyp:android_webview_pak',
  ],
  'variables': {
    'native_lib_target': 'libwebviewchromium',
    'never_lint': 1,
    'R_package': 'com.android.webview.chromium',
    'R_package_relpath': 'com/android/webview/chromium',
    'extensions_to_not_compress': 'pak',
    'asset_location': '<(PRODUCT_DIR)/android_webview_assets',
    # TODO: crbug.com/442348 Update proguard.flags and re-enable.
    'proguard_enabled': 'false',
    'proguard_flags_paths': ['<(DEPTH)/android_webview/apk/java/proguard.flags'],
    # TODO: crbug.com/405035 Find a better solution for WebView .pak files.
    'additional_input_paths': [
      '<(PRODUCT_DIR)/android_webview_assets/webviewchromium.pak',
      '<(PRODUCT_DIR)/android_webview_assets/en-US.pak',
    ],
    'conditions': [
      ['icu_use_data_file_flag==1', {
        'additional_input_paths': [
          '<(PRODUCT_DIR)/icudtl.dat',
        ],
      }],
      ['v8_use_external_startup_data==1', {
        'additional_input_paths': [
          '<(PRODUCT_DIR)/natives_blob.bin',
          '<(PRODUCT_DIR)/snapshot_blob.bin',
        ],
      }],
    ],
  },
  'includes': [ '../../build/java_apk.gypi' ],
}