summaryrefslogtreecommitdiffstats
path: root/components/precache/precache_defines.gypi
blob: 82f611e07c0cdaf38dba08a1ed71b7a12995f469 (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
# Copyright 2013 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': {
    # These values are duplicated in the GN build in:
    # //components/precache/core:precache_config
    'precache_config_settings_url%': 'https://www.gstatic.com/chrome/wifiprefetch/precache_config',
    'precache_manifest_url_prefix%': 'https://www.gstatic.com/chrome/wifiprefetch/precache_manifest_',
  },
  'conditions': [
    ['precache_config_settings_url != ""', {
      'defines': [
        'PRECACHE_CONFIG_SETTINGS_URL="<(precache_config_settings_url)"',
      ],
    }],
    ['precache_manifest_url_prefix != ""', {
      'defines': [
        'PRECACHE_MANIFEST_URL_PREFIX="<(precache_manifest_url_prefix)"',
      ],
    }],
  ],
}