[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", |
| 15 | "//content/ppapi_plugin", |
thakis | 3f1281e | 2014-09-06 00:07:47 | [diff] [blame] | 16 | "//content/public/app", |
[email protected] | 22fe91d | 2014-08-12 17:07:12 | [diff] [blame] | 17 | "//content/public/browser:sources", |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 18 | "//content/public/child", |
[email protected] | 0e04359 | 2014-07-28 19:47:04 | [diff] [blame] | 19 | "//content/public/common", |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 20 | "//content/public/plugin", |
| 21 | "//content/public/renderer", |
| 22 | "//content/renderer", |
| 23 | "//content/utility", |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 24 | ] |
| 25 | |
| 26 | if (is_component_build) { |
| 27 | shared_library("content") { |
[email protected] | 0e04359 | 2014-07-28 19:47:04 | [diff] [blame] | 28 | deps = content_shared_components + [ |
| 29 | "//content/app", |
| 30 | ] |
[email protected] | 22fe91d | 2014-08-12 17:07:12 | [diff] [blame] | 31 | forward_dependent_configs_from = deps |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 32 | } |
| 33 | } else { |
| 34 | group("content") { |
[email protected] | 0e04359 | 2014-07-28 19:47:04 | [diff] [blame] | 35 | deps = content_shared_components |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 36 | } |
| 37 | } |
| 38 | |
[email protected] | 189add5 | 2014-05-28 16:51:44 | [diff] [blame] | 39 | grit("resources") { |
| 40 | source = "content_resources.grd" |
[email protected] | ae8d0898 | 2014-08-20 19:42:29 | [diff] [blame] | 41 | use_qualified_include = true |
[email protected] | b89c5384 | 2014-07-23 16:32:32 | [diff] [blame] | 42 | outputs = [ |
| 43 | "grit/content_resources.h", |
| 44 | "content_resources.pak", |
| 45 | "content_resources.rc", |
| 46 | ] |
[email protected] | 189add5 | 2014-05-28 16:51:44 | [diff] [blame] | 47 | } |
| 48 | |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 49 | # This target exists to "hold" the content_export header so we can do proper |
| 50 | # inclusion testing of it. |
| 51 | source_set("export") { |
brettw | 9af4262 | 2014-09-06 21:21:02 | [diff] [blame^] | 52 | visibility = [ "//content/*" ] |
[email protected] | dab154ee | 2014-06-13 23:48:50 | [diff] [blame] | 53 | sources = [ |
| 54 | "content/common/content_export.h" |
| 55 | ] |
| 56 | } |