| 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", | |
| 16 "//content/public/browser:sources", | 15 "//content/public/browser:sources", |
| 17 "//content/public/child", | 16 "//content/public/child", |
| 18 "//content/public/common", | 17 "//content/public/common", |
| 19 "//content/public/plugin", | 18 "//content/public/plugin", |
| 20 "//content/public/renderer", | 19 "//content/public/renderer", |
| 21 "//content/public/utility", | 20 "//content/public/utility", |
| 22 "//content/renderer", | 21 "//content/renderer", |
| 23 ] | 22 ] |
| 24 | 23 |
| 24 if (enable_plugins) { |
| 25 content_shared_components += [ "//content/ppapi_plugin" ] |
| 26 } |
| 27 |
| 25 if (is_component_build) { | 28 if (is_component_build) { |
| 26 shared_library("content") { | 29 shared_library("content") { |
| 27 deps = content_shared_components + [ | 30 deps = content_shared_components + [ |
| 28 "//content/app", | 31 "//content/app", |
| 29 "//content/public/app", | 32 "//content/public/app", |
| 30 ] | 33 ] |
| 31 forward_dependent_configs_from = deps | 34 forward_dependent_configs_from = deps |
| 32 } | 35 } |
| 33 } else { | 36 } else { |
| 34 group("content") { | 37 group("content") { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 47 } | 50 } |
| 48 | 51 |
| 49 # This target exists to "hold" the content_export header so we can do proper | 52 # This target exists to "hold" the content_export header so we can do proper |
| 50 # inclusion testing of it. | 53 # inclusion testing of it. |
| 51 source_set("export") { | 54 source_set("export") { |
| 52 visibility = [ "//content/*" ] | 55 visibility = [ "//content/*" ] |
| 53 sources = [ | 56 sources = [ |
| 54 "content/common/content_export.h" | 57 "content/common/content_export.h" |
| 55 ] | 58 ] |
| 56 } | 59 } |
| OLD | NEW |