| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//tools/grit/grit_rule.gni") | 5 import("//tools/grit/grit_rule.gni") |
| 6 | 6 |
| 7 # Applied by targets internal to content. | 7 # Applied by targets internal to content. |
| 8 config("content_implementation") { | 8 config("content_implementation") { |
| 9 defines = [ "CONTENT_IMPLEMENTATION" ] | 9 defines = [ "CONTENT_IMPLEMENTATION" ] |
| 10 } | 10 } |
| 11 | 11 |
| 12 content_shared_components = [ | 12 content_shared_components = [ |
| 13 "//content/gpu", | 13 "//content/gpu", |
| 14 "//content/plugin", | 14 "//content/plugin", |
| 15 "//content/ppapi_plugin", | 15 "//content/ppapi_plugin", |
| 16 "//content/public/app", |
| 16 "//content/public/browser:sources", | 17 "//content/public/browser:sources", |
| 17 "//content/public/child", | 18 "//content/public/child", |
| 18 "//content/public/common", | 19 "//content/public/common", |
| 19 "//content/public/plugin", | 20 "//content/public/plugin", |
| 20 "//content/public/renderer", | 21 "//content/public/renderer", |
| 21 "//content/renderer", | 22 "//content/renderer", |
| 22 "//content/utility", | 23 "//content/utility", |
| 23 ] | 24 ] |
| 24 | 25 |
| 25 if (is_component_build) { | 26 if (is_component_build) { |
| 26 shared_library("content") { | 27 shared_library("content") { |
| 27 deps = content_shared_components + [ | 28 deps = content_shared_components + [ |
| 28 "//content/app", | 29 "//content/app", |
| 29 "//content/public/app", | |
| 30 ] | 30 ] |
| 31 forward_dependent_configs_from = deps | 31 forward_dependent_configs_from = deps |
| 32 } | 32 } |
| 33 } else { | 33 } else { |
| 34 group("content") { | 34 group("content") { |
| 35 deps = content_shared_components | 35 deps = content_shared_components |
| 36 } | 36 } |
| 37 } | 37 } |
| 38 | 38 |
| 39 grit("resources") { | 39 grit("resources") { |
| 40 source = "content_resources.grd" | 40 source = "content_resources.grd" |
| 41 use_qualified_include = true | 41 use_qualified_include = true |
| 42 outputs = [ | 42 outputs = [ |
| 43 "grit/content_resources.h", | 43 "grit/content_resources.h", |
| 44 "content_resources.pak", | 44 "content_resources.pak", |
| 45 "content_resources.rc", | 45 "content_resources.rc", |
| 46 ] | 46 ] |
| 47 } | 47 } |
| 48 | 48 |
| 49 # This target exists to "hold" the content_export header so we can do proper | 49 # This target exists to "hold" the content_export header so we can do proper |
| 50 # inclusion testing of it. | 50 # inclusion testing of it. |
| 51 source_set("export") { | 51 source_set("export") { |
| 52 visibility = "//content/*" | 52 visibility = "//content/*" |
| 53 sources = [ | 53 sources = [ |
| 54 "content/common/content_export.h" | 54 "content/common/content_export.h" |
| 55 ] | 55 ] |
| 56 } | 56 } |
| OLD | NEW |