| 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 = [ "//content/public/app:*" ] | 70 visibility = [ |
| 71 ":both_for_content_tests", # See top of //content/BUILD.gn for why. |
| 72 "//content/public/app:*", |
| 73 ] |
| 71 | 74 |
| 72 sources = content_app_sources | 75 sources = content_app_sources |
| 73 configs += content_app_extra_configs | 76 configs += content_app_extra_configs |
| 74 deps = content_app_deps | 77 deps = content_app_deps |
| 75 } | 78 } |
| 76 | 79 |
| 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 |
| 77 if (is_multi_dll_chrome) { | 90 if (is_multi_dll_chrome) { |
| 78 # It doesn't make sense to do the browser/child dll split in component mode. | 91 # It doesn't make sense to do the browser/child dll split in component mode. |
| 79 assert(!is_component_build) | 92 assert(!is_component_build) |
| 80 | 93 |
| 81 source_set("browser") { | 94 source_set("browser") { |
| 82 visibility = [ "//content/public/app:browser" ] | 95 visibility = [ "//content/public/app:browser" ] |
| 83 | 96 |
| 84 sources = content_app_sources | 97 sources = content_app_sources |
| 85 configs += content_app_extra_configs | 98 configs += content_app_extra_configs |
| 86 deps = content_app_deps | 99 deps = content_app_deps |
| 87 | 100 |
| 88 defines = [ "CHROME_MULTIPLE_DLL_BROWSER" ] | 101 defines = [ "CHROME_MULTIPLE_DLL_BROWSER" ] |
| 89 } | 102 } |
| 90 | 103 |
| 91 source_set("child") { | 104 source_set("child") { |
| 92 visibility = [ "//content/public/app:child" ] | 105 visibility = [ "//content/public/app:child" ] |
| 93 | 106 |
| 94 sources = content_app_sources | 107 sources = content_app_sources |
| 95 configs += content_app_extra_configs | 108 configs += content_app_extra_configs |
| 96 deps = content_app_deps | 109 deps = content_app_deps |
| 97 | 110 |
| 98 defines = [ "CHROME_MULTIPLE_DLL_CHILD" ] | 111 defines = [ "CHROME_MULTIPLE_DLL_CHILD" ] |
| 99 } | 112 } |
| 100 } | 113 } |
| OLD | NEW |