[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 1 | # 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] | 189add5 | 2014-05-28 16:51:44 | [diff] [blame] | 5 | import("//tools/grit/grit_rule.gni") |
| 6 | |
| 7 | # Applied by targets internal to content. |
| 8 | config("content_implementation") { |
| 9 | defines = [ "CONTENT_IMPLEMENTATION" ] |
| 10 | } |
| 11 | |
[email protected] | 0e04359 | 2014-07-28 19:47:04 | [diff] [blame] | 12 | content_shared_components = [ |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 13 | "//content/gpu", |
| 14 | "//content/plugin", |
Brett Wilson | e748794 | 2014-09-09 23:37:29 | [diff] [blame^] | 15 | "//content/public/browser:browser_sources", |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 16 | "//content/public/child", |
[email protected] | 0e04359 | 2014-07-28 19:47:04 | [diff] [blame] | 17 | "//content/public/common", |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 18 | "//content/public/plugin", |
| 19 | "//content/public/renderer", |
brettw | a78fded | 2014-09-07 00:27:41 | [diff] [blame] | 20 | "//content/public/utility", |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 21 | "//content/renderer", |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 22 | ] |
| 23 | |
jamesr | 5008174 | 2014-09-09 07:52:22 | [diff] [blame] | 24 | if (enable_plugins) { |
| 25 | content_shared_components += [ "//content/ppapi_plugin" ] |
| 26 | } |
| 27 | |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 28 | if (is_component_build) { |
| 29 | shared_library("content") { |
[email protected] | 0e04359 | 2014-07-28 19:47:04 | [diff] [blame] | 30 | deps = content_shared_components + [ |
| 31 | "//content/app", |
brettw | a78fded | 2014-09-07 00:27:41 | [diff] [blame] | 32 | "//content/public/app", |
[email protected] | 0e04359 | 2014-07-28 19:47:04 | [diff] [blame] | 33 | ] |
[email protected] | 22fe91d | 2014-08-12 17:07:12 | [diff] [blame] | 34 | forward_dependent_configs_from = deps |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 35 | } |
| 36 | } else { |
| 37 | group("content") { |
[email protected] | 0e04359 | 2014-07-28 19:47:04 | [diff] [blame] | 38 | deps = content_shared_components |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 39 | } |
| 40 | } |
| 41 | |
[email protected] | 189add5 | 2014-05-28 16:51:44 | [diff] [blame] | 42 | grit("resources") { |
| 43 | source = "content_resources.grd" |
[email protected] | ae8d0898 | 2014-08-20 19:42:29 | [diff] [blame] | 44 | use_qualified_include = true |
[email protected] | b89c5384 | 2014-07-23 16:32:32 | [diff] [blame] | 45 | outputs = [ |
| 46 | "grit/content_resources.h", |
| 47 | "content_resources.pak", |
| 48 | "content_resources.rc", |
| 49 | ] |
[email protected] | 189add5 | 2014-05-28 16:51:44 | [diff] [blame] | 50 | } |
| 51 | |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 52 | # This target exists to "hold" the content_export header so we can do proper |
| 53 | # inclusion testing of it. |
| 54 | source_set("export") { |
brettw | 9af4262 | 2014-09-06 21:21:02 | [diff] [blame] | 55 | visibility = [ "//content/*" ] |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 56 | sources = [ |
| 57 | "content/common/content_export.h" |
| 58 | ] |
| 59 | } |