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 import("//build/config/features.gni")
6 import("//tools/grit/grit_rule.gni")
8 gypi_values = exec_script(
9 "//build/gypi_to_gn.py",
10 [ rebase_path("../chrome_renderer.gypi") ],
12 [ "../chrome_renderer.gypi" ])
14 # GYP version: chrome/chrome_resources.gyp:chrome_resources
15 # (generate_renderer_resources action)
17 source = "resources/renderer_resources.grd"
18 output_dir = "$root_gen_dir/chrome"
19 output_name = "renderer_resources"
21 "grit/renderer_resources.h",
22 "renderer_resources_100_percent.pak",
23 "renderer_resources_200_percent.pak",
27 static_library("renderer") {
28 sources = rebase_path(gypi_values.chrome_renderer_sources, ".", "..")
35 "//chrome/common/net",
38 "//components/autofill/content/renderer",
39 "//components/cdm/renderer",
40 "//components/data_reduction_proxy/common",
41 "//components/password_manager/content/renderer",
42 "//components/plugins/renderer",
43 "//components/startup_metric_utils",
44 "//components/translate/content/renderer",
45 "//components/translate/core/common",
46 "//components/translate/core/language_detection",
47 "//components/visitedlink/renderer",
48 "//content/app/resources",
49 "//content/app/strings",
50 "//content/public/renderer",
51 "//extensions:extensions_resources",
52 "//extensions/renderer",
54 "//media/cast:sender",
55 "//media/cast/logging/proto",
58 "//third_party/WebKit/public:blink",
59 "//third_party/WebKit/public:resources",
61 "//third_party/npapi",
63 "//third_party/widevine/cdm:version_h",
72 #'../components/nacl.gyp:nacl', TODO(GYP)
73 #'../components/nacl.gyp:nacl_renderer', TODO(GYP)
78 sources += rebase_path(gypi_values.chrome_renderer_plugin_sources,
83 "//ppapi:ppapi_proxy",
84 "//ppapi:ppapi_shared",
88 if (safe_browsing_mode == 1) {
89 sources += rebase_path(gypi_values.chrome_renderer_safe_browsing_sources,
91 sources += rebase_path(
92 gypi_values.chrome_renderer_basic_safe_browsing_sources,
94 defines += [ "FULL_SAFE_BROWSING" ]
96 "//chrome/common/safe_browsing:proto",
97 "//third_party/smhasher:murmurhash3",
100 if (safe_browsing_mode == 2) {
101 sources += rebase_path(
102 gypi_values.chrome_renderer_basic_safe_browsing_sources,
104 defines += [ "MOBILE_SAFE_BROWSING" ]
107 if (enable_extensions) {
108 sources += rebase_path(gypi_values.chrome_renderer_extensions_sources,
112 sources += rebase_path(gypi_values.chrome_renderer_webrtc_sources,
115 if (enable_extensions && enable_webrtc) {
116 sources += rebase_path(
117 gypi_values.chrome_renderer_webrtc_extensions_sources, ".", "..")
119 if (enable_spellcheck) {
120 sources += rebase_path(gypi_values.chrome_renderer_spellchecker_sources,
122 deps += [ "//third_party/hunspell" ]
125 if (printing_mode > 0) {
126 deps += [ "//printing" ]
127 sources += rebase_path(gypi_values.chrome_renderer_printing_sources,
129 if (printing_mode == 1) {
130 sources += rebase_path(gypi_values.chrome_renderer_full_printing_sources,
136 deps += [ "//third_party/mach_override" ]
140 #'../chrome_elf/chrome_elf.gyp:chrome_elf', TODO(GYP)
145 sources += rebase_path(gypi_values.chrome_renderer_non_android_sources,
150 # TODO(hclam): See crbug.com/298380 for details.
151 # We should isolate the APIs needed by the renderer.
152 "//chrome/common/extensions/api",
157 # ['win_pdf_metafile_for_printing==1', {
159 # 'renderer/printing/print_web_view_helper_pdf_win.cc',
163 # 'renderer/printing/print_web_view_helper_win.cc',