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

Side by Side Diff: chrome/renderer/BUILD.gn

Issue 343233004: Add chrome/renderer to the GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: work around lack of hunspell Created 6 years, 6 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 | « chrome/common/BUILD.gn ('k') | components/BUILD.gn » ('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 import("//build/config/features.gni")
5 import("//tools/grit/grit_rule.gni") 6 import("//tools/grit/grit_rule.gni")
6 7
8 gypi_values = exec_script(
9 "//build/gypi_to_gn.py",
10 [ rebase_path("../chrome_renderer.gypi") ],
11 "scope",
12 [ "../chrome_renderer.gypi" ])
13
7 # GYP version: chrome/chrome_resources.gyp:chrome_resources 14 # GYP version: chrome/chrome_resources.gyp:chrome_resources
8 # (generate_renderer_resources action) 15 # (generate_renderer_resources action)
9 grit("resources") { 16 grit("resources") {
10 source = "resources/renderer_resources.grd" 17 source = "resources/renderer_resources.grd"
11 } 18 }
19
20 static_library("renderer") {
21 sources = rebase_path(gypi_values.chrome_renderer_sources, ".", "..")
22
23 defines = []
24
25 deps = [
26 "//base/allocator",
27 "//chrome/common",
28 "//chrome/common/net",
29 "//chrome:resources",
30 "//chrome:strings",
31 "//third_party/re2",
32 #"../components/components.gyp:autofill_content_renderer", TODO(GYP)
33 #"../components/components.gyp:cdm_renderer", TODO(GYP)
34 #"../components/components.gyp:data_reduction_proxy_common", TODO(GYP)
35 #"../components/components.gyp:startup_metric_utils", TODO(GYP)
36 #"../components/components.gyp:plugins_renderer", TODO(GYP)
37 "//components/translate:translate_core_common",
38 #"../components/components.gyp:translate_core_language_detection", TODO(GYP )
39 "//components/visitedlink/renderer",
40 "//content/public/renderer",
41 #"../extensions/extensions.gyp:extensions_renderer", TODO(GYP)
42 #"../extensions/extensions_resources.gyp:extensions_resources", TODO(GYP)
43 "//media/cast/logging/proto",
44 #"../media/cast/cast.gyp:cast_sender", TODO(GYP)
45 #"../media/cast/cast.gyp:cast_transport", TODO(GYP)
46 "//net",
47 "//skia",
48 "//third_party/WebKit/public:blink",
49 "//third_party/icu",
50 "//third_party/npapi",
51 "//third_party/widevine/cdm:version_h",
52 "//ui/surface",
53 "//webkit/child",
54 "//webkit/common",
55 "//webkit:resources",
56 ]
57
58 if (enable_nacl) {
59 deps += [
60 #'../components/nacl.gyp:nacl', TODO(GYP)
61 #'../components/nacl.gyp:nacl_renderer', TODO(GYP)
62 ]
63 }
64
65 if (enable_plugins) {
66 sources += rebase_path(gypi_values.chrome_renderer_plugin_sources,
67 ".", "..")
68 deps += [
69 #'../ppapi/ppapi_internal.gyp:ppapi_host', TODO(GYP
70 #'../ppapi/ppapi_internal.gyp:ppapi_proxy', TODO(GYP
71 #'../ppapi/ppapi_internal.gyp:ppapi_ipc', TODO(GYP
72 #'../ppapi/ppapi_internal.gyp:ppapi_shared', TODO(GYP
73 ]
74 }
75
76 if (safe_browsing_mode == 1) {
77 sources += rebase_path(gypi_values.chrome_renderer_safe_browsing_sources,
78 ".", "..")
79 defines += [ "FULL_SAFE_BROWSING" ]
80 deps += [
81 "//chrome/common/safe_browsing:proto",
82 "//third_party/smhasher:murmurhash3",
83 ]
84 }
85
86 if (enable_extensions) {
87 sources += rebase_path(gypi_values.chrome_renderer_extensions_sources,
88 ".", "..")
89 }
90 if (enable_webrtc) {
91 sources += rebase_path(gypi_values.chrome_renderer_webrtc_sources,
92 ".", "..")
93 }
94 if (enable_spellcheck) {
95 sources += rebase_path(gypi_values.chrome_renderer_spellchecker_sources,
96 ".", "..")
97 # TODO(GYP) When hunspell is done, the extra defines can be removed.
98 #deps += [ "//third_party/hunspell" ]
99 defines += [ "HUNSPELL_STATIC", "HUNSPELL_CHROME_CLIENT", "OPENOFFICEORG" ]
100
101 }
102
103 if (enable_printing > 0) {
104 deps += [
105 #"//printing", TODO(GYP)
106 ]
107 if (enable_printing == 1) {
108 sources += rebase_path(gypi_values.chrome_renderer_printing_sources,
109 ".", "..")
110 }
111 }
112
113 if (is_mac) {
114 deps += [ "//third_party/mach_override" ]
115 }
116 if (is_win) {
117 deps += [
118 #'../chrome_elf/chrome_elf.gyp:chrome_elf', TODO(GYP)
119 "//third_party/wtl",
120 ]
121 }
122 if (!is_android) {
123 sources += rebase_path(gypi_values.chrome_renderer_non_android_sources,
124 ".", "..")
125 }
126 if (!is_ios) {
127 deps += [
128 # TODO(hclam): See crbug.com/298380 for details.
129 # We should isolate the APIs needed by the renderer.
130 "//chrome/common/extensions/api",
131 ]
132 }
133
134 # TODO(GYP)
135 # ['win_pdf_metafile_for_printing==1', {
136 # 'sources': [
137 # 'renderer/printing/print_web_view_helper_pdf_win.cc',
138 # ],
139 # }, {
140 # 'sources': [
141 # 'renderer/printing/print_web_view_helper_win.cc',
142 # ],
143 # }],
144 }
OLDNEW
« no previous file with comments | « chrome/common/BUILD.gn ('k') | components/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698