Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: content/app/BUILD.gn

Issue 419913003: Make content_shell link in the GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Android spelling Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/BUILD.gn ('k') | content/content.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 source_set("app") { 5 content_app_sources = [
6 sources = [ 6 "android/app_jni_registrar.cc",
7 "android/app_jni_registrar.cc", 7 "android/app_jni_registrar.h",
8 "android/app_jni_registrar.h", 8 "android/child_process_service.cc",
9 "android/child_process_service.cc", 9 "android/child_process_service.h",
10 "android/child_process_service.h", 10 "android/content_main.cc",
11 "android/content_main.cc", 11 "android/content_main.h",
12 "android/content_main.h", 12 "android/library_loader_hooks.cc",
13 "android/library_loader_hooks.cc", 13 "content_main.cc",
14 "content_main_runner.cc",
15 "mojo/mojo_init.cc",
16 "mojo/mojo_init.h",
17 "startup_helper_win.cc",
18 ]
19
20 content_app_deps = [
21 "//base",
22 "//base:i18n",
23 # This is needed by app/content_main_runner.cc
24 # TODO(brettw) this shouldn't be here, only final executables should be
25 # picking the allocator.
26 "//base/allocator",
27 "//content:export",
28 "//content/public/common",
29 "//crypto",
30 "//ui/base",
31 "//ui/gfx",
32 "//ui/gfx/geometry",
33 ]
34
35 if (is_win) {
36 content_app_deps += [ "//sandbox" ]
37 } else if (is_android) {
38 content_app_sources -= [ "content_main.cc" ]
39 content_app_deps += [
40 "//content:content_jni_headers",
41 "//skia",
42 "//third_party/android_tools:cpu_features"
43 ]
44 }
45
46 if (is_ios) {
47 content_app_sources -= [
14 "content_main.cc", 48 "content_main.cc",
15 "content_main_runner.cc",
16 "mojo/mojo_init.cc", 49 "mojo/mojo_init.cc",
17 "mojo/mojo_init.h", 50 "mojo/mojo_init.h",
18 "startup_helper_win.cc",
19 ] 51 ]
52 } else {
53 content_app_deps += [
54 "//mojo/environment:chromium",
55 "//mojo/public/interfaces/service_provider",
56 "//mojo/service_manager",
57 "//mojo/system",
58 ]
59 }
20 60
21 configs += [ "//content:content_implementation" ] 61 content_app_extra_configs = [
62 "//build/config/compiler:wexit_time_destructors",
63 "//content:content_implementation",
64 ]
22 65
23 deps = [ 66 if (is_component_build) {
24 "//base", 67 source_set("app") {
25 "//base:i18n", 68 sources = content_app_sources
26 # This is needed by app/content_main_runner.cc 69 configs += content_app_extra_configs
27 # TODO(brettw) this shouldn't be here, only final executables should be 70 deps = content_app_deps
28 # picking the allocator.
29 "//base/allocator",
30 "//content:export",
31 "//content/public/common",
32 "//crypto",
33 "//ui/base",
34 "//ui/gfx",
35 "//ui/gfx/geometry",
36 ]
37
38 if (is_win) {
39 deps += [ "//sandbox" ]
40 } else if (is_android) {
41 sources -= [ "content_main.cc" ]
42 deps += [
43 "//content:content_jni_headers",
44 "//skia",
45 "//third_party/android_tools:cpu_features"
46 ]
47 } 71 }
48 72
49 if (is_ios) { 73 # In the component build, all of these app targets redirect to the content
50 sources -= [ 74 # component. The content component in turn references the "app" target above.
51 "content_main.cc", 75 group("browser") {
52 "mojo/mojo_init.cc", 76 deps = [ "//content" ]
53 "mojo/mojo_init.h", 77 }
54 ] 78 group("child") {
55 } else { 79 deps = [ "//content" ]
56 deps += [ 80 }
57 "//mojo/environment:chromium", 81 group("both") {
58 "//mojo/public/interfaces/service_provider", 82 deps = [ "//content" ]
59 "//mojo/service_manager", 83 }
60 "//mojo/system", 84 } else {
61 ] 85 # Non-component build. In this case, we have different versions of
86 # "content/app" for the browser and child process.
87
88 # TODO(GYP) enable chrome_multiple_dll support
89 is_chrome_multiple_dll = false
90
91 source_set("browser") {
92 sources = content_app_sources
93 configs += content_app_extra_configs
94 deps = content_app_deps
95
96 if (is_chrome_multiple_dll) {
97 defines += [ "CHROME_MULTIPLE_DLL_BROWSER" ]
98 }
99 }
100
101 source_set("child") {
102 sources = content_app_sources
103 configs += content_app_extra_configs
104 deps = content_app_deps
105
106 if (is_chrome_multiple_dll) {
107 defines += [ "CHROME_MULTIPLE_DLL_CHILD" ]
108 }
109 }
110
111 # Includes both browser and child process app sources.
112 source_set("both") {
113 sources = content_app_sources
114 configs += content_app_extra_configs
115 deps = content_app_deps
62 } 116 }
63 } 117 }
OLDNEW
« no previous file with comments | « content/BUILD.gn ('k') | content/content.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698