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