summaryrefslogtreecommitdiffstats
path: root/content/BUILD.gn
blob: 7f4a198dcb0dad359fdb03504b2c377e134be52b (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
# 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.

import("//tools/grit/grit_rule.gni")

# Applied by targets internal to content.
config("content_implementation") {
  defines = [ "CONTENT_IMPLEMENTATION" ]
}

content_shared_components = [
  "//content/gpu",
  "//content/plugin",
  "//content/public/browser:browser_sources",
  "//content/public/child",
  "//content/public/common",
  "//content/public/plugin",
  "//content/public/renderer",
  "//content/public/utility",
  "//content/renderer",
]

if (enable_plugins) {
  content_shared_components += [ "//content/ppapi_plugin" ]
}

if (is_component_build) {
  shared_library("content") {
    deps = content_shared_components + [
      "//content/app",
      "//content/public/app",
    ]
    forward_dependent_configs_from = deps
  }
} else {
  group("content") {
    deps = content_shared_components
  }
}

grit("resources") {
  source = "content_resources.grd"
  use_qualified_include = true
  outputs = [
    "grit/content_resources.h",
    "content_resources.pak",
    "content_resources.rc",
  ]
}

# This target exists to "hold" the content_export header so we can do proper
# inclusion testing of it.
source_set("export") {
  visibility = [ "//content/*" ]
  sources = [
    "content/common/content_export.h"
  ]
}