summaryrefslogtreecommitdiff
path: root/chromium/extensions/shell/installer/BUILD.gn
blob: 6626a61771e8f9744d7e6c4dfb329ac4d1982f0e (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
# Copyright 2017 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.

import("//build/config/sanitizers/sanitizers.gni")
import("//build/config/sysroot.gni")
import("//build/config/ui.gni")
import("//build/util/process_version.gni")
import("//extensions/buildflags/buildflags.gni")

assert(enable_extensions)

declare_args() {
  enable_app_shell_installer =
      is_desktop_linux && current_cpu == "x64" && !is_component_build &&
      use_sysroot && !using_sanitizer
}

# Meta-target that forwards to the installer of the correct type (if any).
# Named "app_shell_installer" to not conflict with Chrome's "installer" target.
group("app_shell_installer") {
  # See the "app_shell_lib" definition for why testonly is needed.
  testonly = true
  if (enable_app_shell_installer) {
    deps = [
      "//extensions/shell/installer/linux",
    ]
  }
}