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("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 | 6 |
7 content_app_sources = [ | 7 content_app_sources = [ |
8 "android/app_jni_registrar.cc", | 8 "android/app_jni_registrar.cc", |
9 "android/app_jni_registrar.h", | 9 "android/app_jni_registrar.h", |
10 "android/child_process_service.cc", | 10 "android/child_process_service.cc", |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 ] | 60 ] |
61 | 61 |
62 if (!is_multi_dll_chrome) { | 62 if (!is_multi_dll_chrome) { |
63 content_app_deps += [ "//content/gpu:gpu_sources" ] | 63 content_app_deps += [ "//content/gpu:gpu_sources" ] |
64 } | 64 } |
65 | 65 |
66 # This includes the app sources for both the browser and child processes. | 66 # This includes the app sources for both the browser and child processes. |
67 source_set("both") { | 67 source_set("both") { |
68 # Only the public target should depend on this. All other targets (even | 68 # Only the public target should depend on this. All other targets (even |
69 # internal content ones) should depend on the public one. | 69 # internal content ones) should depend on the public one. |
70 visibility = [ | 70 visibility = [ "//content/public/app:*" ] |
71 ":*", | |
72 "//content/public/app:*", | |
73 ] | |
74 | 71 |
75 sources = content_app_sources | 72 sources = content_app_sources |
76 configs += content_app_extra_configs | 73 configs += content_app_extra_configs |
77 deps = content_app_deps | 74 deps = content_app_deps |
78 } | 75 } |
79 | 76 |
80 # See comment at the top of //content/BUILD.gn for how this works. | |
81 group("both_for_content_tests") { | |
82 visibility = [ "//content/test/*" ] | |
83 if (!is_component_build) { | |
84 public_deps = [ | |
85 ":both", | |
86 ] | |
87 } | |
88 } | |
89 | |
90 if (is_multi_dll_chrome) { | 77 if (is_multi_dll_chrome) { |
91 # It doesn't make sense to do the browser/child dll split in component mode. | 78 # It doesn't make sense to do the browser/child dll split in component mode. |
92 assert(!is_component_build) | 79 assert(!is_component_build) |
93 | 80 |
94 source_set("browser") { | 81 source_set("browser") { |
95 visibility = [ "//content/public/app:browser" ] | 82 visibility = [ "//content/public/app:browser" ] |
96 | 83 |
97 sources = content_app_sources | 84 sources = content_app_sources |
98 configs += content_app_extra_configs | 85 configs += content_app_extra_configs |
99 deps = content_app_deps | 86 deps = content_app_deps |
100 | 87 |
101 defines = [ "CHROME_MULTIPLE_DLL_BROWSER" ] | 88 defines = [ "CHROME_MULTIPLE_DLL_BROWSER" ] |
102 } | 89 } |
103 | 90 |
104 source_set("child") { | 91 source_set("child") { |
105 visibility = [ "//content/public/app:child" ] | 92 visibility = [ "//content/public/app:child" ] |
106 | 93 |
107 sources = content_app_sources | 94 sources = content_app_sources |
108 configs += content_app_extra_configs | 95 configs += content_app_extra_configs |
109 deps = content_app_deps | 96 deps = content_app_deps |
110 | 97 |
111 defines = [ "CHROME_MULTIPLE_DLL_CHILD" ] | 98 defines = [ "CHROME_MULTIPLE_DLL_CHILD" ] |
112 } | 99 } |
113 } | 100 } |
OLD | NEW |