| 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 # TODO(GYP) enable chrome_multiple_dll support |
| 6 is_chrome_multiple_dll = false |
| 6 | 7 |
| 7 content_app_sources = [ | 8 content_app_sources = [ |
| 8 "android/app_jni_registrar.cc", | 9 "android/app_jni_registrar.cc", |
| 9 "android/app_jni_registrar.h", | 10 "android/app_jni_registrar.h", |
| 10 "android/child_process_service.cc", | 11 "android/child_process_service.cc", |
| 11 "android/child_process_service.h", | 12 "android/child_process_service.h", |
| 12 "android/content_jni_onload.cc", | 13 "android/content_jni_onload.cc", |
| 13 "android/content_main.cc", | 14 "android/content_main.cc", |
| 14 "android/content_main.h", | 15 "android/content_main.h", |
| 15 "android/library_loader_hooks.cc", | 16 "android/library_loader_hooks.cc", |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 "//third_party/mojo/src/mojo/edk/system", | 64 "//third_party/mojo/src/mojo/edk/system", |
| 64 "//third_party/mojo/src/mojo/public/interfaces/application", | 65 "//third_party/mojo/src/mojo/public/interfaces/application", |
| 65 ] | 66 ] |
| 66 } | 67 } |
| 67 | 68 |
| 68 content_app_extra_configs = [ | 69 content_app_extra_configs = [ |
| 69 "//build/config/compiler:wexit_time_destructors", | 70 "//build/config/compiler:wexit_time_destructors", |
| 70 "//content:content_implementation", | 71 "//content:content_implementation", |
| 71 ] | 72 ] |
| 72 | 73 |
| 73 if (!is_multi_dll_chrome) { | 74 if (!is_chrome_multiple_dll) { |
| 74 content_app_deps += [ "//content/gpu:gpu_sources" ] | 75 content_app_deps += [ "//content/gpu:gpu_sources" ] |
| 75 } | 76 } |
| 76 | 77 |
| 77 # This includes the app sources for both the browser and child processes. | 78 # This includes the app sources for both the browser and child processes. |
| 78 source_set("both") { | 79 source_set("both") { |
| 79 # Only the public target should depend on this. All other targets (even | 80 # Only the public target should depend on this. All other targets (even |
| 80 # internal content ones) should depend on the public one. | 81 # internal content ones) should depend on the public one. |
| 81 visibility = [ "//content/public/app:*" ] | 82 visibility = [ "//content/public/app:*" ] |
| 82 | 83 |
| 83 sources = content_app_sources | 84 sources = content_app_sources |
| 84 configs += content_app_extra_configs | 85 configs += content_app_extra_configs |
| 85 deps = content_app_deps | 86 deps = content_app_deps |
| 86 } | 87 } |
| 87 | 88 |
| 88 if (is_multi_dll_chrome) { | 89 if (is_chrome_multiple_dll) { |
| 89 # It doesn't make sense to do the browser/child dll split in component mode. | 90 # It doesn't make sense to do the browser/child dll split in component mode. |
| 90 assert(!is_component_build) | 91 assert(!is_component_build) |
| 91 | 92 |
| 92 source_set("browser") { | 93 source_set("browser") { |
| 93 visibility = [ "//content/public/app:browser" ] | 94 visibility = [ "//content/public/app:browser" ] |
| 94 | 95 |
| 95 sources = content_app_sources | 96 sources = content_app_sources |
| 96 configs += content_app_extra_configs | 97 configs += content_app_extra_configs |
| 97 deps = content_app_deps | 98 deps = content_app_deps |
| 98 | 99 |
| 99 defines = [ "CHROME_MULTIPLE_DLL_BROWSER" ] | 100 defines += [ "CHROME_MULTIPLE_DLL_BROWSER" ] |
| 100 } | 101 } |
| 101 | 102 |
| 102 source_set("child") { | 103 source_set("child") { |
| 103 visibility = [ "//content/public/app:child" ] | 104 visibility = [ "//content/public/app:child" ] |
| 104 | 105 |
| 105 sources = content_app_sources | 106 sources = content_app_sources |
| 106 configs += content_app_extra_configs | 107 configs += content_app_extra_configs |
| 107 deps = content_app_deps | 108 deps = content_app_deps |
| 108 | 109 |
| 109 defines = [ "CHROME_MULTIPLE_DLL_CHILD" ] | 110 defines += [ "CHROME_MULTIPLE_DLL_CHILD" ] |
| 110 } | 111 } |
| 111 } | 112 } |
| OLD | NEW |