summaryrefslogtreecommitdiffstats
path: root/chrome/chrome_features.gypi
blob: 3c80aa0af27fccc438fb5c02c339f33fe6a8de47 (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
49
50
# 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.

# This is the GYP equivalent of //chrome/common/features.gni.
# Please keep in sync!

{
  'variables': {
    'variables': {
      # Conditional variables.
      'conditions': [
        ['OS=="android"', {
          'android_java_ui%': 1,
        }, {
          'android_java_ui': 0,
        }],
        ['OS=="android" or OS=="ios"', {
          'enable_background%': 0,
          'enable_google_now%': 0,
        }, {
          'enable_background%': 1,
          'enable_google_now%': 1,
        }]
      ],

      # Use vulcanized HTML/CSS/JS resources to speed up WebUI (chrome://)
      # pages. https://github.com/polymer/vulcanize
      'use_vulcanize%': 1,
    },

    # Anything in the conditions needs to be copied to the outer scope to be
    # accessible.
    'enable_background%': '<(enable_background)',
    'enable_google_now%': '<(enable_google_now)',
    'android_java_ui%': '<(android_java_ui)',
    'use_vulcanize%': '<(use_vulcanize)',

    # GN only, but defined here so BUILDFLAG works without ifdef.
    'enable_package_mash_services%': 0,

    # Grit defines based on the feature flags. These must be manually added to
    # grit targets.
    'chrome_grit_defines': [
      '-D', 'enable_background=<(enable_background)',
      '-D', 'enable_google_now=<(enable_google_now)',
      '-D', 'use_vulcanize=<(use_vulcanize)',
    ],
  },
}