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
3 # found in the LICENSE file.
5 # TODO(GYP) enable chrome_multiple_dll support
6 is_chrome_multiple_dll = false
8 content_app_sources = [
9 "android/app_jni_registrar.cc",
10 "android/app_jni_registrar.h",
11 "android/child_process_service.cc",
12 "android/child_process_service.h",
13 "android/content_main.cc",
14 "android/content_main.h",
15 "android/library_loader_hooks.cc",
17 "content_main_runner.cc",
20 "startup_helper_win.cc",
26 # This is needed by app/content_main_runner.cc
27 # TODO(brettw) this shouldn't be here, only final executables should be
28 # picking the allocator.
31 "//content/public/common:common_sources",
39 content_app_deps += [ "//sandbox" ]
40 } else if (is_android) {
41 content_app_sources -= [ "content_main.cc" ]
43 "//content/public/android:jni",
45 "//third_party/android_tools:cpu_features"
50 content_app_sources -= [
58 "//mojo/environment:chromium",
59 "//mojo/public/interfaces/application",
63 content_app_extra_configs = [
64 "//build/config/compiler:wexit_time_destructors",
65 "//content:content_implementation",
68 if (!is_chrome_multiple_dll) {
69 content_app_deps += [ "//content/gpu" ]
72 # This includes the app sources for both the browser and child processes.
74 # Only the public target should depend on this. All other targets (even
75 # internal content ones) should depend on the public one.
76 visibility = [ "//content/public/app:*" ]
78 sources = content_app_sources
79 configs += content_app_extra_configs
80 deps = content_app_deps
83 if (is_chrome_multiple_dll) {
84 # It doesn't make sense to do the browser/child dll split in component mode.
85 assert(!is_component_build)
87 source_set("browser") {
88 visibility = [ "//content/public/app:browser" ]
90 sources = content_app_sources
91 configs += content_app_extra_configs
92 deps = content_app_deps
94 defines += [ "CHROME_MULTIPLE_DLL_BROWSER" ]
98 visibility = [ "//content/public/app:child" ]
100 sources = content_app_sources
101 configs += content_app_extra_configs
102 deps = content_app_deps
104 defines += [ "CHROME_MULTIPLE_DLL_CHILD" ]