summaryrefslogtreecommitdiffstats
path: root/components/crash/content/browser/BUILD.gn
blob: 1af0d893aa37e19968502c9c61804407f9ecb523 (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
# 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.

if (is_android) {
  import("//build/config/android/config.gni")
}

source_set("browser") {
  sources = [
    "crash_dump_manager_android.cc",
    "crash_dump_manager_android.h",
  ]

  if (is_linux || is_android) {
    set_sources_assignment_filter([])

    # Want this file on both Linux and Android.
    sources += [
      "crash_handler_host_linux.cc",
      "crash_handler_host_linux.h",
    ]
  }

  deps = [
    "//base",
    "//components/crash/content/app",
    "//content/public/browser",
    "//content/public/common",
  ]

  # This is not in the GYP build but this target includes breakpad client
  # headers, so add the dependency here.
  if (is_posix && !is_ios) {
    configs += [ "//breakpad:client_config" ]
    public_configs = [ "//breakpad:client_config" ]
  }
}