blob: 7f4a198dcb0dad359fdb03504b2c377e134be52b [file] [log] [blame]
[email protected]7e4c33142014-05-21 22:01:321# Copyright 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
[email protected]189add52014-05-28 16:51:445import("//tools/grit/grit_rule.gni")
6
7# Applied by targets internal to content.
8config("content_implementation") {
9 defines = [ "CONTENT_IMPLEMENTATION" ]
10}
11
[email protected]0e043592014-07-28 19:47:0412content_shared_components = [
[email protected]dab154ee2014-06-13 23:48:5013 "//content/gpu",
14 "//content/plugin",
Brett Wilsone7487942014-09-09 23:37:2915 "//content/public/browser:browser_sources",
[email protected]dab154ee2014-06-13 23:48:5016 "//content/public/child",
[email protected]0e043592014-07-28 19:47:0417 "//content/public/common",
[email protected]dab154ee2014-06-13 23:48:5018 "//content/public/plugin",
19 "//content/public/renderer",
brettwa78fded2014-09-07 00:27:4120 "//content/public/utility",
[email protected]dab154ee2014-06-13 23:48:5021 "//content/renderer",
[email protected]dab154ee2014-06-13 23:48:5022]
23
jamesr50081742014-09-09 07:52:2224if (enable_plugins) {
25 content_shared_components += [ "//content/ppapi_plugin" ]
26}
27
[email protected]dab154ee2014-06-13 23:48:5028if (is_component_build) {
29 shared_library("content") {
[email protected]0e043592014-07-28 19:47:0430 deps = content_shared_components + [
31 "//content/app",
brettwa78fded2014-09-07 00:27:4132 "//content/public/app",
[email protected]0e043592014-07-28 19:47:0433 ]
[email protected]22fe91d2014-08-12 17:07:1234 forward_dependent_configs_from = deps
[email protected]dab154ee2014-06-13 23:48:5035 }
36} else {
37 group("content") {
[email protected]0e043592014-07-28 19:47:0438 deps = content_shared_components
[email protected]dab154ee2014-06-13 23:48:5039 }
40}
41
[email protected]189add52014-05-28 16:51:4442grit("resources") {
43 source = "content_resources.grd"
[email protected]ae8d08982014-08-20 19:42:2944 use_qualified_include = true
[email protected]b89c53842014-07-23 16:32:3245 outputs = [
46 "grit/content_resources.h",
47 "content_resources.pak",
48 "content_resources.rc",
49 ]
[email protected]189add52014-05-28 16:51:4450}
51
[email protected]dab154ee2014-06-13 23:48:5052# This target exists to "hold" the content_export header so we can do proper
53# inclusion testing of it.
54source_set("export") {
brettw9af42622014-09-06 21:21:0255 visibility = [ "//content/*" ]
[email protected]dab154ee2014-06-13 23:48:5056 sources = [
57 "content/common/content_export.h"
58 ]
59}