summaryrefslogtreecommitdiffstats
path: root/content/app/BUILD.gn
blob: 981526f6130d687ae462a9b8b5ac78054c790431 (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
51
52
53
54
55
56
57
58
59
60
61
62
# 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.

source_set("app") {
  sources = [
    "android/app_jni_registrar.cc",
    "android/app_jni_registrar.h",
    "android/child_process_service.cc",
    "android/child_process_service.h",
    "android/content_main.cc",
    "android/content_main.h",
    "android/library_loader_hooks.cc",
    "content_main.cc",
    "content_main_runner.cc",
    "mojo/mojo_init.cc",
    "mojo/mojo_init.h",
    "startup_helper_win.cc",
  ]

  configs += [ "//content:content_implementation" ]

  deps = [
    "//base",
    "//base:i18n",
    # This is needed by app/content_main_runner.cc
    # TODO(brettw) this shouldn't be here, only final executables should be
    # picking the allocator.
    "//base/allocator",
    "//content:export",
    "//crypto",
    "//ui/base",
    "//ui/gfx",
    "//ui/gfx/geometry",
  ]

  if (is_win) {
    deps += [ "//sandbox" ]
  } else if (is_android) {
    sources -= [ "content_main.cc" ]
    deps += [
      "//content:content_jni_headers",
      "//skia",
      "//third_party/android_tools:cpu_features"
    ]
  }

  if (is_ios) {
    sources -= [
      "content_main.cc",
      "mojo/mojo_init.cc",
      "mojo/mojo_init.h",
    ]
  } else {
    deps += [
      "//mojo/environment:chromium",
      "//mojo/public/interfaces/interface_provider",
      "//mojo/service_manager",
      "//mojo/system",
    ]
  }
}