[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 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. |
| 4 | |
brettw | 2b2364b | 2015-05-01 22:36:23 | [diff] [blame] | 5 | import("//build/config/chrome_build.gni") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 6 | import("//build/config/crypto.gni") |
| 7 | import("//build/config/features.gni") |
| 8 | import("//build/config/ui.gni") |
pkotwicz | 127726f | 2015-05-29 15:20:12 | [diff] [blame] | 9 | import("//third_party/protobuf/proto_library.gni") |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 10 | |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 11 | # //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which |
| 12 | # produces a conflict for the "grit" template so we have to only include one. |
| 13 | if (is_android) { |
| 14 | import("//build/config/android/rules.gni") |
| 15 | } else { |
| 16 | import("//tools/grit/grit_rule.gni") |
| 17 | } |
cmasone | 0a9e4ca | 2014-10-16 16:40:49 | [diff] [blame] | 18 | if (is_desktop_linux) { |
| 19 | import("//build/config/linux/pkg_config.gni") |
| 20 | } |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 21 | |
amistry | f269d3b | 2015-06-09 19:18:39 | [diff] [blame] | 22 | declare_args() { |
mgiuca | 0366a51 | 2015-06-24 05:41:33 | [diff] [blame] | 23 | # 'Ok Google' hotwording is disabled by default in open source builds. Set to |
| 24 | # true to enable. (This will download a closed-source NaCl module at startup.) |
| 25 | # Chrome-branded builds have this enabled by default. |
| 26 | enable_hotwording = is_chrome_branded |
amistry | f269d3b | 2015-06-09 19:18:39 | [diff] [blame] | 27 | } |
| 28 | |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 29 | about_credits_file = "$target_gen_dir/about_credits.html" |
| 30 | additional_modules_list_file = |
| 31 | "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt" |
| 32 | |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 33 | gypi_values = exec_script("//build/gypi_to_gn.py", |
| 34 | [ rebase_path("../chrome_browser.gypi") ], |
| 35 | "scope", |
| 36 | [ "../chrome_browser.gypi" ]) |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 37 | |
cmasone | 0a9e4ca | 2014-10-16 16:40:49 | [diff] [blame] | 38 | if (is_desktop_linux) { |
brettw | a68ea2b | 2015-02-01 02:54:07 | [diff] [blame] | 39 | # Gnome-keyring is normally dynamically loaded. The gnome_keyring config |
| 40 | # will set this up. |
cmasone | 0a9e4ca | 2014-10-16 16:40:49 | [diff] [blame] | 41 | pkg_config("gnome_keyring") { |
| 42 | packages = [ "gnome-keyring-1" ] |
brettw | a68ea2b | 2015-02-01 02:54:07 | [diff] [blame] | 43 | defines = [ |
| 44 | "USE_GNOME_KEYRING", |
| 45 | "DLOPEN_GNOME_KEYRING", |
| 46 | ] |
| 47 | ignore_libs = true |
| 48 | } |
| 49 | |
| 50 | # If you want to link gnome-keyring directly (use only for unit tests) |
| 51 | # ADDITIONALLY add this config on top of ":gnome_keyring". pkg-config is a |
| 52 | # bit slow, so prefer not to run it again. In practice, gnome-keyring's libs |
| 53 | # are just itself and common gnome ones we link already, so we can get away |
| 54 | # with additionally just coding the library name here. |
| 55 | config("gnome_keyring_direct") { |
| 56 | libs = [ "gnome-keyring" ] |
cmasone | 0a9e4ca | 2014-10-16 16:40:49 | [diff] [blame] | 57 | } |
| 58 | } |
| 59 | |
brettw | 44a5cf8 | 2015-04-08 19:48:22 | [diff] [blame] | 60 | source_set("browser") { |
apavlov | e749bca | 2014-09-30 11:07:41 | [diff] [blame] | 61 | configs += [ |
| 62 | "//build/config/compiler:wexit_time_destructors", |
| 63 | "//third_party/WebKit/public:debug_devtools", |
| 64 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 65 | defines = [] |
| 66 | sources = [] |
| 67 | libs = [] |
| 68 | ldflags = [] |
| 69 | |
| 70 | # iOS/non-iOS shared deps. New dependencies should generally be added in the |
| 71 | # non-iOS deps below. |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 72 | public_deps = [ |
| 73 | "//components/autofill/core/browser", |
| 74 | "//content/public/browser", |
| 75 | "//sql", |
| 76 | "//sync", |
| 77 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 78 | deps = [ |
| 79 | "//base/allocator", |
| 80 | "//chrome:extra_resources", |
| 81 | "//chrome:resources", |
| 82 | "//chrome:strings", |
[email protected] | 797b2504 | 2014-07-01 23:54:17 | [diff] [blame] | 83 | "//chrome/app:generated_resources_map", |
[email protected] | 855b7de | 2014-07-08 21:02:45 | [diff] [blame] | 84 | "//chrome/app/resources:platform_locale_settings", |
[email protected] | 797b2504 | 2014-07-01 23:54:17 | [diff] [blame] | 85 | "//chrome/app/theme:theme_resources", |
estark | 4282f117 | 2015-05-13 22:01:55 | [diff] [blame] | 86 | "//chrome/browser/net:encrypted_cert_logger_proto", |
[email protected] | 797b2504 | 2014-07-01 23:54:17 | [diff] [blame] | 87 | "//chrome/browser/net:probe_message_proto", |
fgorski | fe7b92f | 2015-06-15 19:19:40 | [diff] [blame] | 88 | "//chrome/browser/offline_pages:offline_pages_proto", |
estark | 4282f117 | 2015-05-13 22:01:55 | [diff] [blame] | 89 | "//chrome/browser/ssl:cert_logger_proto", |
[email protected] | abd4b68 | 2014-07-16 20:26:30 | [diff] [blame] | 90 | "//chrome/browser/ui", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 91 | "//chrome/common", |
| 92 | "//chrome/common/net", |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 93 | "//components/autofill/core/browser", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 94 | "//components/bookmarks/browser", |
treib | a9ea2fb | 2015-03-20 10:06:03 | [diff] [blame] | 95 | "//components/bookmarks/managed", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 96 | "//components/captive_portal", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 97 | "//components/cloud_devices/common", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 98 | "//components/component_updater", |
vabr | fc325fa | 2015-04-10 16:24:45 | [diff] [blame] | 99 | "//components/content_settings/content/common", |
vasilii | ac46139 | 2014-09-18 11:35:17 | [diff] [blame] | 100 | "//components/content_settings/core/browser", |
[email protected] | 08f7101 | 2014-07-25 10:27:54 | [diff] [blame] | 101 | "//components/content_settings/core/common", |
[email protected] | 478ed23 | 2014-08-19 02:10:55 | [diff] [blame] | 102 | "//components/crx_file", |
megjablon | 3476e04 | 2014-10-14 19:21:59 | [diff] [blame] | 103 | "//components/data_reduction_proxy/core/browser", |
reillyg | 4a84927 | 2015-02-20 21:38:43 | [diff] [blame] | 104 | "//components/device_event_log", |
[email protected] | 273ae5ab | 2014-07-09 21:10:25 | [diff] [blame] | 105 | "//components/domain_reliability", |
noyau | daaac3a | 2014-10-08 11:11:11 | [diff] [blame] | 106 | "//components/enhanced_bookmarks", |
sdefresne | cbacfd7 | 2015-03-20 12:11:32 | [diff] [blame] | 107 | "//components/favicon/core", |
sdefresne | 001b10de | 2015-03-20 18:41:46 | [diff] [blame] | 108 | "//components/favicon_base", |
[email protected] | abd4b68 | 2014-07-16 20:26:30 | [diff] [blame] | 109 | "//components/gcm_driver", |
jianli | 2104ce61 | 2015-05-06 00:24:34 | [diff] [blame] | 110 | "//components/gcm_driver/instance_id", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 111 | "//components/google/core/browser", |
fsamuel | af5bf6d1 | 2015-05-28 16:29:54 | [diff] [blame] | 112 | "//components/guest_view/browser", |
erikchen | 332265b | 2014-11-14 19:59:52 | [diff] [blame] | 113 | "//components/handoff", |
[email protected] | 273ae5ab | 2014-07-09 21:10:25 | [diff] [blame] | 114 | "//components/history/core/browser", |
| 115 | "//components/history/core/common", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 116 | "//components/infobars/core", |
knn | 062cdbb | 2015-06-26 18:18:42 | [diff] [blame] | 117 | "//components/invalidation/impl", |
gunsch | 1afc6517 | 2014-09-16 00:03:32 | [diff] [blame] | 118 | "//components/metrics:gpu", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 119 | "//components/metrics:net", |
gunsch | 840bc41 | 2014-09-18 19:38:06 | [diff] [blame] | 120 | "//components/metrics:profiler", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 121 | "//components/metrics/proto:proto", |
rsleevi | c327b48f8 | 2015-04-30 02:03:25 | [diff] [blame] | 122 | "//components/mime_util", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 123 | "//components/navigation_metrics", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 124 | "//components/network_time", |
fgorski | fe7b92f | 2015-06-15 19:19:40 | [diff] [blame] | 125 | "//components/offline_pages", |
[email protected] | b1c5ab68 | 2014-08-07 11:53:17 | [diff] [blame] | 126 | "//components/omnibox", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 127 | "//components/os_crypt", |
haavardm | dfdf28f | 2015-01-08 21:05:00 | [diff] [blame] | 128 | "//components/packed_ct_ev_whitelist", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 129 | "//components/password_manager/core/browser", |
| 130 | "//components/password_manager/core/common", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 131 | "//components/policy:policy_component", |
stevenjb | b237e2ae | 2015-07-02 22:02:11 | [diff] [blame] | 132 | "//components/proxy_config", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 133 | "//components/query_parser", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 134 | "//components/rappor", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 135 | "//components/renderer_context_menu", |
[email protected] | 720b1049 | 2014-07-23 08:48:40 | [diff] [blame] | 136 | "//components/search", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 137 | "//components/search_engines", |
| 138 | "//components/search_provider_logos", |
[email protected] | abd4b68 | 2014-07-16 20:26:30 | [diff] [blame] | 139 | "//components/signin/core/browser", |
| 140 | "//components/startup_metric_utils", |
[email protected] | 797b2504 | 2014-07-01 23:54:17 | [diff] [blame] | 141 | "//components/strings", |
mathp | 60143a3 | 2014-10-08 14:52:45 | [diff] [blame] | 142 | "//components/suggestions", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 143 | "//components/sync_driver", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 144 | "//components/translate/core/browser", |
| 145 | "//components/translate/core/common", |
wjmaclean | 7f63c6b | 2014-12-09 14:59:55 | [diff] [blame] | 146 | "//components/ui/zoom:ui_zoom", |
sdefresne | c083d1f | 2015-04-17 21:12:18 | [diff] [blame] | 147 | "//components/undo", |
sorin | 39eab2f | 2015-01-06 01:09:08 | [diff] [blame] | 148 | "//components/update_client", |
[email protected] | 273ae5ab | 2014-07-09 21:10:25 | [diff] [blame] | 149 | "//components/url_fixer", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 150 | "//components/user_prefs", |
isherman | 3be67db | 2014-10-24 05:57:44 | [diff] [blame] | 151 | "//components/variations", |
| 152 | "//components/variations/net", |
[email protected] | bf4545f | 2014-07-11 19:49:46 | [diff] [blame] | 153 | "//components/webdata/common", |
sdefresne | cb955cd | 2014-12-15 23:21:56 | [diff] [blame] | 154 | "//components/webdata_services", |
droger | f847994 | 2014-11-21 17:47:53 | [diff] [blame] | 155 | "//components/web_resource", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 156 | "//content/public/browser", |
| 157 | "//content/public/common", |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 158 | "//courgette:courgette_lib", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 159 | "//crypto", |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 160 | "//google_apis", |
Brett Wilson | 8f132304 | 2014-09-11 16:58:56 | [diff] [blame] | 161 | "//gpu/config", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 162 | "//skia", |
| 163 | "//sql", |
| 164 | "//sync", |
[email protected] | 797b2504 | 2014-07-01 23:54:17 | [diff] [blame] | 165 | "//third_party/cacheinvalidation", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 166 | "//third_party/icu", |
| 167 | "//third_party/libxml", |
ajwong | f7b1cb69 | 2014-08-23 21:36:22 | [diff] [blame] | 168 | "//third_party/libjingle", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 169 | "//third_party/widevine/cdm:version_h", |
| 170 | "//third_party/zlib", |
| 171 | "//third_party/zlib:minizip", |
| 172 | "//third_party/zlib:zip", |
| 173 | "//ui/base", |
cjhopman | 09981a9 | 2014-10-27 17:11:18 | [diff] [blame] | 174 | "//ui/events:events_base", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 175 | "//ui/gfx", |
| 176 | "//ui/gfx/geometry", |
[email protected] | a1d7d4f | 2014-07-16 21:33:36 | [diff] [blame] | 177 | "//ui/message_center", |
| 178 | "//ui/shell_dialogs", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 179 | "//ui/strings", |
[email protected] | 797b2504 | 2014-07-01 23:54:17 | [diff] [blame] | 180 | "//ui/resources", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 181 | ] |
| 182 | |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 183 | sources += |
| 184 | rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome") |
danduong | d8178964 | 2014-09-23 02:50:00 | [diff] [blame] | 185 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 186 | if (!is_ios) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 187 | sources += |
| 188 | rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 189 | sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 190 | ".", |
| 191 | "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 192 | sources += rebase_path(gypi_values.chrome_browser_bookmark_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 193 | ".", |
| 194 | "//chrome") |
stuartmorgan | 997cf23d | 2014-12-04 21:01:18 | [diff] [blame] | 195 | sources += rebase_path(gypi_values.chrome_browser_browser_process_sources, |
| 196 | ".", |
| 197 | "//chrome") |
| 198 | sources += rebase_path(gypi_values.chrome_browser_content_settings_sources, |
| 199 | ".", |
| 200 | "//chrome") |
benwells | edf5e08 | 2015-04-23 02:45:14 | [diff] [blame] | 201 | sources += rebase_path(gypi_values.chrome_browser_engagement_sources, |
| 202 | ".", |
| 203 | "//chrome") |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 204 | sources += |
| 205 | rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome") |
| 206 | sources += |
| 207 | rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome") |
| 208 | sources += |
| 209 | rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome") |
| 210 | sources += |
| 211 | rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome") |
| 212 | sources += |
| 213 | rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 214 | sources += rebase_path(gypi_values.chrome_browser_password_manager_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 215 | ".", |
| 216 | "//chrome") |
mlamouri | 4e37202 | 2015-03-29 14:51:06 | [diff] [blame] | 217 | sources += rebase_path(gypi_values.chrome_browser_permissions_sources, |
| 218 | ".", |
| 219 | "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 220 | sources += rebase_path(gypi_values.chrome_browser_predictor_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 221 | ".", |
| 222 | "//chrome") |
| 223 | sources += |
| 224 | rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 225 | sources += rebase_path(gypi_values.chrome_browser_profiles_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 226 | ".", |
| 227 | "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 228 | sources += rebase_path(gypi_values.chrome_browser_search_engines_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 229 | ".", |
| 230 | "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 231 | sources += rebase_path(gypi_values.chrome_browser_services_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 232 | ".", |
| 233 | "//chrome") |
| 234 | sources += |
stuartmorgan | 997cf23d | 2014-12-04 21:01:18 | [diff] [blame] | 235 | rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome") |
| 236 | sources += |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 237 | rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome") |
| 238 | sources += |
stuartmorgan | 997cf23d | 2014-12-04 21:01:18 | [diff] [blame] | 239 | rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome") |
| 240 | sources += |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 241 | rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 242 | sources += rebase_path(gypi_values.chrome_browser_web_resource_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 243 | ".", |
| 244 | "//chrome") |
| 245 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 246 | deps += [ |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 247 | "//apps", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 248 | "//cc", |
brettw | ca93458 | 2015-02-24 21:50:27 | [diff] [blame] | 249 | "//chrome/app:generated_resources_map", |
| 250 | "//chrome/app/theme:theme_resources", |
[email protected] | 55699f39 | 2014-08-20 22:16:30 | [diff] [blame] | 251 | "//chrome/browser/devtools", |
brettw | ca93458 | 2015-02-24 21:50:27 | [diff] [blame] | 252 | "//chrome/browser/resources:component_extension_resources", |
[email protected] | 55699f39 | 2014-08-20 22:16:30 | [diff] [blame] | 253 | "//chrome/installer/util", |
oshima | f6539842 | 2014-11-18 23:30:42 | [diff] [blame] | 254 | "//components/app_modal", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 255 | "//components/autofill/content/browser", |
lazyboy | 14082d2 | 2015-04-02 01:04:58 | [diff] [blame] | 256 | "//components/browsing_data", |
jeremyim | 364ac118 | 2015-03-03 18:49:43 | [diff] [blame] | 257 | "//components/data_reduction_proxy/content/browser", |
dgozman | ec2b982a | 2015-04-28 10:36:39 | [diff] [blame] | 258 | "//components/devtools_discovery", |
dgozman | 102fee9 | 2015-04-20 15:45:46 | [diff] [blame] | 259 | "//components/devtools_http_handler", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 260 | "//components/dom_distiller/content", |
sdefresne | 001b10de | 2015-03-20 18:41:46 | [diff] [blame] | 261 | "//components/favicon/content", |
sdefresne | 71524662 | 2015-01-12 16:24:04 | [diff] [blame] | 262 | "//components/history/content/browser", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 263 | "//components/keyed_service/content", |
[email protected] | 55699f39 | 2014-08-20 22:16:30 | [diff] [blame] | 264 | "//components/navigation_interception", |
| 265 | "//components/password_manager/content/browser", |
dbeam | 155ac97 | 2015-04-20 15:34:48 | [diff] [blame] | 266 | "//components/plugins/common", |
bauerb | f0e64aa | 2015-06-25 15:54:07 | [diff] [blame] | 267 | "//components/safe_json", |
brettw | a22cb3b | 2015-04-30 20:23:12 | [diff] [blame] | 268 | "//components/sessions", |
[email protected] | abd4b68 | 2014-07-16 20:26:30 | [diff] [blame] | 269 | "//components/storage_monitor", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 270 | "//components/translate/content/browser", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 271 | "//components/url_matcher", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 272 | "//components/visitedlink/browser", |
| 273 | "//components/visitedlink/common", |
hanxi | 149b92d | 2014-09-11 21:57:18 | [diff] [blame] | 274 | "//components/web_cache/browser", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 275 | "//components/web_modal", |
[email protected] | a9ca8d5 | 2014-08-22 10:21:08 | [diff] [blame] | 276 | "//content/app/resources", |
[email protected] | 55699f39 | 2014-08-20 22:16:30 | [diff] [blame] | 277 | "//media", |
rockot | 50dc569 | 2015-07-08 01:57:26 | [diff] [blame^] | 278 | "//mojo/application/public/cpp", |
cjhopman | 09981a9 | 2014-10-27 17:11:18 | [diff] [blame] | 279 | "//mojo/common", |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 280 | "//mojo/environment:chromium", |
Brett Wilson | 83fd424 | 2014-09-02 19:45:33 | [diff] [blame] | 281 | "//net:extras", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 282 | "//net:net_with_v8", |
pilgrim | 4af8c21 | 2014-09-05 17:30:15 | [diff] [blame] | 283 | "//storage/browser", |
pilgrim | f55d19fc | 2014-09-04 00:05:24 | [diff] [blame] | 284 | "//storage/common", |
erg | a3c614c9 | 2015-04-03 17:47:51 | [diff] [blame] | 285 | "//third_party/WebKit/public:image_resources", |
[email protected] | 4eebe74d | 2014-08-13 02:54:46 | [diff] [blame] | 286 | "//third_party/WebKit/public:resources", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 287 | "//third_party/expat", |
| 288 | "//third_party/leveldatabase", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 289 | "//third_party/libaddressinput", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 290 | "//third_party/libyuv", |
blundell | 70fb54767 | 2015-01-19 17:18:33 | [diff] [blame] | 291 | "//third_party/mojo/src/mojo/edk/system", |
| 292 | "//third_party/mojo/src/mojo/public/cpp/bindings", |
| 293 | "//third_party/mojo/src/mojo/public/js", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 294 | "//third_party/re2", |
| 295 | "//third_party/smhasher:cityhash", |
Brett Wilson | 83fd424 | 2014-09-02 19:45:33 | [diff] [blame] | 296 | "//third_party/webrtc/modules/desktop_capture", |
spang | 1c36fac | 2015-02-05 19:55:12 | [diff] [blame] | 297 | "//ui/base/ime", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 298 | "//ui/gl", |
brettw | ca93458 | 2015-02-24 21:50:27 | [diff] [blame] | 299 | "//ui/resources", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 300 | "//ui/surface", |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 301 | "//ui/web_dialogs", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 302 | "//v8", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 303 | ] |
paulmeyer | 27b328b | 2015-06-17 21:26:12 | [diff] [blame] | 304 | |
| 305 | if (toolkit_views) { |
| 306 | deps += [ "//ui/views" ] |
| 307 | } |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 308 | } else { # iOS |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 309 | sources += |
| 310 | rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome") |
| 311 | sources += |
| 312 | rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome") |
| 313 | deps += [ "//net" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 314 | libs += [ |
| 315 | "CoreTelephony.framework", |
| 316 | "CoreText.framework", |
| 317 | "MobileCoreServices.framework", |
| 318 | "QuartzCore.framework", |
| 319 | ] |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 320 | ldflags += [ |
| 321 | "-weak_framework", |
| 322 | "CoreImage", |
| 323 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 324 | } |
| 325 | |
| 326 | if (is_win || is_mac) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 327 | sources += |
| 328 | rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 329 | } |
| 330 | if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) { |
| 331 | sources += [ |
| 332 | "net/disk_cache_dir_policy_handler.cc", |
| 333 | "net/disk_cache_dir_policy_handler.h", |
| 334 | ] |
| 335 | } |
| 336 | if (!is_android && !is_ios && enable_configuration_policy) { |
| 337 | sources += [ |
| 338 | "download/download_dir_policy_handler.cc", |
| 339 | "download/download_dir_policy_handler.h", |
| 340 | ] |
| 341 | } |
| 342 | if (is_mac) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 343 | sources += |
| 344 | rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 345 | deps += [ |
| 346 | #"app_shim" TODO(GYP) |
tapted | 63829f7 | 2014-09-24 23:50:50 | [diff] [blame] | 347 | #"browser_app_shim" TODO(GYP) |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 348 | ] |
| 349 | } |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 350 | if (enable_extensions) { |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 351 | public_deps += [ "//chrome/browser/extensions" ] |
[email protected] | cc5b3be | 2014-08-15 23:24:52 | [diff] [blame] | 352 | deps += [ |
[email protected] | cc5b3be | 2014-08-15 23:24:52 | [diff] [blame] | 353 | "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto", |
thestig | e33aa242 | 2014-09-22 22:16:30 | [diff] [blame] | 354 | "//chrome/common/extensions/api", |
| 355 | "//chrome/common/extensions/api:api_registration", |
msarda | 4c408ff | 2015-04-22 14:27:56 | [diff] [blame] | 356 | "//components/proximity_auth/ble", |
tengs | 4758c08 | 2014-12-19 18:51:44 | [diff] [blame] | 357 | "//components/proximity_auth/cryptauth", |
oshima | 758abebc | 2014-11-06 10:55:50 | [diff] [blame] | 358 | "//extensions/components/javascript_dialog_extensions_client", |
thestig | 73f4cdc | 2015-01-15 01:51:06 | [diff] [blame] | 359 | "//media/cast:net", |
[email protected] | cc5b3be | 2014-08-15 23:24:52 | [diff] [blame] | 360 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 361 | sources += rebase_path(gypi_values.chrome_browser_extensions_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 362 | ".", |
| 363 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 364 | } |
| 365 | if (enable_background) { |
| 366 | sources += rebase_path(gypi_values.chrome_browser_background_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 367 | ".", |
| 368 | "//chrome") |
jamesr | 29ea2d12 | 2014-10-23 10:30:27 | [diff] [blame] | 369 | if (!use_aura || is_win || is_chromeos) { |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 370 | sources -= [ "background/background_mode_manager_aura.cc" ] |
| 371 | } |
| 372 | } |
| 373 | if (enable_task_manager) { |
| 374 | sources += rebase_path(gypi_values.chrome_browser_task_manager_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 375 | ".", |
| 376 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 377 | } |
| 378 | if (enable_spellcheck) { |
| 379 | sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 380 | ".", |
| 381 | "//chrome") |
tfarina | e4a03f8f | 2015-05-18 05:55:26 | [diff] [blame] | 382 | deps += [ "//third_party/hunspell" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 383 | } |
| 384 | if (enable_nacl) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 385 | sources += |
| 386 | rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome") |
dpranke | 6065cf7 | 2015-02-26 03:30:58 | [diff] [blame] | 387 | deps += [ "//components/nacl:nacl_browser" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 388 | } |
apavlov | e749bca | 2014-09-30 11:07:41 | [diff] [blame] | 389 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 390 | if (enable_configuration_policy) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 391 | sources += |
| 392 | rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources, |
| 393 | ".", |
| 394 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 395 | deps += [ |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 396 | "//components/policy", |
[email protected] | 797b2504 | 2014-07-01 23:54:17 | [diff] [blame] | 397 | "//components/policy/proto", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 398 | ] |
| 399 | if (!is_ios) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 400 | sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources, |
| 401 | ".", |
| 402 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 403 | } |
| 404 | if (!is_chromeos) { |
| 405 | sources += rebase_path( |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 406 | gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources, |
| 407 | ".", |
| 408 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 409 | } |
| 410 | if (is_win || is_mac || is_desktop_linux) { |
| 411 | sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 412 | ".", |
| 413 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 414 | } |
cjhopman | 09981a9 | 2014-10-27 17:11:18 | [diff] [blame] | 415 | if (is_android || is_ios) { |
| 416 | sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 417 | ".", |
| 418 | "//chrome") |
cjhopman | 09981a9 | 2014-10-27 17:11:18 | [diff] [blame] | 419 | } else { |
amistry | 6e1ed1b | 2015-03-12 05:24:01 | [diff] [blame] | 420 | deps += [ |
| 421 | "//chrome/browser/policy:path_parser", |
| 422 | "//net:net_browser_services", |
| 423 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 424 | } |
| 425 | } else { |
| 426 | # Configuration policy disabled. |
| 427 | sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 428 | ".", |
| 429 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 430 | } |
| 431 | |
| 432 | if (enable_plugins) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 433 | sources += |
| 434 | rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 435 | deps += [ |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 436 | "//components/pdf/browser", |
brettw | f7eb6ca | 2015-02-14 01:37:31 | [diff] [blame] | 437 | "//ppapi/proxy:ipc", |
thestig | 11b815e9 | 2014-08-26 00:32:14 | [diff] [blame] | 438 | "//third_party/adobe/flash:flapper_version_h", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 439 | ] |
| 440 | } |
| 441 | if (safe_browsing_mode != 0) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 442 | sources += |
stuartmorgan | 1b3df82 | 2014-12-08 14:36:11 | [diff] [blame] | 443 | rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 444 | ".", |
| 445 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 446 | deps += [ |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 447 | "//chrome/browser/safe_browsing:chunk_proto", |
mattm | 022138b5 | 2014-09-23 01:05:45 | [diff] [blame] | 448 | "//chrome/browser/safe_browsing:metadata_proto", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 449 | "//chrome/browser/safe_browsing:report_proto", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 450 | ] |
| 451 | if (safe_browsing_mode == 1) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 452 | sources += |
stuartmorgan | 1b3df82 | 2014-12-08 14:36:11 | [diff] [blame] | 453 | rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 454 | ".", |
| 455 | "//chrome") |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 456 | deps += [ "//chrome/common/safe_browsing:proto" ] |
nparker | b2cd5ee | 2015-05-13 01:12:01 | [diff] [blame] | 457 | } else if (safe_browsing_mode == 3) { |
| 458 | sources += rebase_path( |
| 459 | gypi_values.chrome_browser_safe_browsing_mobile_extended_sources, |
| 460 | ".", |
| 461 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 462 | } |
| 463 | } |
| 464 | |
amistry | f269d3b | 2015-06-09 19:18:39 | [diff] [blame] | 465 | if (enable_hotwording) { |
| 466 | defines += [ "ENABLE_HOTWORDING" ] |
| 467 | } |
| 468 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 469 | if (is_linux) { |
thestig | ee816c27 | 2014-11-22 02:47:51 | [diff] [blame] | 470 | deps += [ |
| 471 | "//device/media_transfer_protocol", |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 472 | "//device/udev_linux", |
thestig | ee816c27 | 2014-11-22 02:47:51 | [diff] [blame] | 473 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 474 | } |
| 475 | if (is_linux && !is_chromeos) { |
[email protected] | fd98b61 | 2014-07-09 22:11:47 | [diff] [blame] | 476 | deps += [ "//third_party/speech-dispatcher" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 477 | } |
| 478 | |
| 479 | if (is_chromeos) { |
| 480 | sources += rebase_path(gypi_values.chrome_browser_chromeos_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 481 | ".", |
| 482 | "//chrome") |
| 483 | deps += [ "//chrome/browser/chromeos" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 484 | } else { |
| 485 | # Non-ChromeOS. |
| 486 | sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 487 | ".", |
| 488 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 489 | } |
| 490 | |
yiyaoliu | bcd08dc2 | 2014-12-10 05:56:10 | [diff] [blame] | 491 | if (is_ios) { |
| 492 | sources -= [ |
| 493 | "metrics/signin_status_metrics_provider_base.cc", |
| 494 | "metrics/signin_status_metrics_provider_base.h", |
| 495 | ] |
| 496 | } |
| 497 | |
mukai | 8c99b88 | 2014-10-15 03:07:59 | [diff] [blame] | 498 | if (is_chromeos || is_ios) { |
| 499 | sources -= [ |
| 500 | "metrics/signin_status_metrics_provider.cc", |
| 501 | "metrics/signin_status_metrics_provider.h", |
| 502 | ] |
| 503 | } |
| 504 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 505 | if (use_cups) { |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 506 | configs += [ "//printing:cups" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 507 | } |
| 508 | if (is_desktop_linux) { |
| 509 | sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 510 | ".", |
| 511 | "//chrome") |
cmasone | 0a9e4ca | 2014-10-16 16:40:49 | [diff] [blame] | 512 | configs += [ ":gnome_keyring" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 513 | } |
dvadym | 3453202 | 2015-01-22 15:42:51 | [diff] [blame] | 514 | if (is_desktop_linux) { |
| 515 | sources += rebase_path(gypi_values.chrome_browser_libsecret_sources, |
| 516 | ".", |
| 517 | "//chrome") |
| 518 | defines += [ "USE_LIBSECRET" ] |
| 519 | } |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 520 | if (use_aura) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 521 | sources += |
| 522 | rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 523 | deps += [ |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 524 | "//ui/aura", |
| 525 | "//ui/compositor", |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 526 | "//ui/keyboard", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 527 | ] |
| 528 | } |
| 529 | if (ui_compositor_image_transport) { |
| 530 | deps += [ "//ui/gl" ] |
| 531 | } |
| 532 | |
[email protected] | 855b7de | 2014-07-08 21:02:45 | [diff] [blame] | 533 | if (use_ash) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 534 | sources += |
| 535 | rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome") |
[email protected] | 855b7de | 2014-07-08 21:02:45 | [diff] [blame] | 536 | } |
| 537 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 538 | if (use_x11) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 539 | sources += |
| 540 | rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome") |
vchigrin | bbc23e7 | 2015-01-21 22:49:23 | [diff] [blame] | 541 | } else { |
| 542 | sources -= [ "password_manager/password_store_x.cc" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 543 | } |
| 544 | if (is_posix && !is_mac && !is_ios) { |
| 545 | sources += [ |
rsesek | a0a7a04 | 2014-09-18 23:59:20 | [diff] [blame] | 546 | "//chrome/app/chrome_crash_reporter_client.cc", |
| 547 | "//chrome/app/chrome_crash_reporter_client.h", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 548 | ] |
| 549 | deps += [ |
Robert Sesek | abcd810 | 2014-08-27 16:12:44 | [diff] [blame] | 550 | "//components/crash/app", |
| 551 | "//components/crash/browser", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 552 | ] |
| 553 | } |
| 554 | if (use_nss_certs) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 555 | sources += |
| 556 | rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome") |
mukai | 8c99b88 | 2014-10-15 03:07:59 | [diff] [blame] | 557 | if (is_chromeos) { |
| 558 | sources -= [ "net/nss_context_linux.cc" ] |
| 559 | } |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 560 | } |
| 561 | if (enable_notifications) { |
| 562 | sources += rebase_path(gypi_values.chrome_browser_notifications_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 563 | ".", |
| 564 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 565 | if (!is_android) { |
| 566 | sources += rebase_path( |
stuartmorgan | 1b3df82 | 2014-12-08 14:36:11 | [diff] [blame] | 567 | gypi_values.chrome_browser_notifications_non_android_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 568 | ".", |
| 569 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 570 | } |
| 571 | } |
| 572 | if (enable_themes) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 573 | sources += |
| 574 | rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 575 | } |
| 576 | |
vitalybuka | 93eea40 | 2014-11-05 23:47:15 | [diff] [blame] | 577 | if (enable_basic_printing || enable_print_preview) { |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 578 | # Some form of printing support. |
stuartmorgan | 1b3df82 | 2014-12-08 14:36:11 | [diff] [blame] | 579 | sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 580 | ".", |
| 581 | "//chrome") |
| 582 | deps += [ "//printing" ] |
vitalybuka | 36259ca | 2014-08-28 23:42:24 | [diff] [blame] | 583 | if (is_win) { |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 584 | sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 585 | ".", |
| 586 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 587 | } |
vitalybuka | 93eea40 | 2014-11-05 23:47:15 | [diff] [blame] | 588 | if (enable_print_preview) { |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 589 | # Full printing on top of the above. |
stuartmorgan | 1b3df82 | 2014-12-08 14:36:11 | [diff] [blame] | 590 | sources += rebase_path(gypi_values.chrome_browser_printing_full_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 591 | ".", |
| 592 | "//chrome") |
vitalybuka | 93eea40 | 2014-11-05 23:47:15 | [diff] [blame] | 593 | } else { |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 594 | # Partial-only printing support. |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 595 | sources += |
stuartmorgan | 1b3df82 | 2014-12-08 14:36:11 | [diff] [blame] | 596 | rebase_path(gypi_values.chrome_browser_printing_basic_only_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 597 | ".", |
| 598 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 599 | } |
| 600 | } |
| 601 | if (enable_captive_portal_detection) { |
| 602 | sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 603 | ".", |
| 604 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 605 | } |
| 606 | if (enable_session_service) { |
| 607 | sources += rebase_path(gypi_values.chrome_browser_session_service_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 608 | ".", |
| 609 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 610 | } |
| 611 | |
thestig | dc37720 | 2014-10-28 22:06:02 | [diff] [blame] | 612 | if (!is_android && !is_ios && !is_chromeos) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 613 | sources += |
| 614 | rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome") |
thestig | dc37720 | 2014-10-28 22:06:02 | [diff] [blame] | 615 | } |
| 616 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 617 | if (is_android || is_ios) { |
| 618 | # Mobile. |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 619 | sources += |
| 620 | rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 621 | } else { |
| 622 | # Non-mobile. |
| 623 | sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 624 | ".", |
| 625 | "//chrome") |
reillyg | e471fab | 2014-08-29 01:58:43 | [diff] [blame] | 626 | deps += [ |
sdefresne | bbf563c | 2015-03-17 11:09:09 | [diff] [blame] | 627 | "//components/feedback", |
reillyg | e471fab | 2014-08-29 01:58:43 | [diff] [blame] | 628 | "//device/core", |
rockot | 50dc569 | 2015-07-08 01:57:26 | [diff] [blame^] | 629 | "//device/devices_app/public/cpp", |
| 630 | "//device/devices_app/public/cpp:factory", |
reillyg | d77718d | 2014-09-04 00:57:56 | [diff] [blame] | 631 | "//device/usb", |
reillyg | e471fab | 2014-08-29 01:58:43 | [diff] [blame] | 632 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 633 | } |
| 634 | |
| 635 | if (is_android) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 636 | sources += |
| 637 | rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome") |
twellington | caf0eb75 | 2015-06-01 16:19:50 | [diff] [blame] | 638 | sources += rebase_path(gypi_values.chrome_browser_bookmark_android_sources, |
| 639 | ".", |
| 640 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 641 | deps += [ |
pkotwicz | 127726f | 2015-05-29 15:20:12 | [diff] [blame] | 642 | ":client_discourse_context_proto", |
| 643 | ":delta_file_proto", |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 644 | ":jni_headers", |
[email protected] | 55699f39 | 2014-08-20 22:16:30 | [diff] [blame] | 645 | "//components/cdm/browser", |
cjhopman | 09981a9 | 2014-10-27 17:11:18 | [diff] [blame] | 646 | "//components/enhanced_bookmarks", |
twifkak | 8c9f750 | 2015-06-25 02:12:57 | [diff] [blame] | 647 | "//components/precache/content", |
| 648 | "//components/precache/core", |
estade | e37f822 | 2014-11-07 21:35:22 | [diff] [blame] | 649 | "//components/resources:components_resources", |
mathiash | 3ecfdfa | 2015-04-13 15:06:07 | [diff] [blame] | 650 | "//components/service_tab_launcher", |
cjhopman | 09981a9 | 2014-10-27 17:11:18 | [diff] [blame] | 651 | "//components/web_contents_delegate_android", |
| 652 | "//third_party/android_opengl/etc1", |
fdegans | 34f31e27 | 2015-05-22 16:59:03 | [diff] [blame] | 653 | "//third_party/android_tools:cpu_features", |
twellington | 0bc6149 | 2015-01-30 20:14:13 | [diff] [blame] | 654 | "//third_party/libaddressinput:util", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 655 | ] |
| 656 | deps -= [ |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 657 | "//third_party/libaddressinput", |
[email protected] | abd4b68 | 2014-07-16 20:26:30 | [diff] [blame] | 658 | "//components/storage_monitor", |
[email protected] | abd4b68 | 2014-07-16 20:26:30 | [diff] [blame] | 659 | "//components/web_modal", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 660 | ] |
megjablon | 5effca2e | 2015-02-13 23:54:07 | [diff] [blame] | 661 | defines += [ "ENABLE_DATA_REDUCTION_PROXY_DEBUGGING" ] |
rsesek | e59ea89 | 2015-03-19 22:27:44 | [diff] [blame] | 662 | |
| 663 | if (use_seccomp_bpf) { |
| 664 | defines += [ "USE_SECCOMP_BPF" ] |
rsesek | 65d3135 | 2015-06-08 22:53:44 | [diff] [blame] | 665 | deps += [ "//sandbox/linux:seccomp_bpf" ] |
rsesek | e59ea89 | 2015-03-19 22:27:44 | [diff] [blame] | 666 | } |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 667 | } |
| 668 | |
| 669 | if (is_mac) { |
| 670 | deps += [ |
[email protected] | 6b5d2f9 | 2014-07-30 00:40:03 | [diff] [blame] | 671 | "//third_party/google_toolbox_for_mac", |
tfarina | 2289630 | 2015-02-23 21:18:03 | [diff] [blame] | 672 | "//third_party/mozilla", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 673 | ] |
| 674 | libs += [ |
| 675 | "Accelerate.framework", |
| 676 | "AddressBook.framework", |
| 677 | "AudioUnit.framework", |
| 678 | "DiskArbitration.framework", |
| 679 | "IOKit.framework", |
| 680 | "ImageCaptureCore.framework", |
| 681 | "OpenGL.framework", |
| 682 | "QuartzCore.framework", |
| 683 | "SecurityInterface.framework", |
| 684 | ] |
| 685 | } |
| 686 | |
| 687 | if (enable_rlz) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 688 | sources += |
| 689 | rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 690 | deps += [ "//rlz:rlz_lib" ] |
| 691 | } |
| 692 | |
| 693 | # TODO(GYP) |
| 694 | # Temporary fix to break the browser target into smaller chunks so it |
| 695 | # will link with goma builds. |
| 696 | #["OS=="win" and chromium_win_pch==0", { |
| 697 | # "msvs_shard": 4, |
| 698 | #}], |
| 699 | |
| 700 | if (is_win) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 701 | sources += |
| 702 | rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome") |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 703 | public_deps += [ |
| 704 | "//ui/views", |
| 705 | "//ui/views/controls/webview", |
| 706 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 707 | deps += [ |
vchigrin | 9593e7a | 2015-01-27 10:08:19 | [diff] [blame] | 708 | ":chrome_process_finder", |
[email protected] | 55699f39 | 2014-08-20 22:16:30 | [diff] [blame] | 709 | "//chrome:version_header", |
| 710 | "//chrome/installer/util:strings", |
vchigrin | f2b90aa | 2015-01-23 11:12:19 | [diff] [blame] | 711 | "//chrome_elf", |
| 712 | "//chrome_elf:constants", |
| 713 | "//chrome_elf:dll_hash", |
vchigrin | 61944ae | 2015-01-30 23:51:32 | [diff] [blame] | 714 | "//components/browser_watcher", |
| 715 | "//components/browser_watcher:browser_watcher_client", |
vchigrin | bbc23e7 | 2015-01-21 22:49:23 | [diff] [blame] | 716 | "//google_update", |
[email protected] | 55699f39 | 2014-08-20 22:16:30 | [diff] [blame] | 717 | "//third_party/iaccessible2", |
| 718 | "//third_party/isimpledom", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 719 | "//third_party/wtl", |
vchigrin | 88ed6f4 | 2015-01-17 11:56:42 | [diff] [blame] | 720 | "//ui/metro_viewer", |
| 721 | "//win8:metro_viewer", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 722 | ] |
brettw | 44a5cf8 | 2015-04-08 19:48:22 | [diff] [blame] | 723 | libs += [ |
| 724 | "credui.lib", |
| 725 | "netapi32.lib", |
| 726 | ] |
grt | 235b3f09 | 2015-05-27 21:42:48 | [diff] [blame] | 727 | if (!is_chrome_branded) { |
| 728 | deps -= [ "//google_update" ] |
| 729 | sources -= [ |
| 730 | "google/did_run_updater_win.cc", |
| 731 | "google/did_run_updater_win.h", |
| 732 | "google/google_update_win.cc", |
| 733 | "google/google_update_win.h", |
| 734 | ] |
| 735 | } |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 736 | } else { |
| 737 | # Non-Windows. |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 738 | sources += |
| 739 | rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome") |
[email protected] | f6dc4ae | 2014-07-30 00:10:37 | [diff] [blame] | 740 | if (toolkit_views) { |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 741 | deps += [ |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 742 | "//ui/views", |
| 743 | "//ui/views/controls/webview", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 744 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 745 | } |
| 746 | } |
| 747 | |
| 748 | if (is_linux) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 749 | sources += |
| 750 | rebase_path(gypi_values.chrome_browser_linux_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 751 | if (use_aura) { |
| 752 | configs += [ |
| 753 | "//build/config/linux:dbus", |
| 754 | "//build/config/linux:fontconfig", |
| 755 | ] |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 756 | deps += [ "//dbus" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 757 | } |
| 758 | if (use_x11) { |
| 759 | configs += [ "//build/config/linux:x11" ] |
| 760 | deps += [ "//ui/gfx/x" ] |
| 761 | } |
| 762 | } |
| 763 | |
| 764 | if (is_desktop_linux) { |
stuartmorgan | 7f569a82 | 2014-12-08 20:10:54 | [diff] [blame] | 765 | sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 766 | ".", |
| 767 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 768 | } |
| 769 | if (enable_plugin_installation) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 770 | sources += |
| 771 | rebase_path(gypi_values.chrome_browser_plugin_installation_sources, |
| 772 | ".", |
| 773 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 774 | } |
| 775 | if (enable_app_list) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 776 | deps += [ "//ui/app_list" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 777 | } |
treib | 87bb89cbb | 2014-12-01 16:01:47 | [diff] [blame] | 778 | if (enable_supervised_users) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 779 | sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources, |
| 780 | ".", |
| 781 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 782 | } |
bauerb | 7f3b854 | 2015-06-29 19:56:19 | [diff] [blame] | 783 | if (enable_supervised_users && !is_android && !is_ios) { |
| 784 | sources += |
| 785 | rebase_path(gypi_values.chrome_browser_supervised_user_legacy_sources, |
| 786 | ".", |
| 787 | "//chrome") |
| 788 | } |
treib | 87bb89cbb | 2014-12-01 16:01:47 | [diff] [blame] | 789 | if (enable_supervised_users && enable_themes) { |
thestig | 169a636 | 2014-11-13 20:47:59 | [diff] [blame] | 790 | sources += rebase_path( |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 791 | gypi_values.chrome_browser_supervised_user_and_themes_sources, |
| 792 | ".", |
| 793 | "//chrome") |
thestig | 169a636 | 2014-11-13 20:47:59 | [diff] [blame] | 794 | } |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 795 | if (enable_webrtc) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 796 | sources += |
| 797 | rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 798 | } |
| 799 | if (enable_service_discovery) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 800 | sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources, |
| 801 | ".", |
| 802 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 803 | } |
| 804 | if (enable_mdns) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 805 | sources += |
| 806 | rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 807 | } |
| 808 | if (!enable_autofill_dialog || is_android || is_ios) { |
| 809 | sources -= [ |
| 810 | "autofill/validation_rules_storage_factory.cc", |
| 811 | "autofill/validation_rules_storage_factory.h", |
| 812 | ] |
| 813 | } |
| 814 | if (enable_wifi_bootstrapping) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 815 | sources += |
| 816 | rebase_path(gypi_values.chrome_browser_wifi_bootstrapping_sources, |
| 817 | ".", |
| 818 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 819 | if (is_win || is_mac) { |
| 820 | # TODO(brettw) as of this writing wifi bootstrapping is set on Windows |
| 821 | # and Mac, so this test is meaningless. Can we merge these lists? |
| 822 | sources += rebase_path( |
stuartmorgan | 1b3df82 | 2014-12-08 14:36:11 | [diff] [blame] | 823 | gypi_values.chrome_browser_wifi_bootstrapping_win_mac_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 824 | ".", |
| 825 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 826 | } |
| 827 | } |
mfoltz | 150bb8b | 2015-04-09 22:30:05 | [diff] [blame] | 828 | if (enable_media_router) { |
imcheng | b6b09239f | 2015-05-15 21:41:55 | [diff] [blame] | 829 | deps += [ "//chrome/browser/media/router" ] |
mfoltz | 150bb8b | 2015-04-09 22:30:05 | [diff] [blame] | 830 | } |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 831 | } |
| 832 | |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 833 | if (is_android) { |
| 834 | # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers |
| 835 | generate_jni("jni_headers") { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 836 | sources = |
| 837 | rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome") |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 838 | jni_package = "chrome" |
| 839 | } |
pkotwicz | 127726f | 2015-05-29 15:20:12 | [diff] [blame] | 840 | |
| 841 | #GYP: '//chrome/chrome_browser.gypi:client_discourse_context_proto' |
| 842 | proto_library("client_discourse_context_proto") { |
| 843 | sources = [ |
| 844 | "android/proto/client_discourse_context.proto", |
| 845 | ] |
| 846 | } |
| 847 | |
| 848 | #GYP: '//chrome/chrome_browser.gypi:delta_file_proto' |
| 849 | proto_library("delta_file_proto") { |
| 850 | sources = [ |
| 851 | "android/proto/delta_file.proto", |
| 852 | ] |
| 853 | } |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 854 | } |
| 855 | |
vchigrin | 9593e7a | 2015-01-27 10:08:19 | [diff] [blame] | 856 | if (is_win) { |
| 857 | source_set("chrome_process_finder") { |
| 858 | sources = [ |
| 859 | "chrome_process_finder_win.cc", |
| 860 | "chrome_process_finder_win.h", |
| 861 | ] |
| 862 | deps = [ |
| 863 | "//base", |
| 864 | "//chrome/browser/metro_utils", |
| 865 | "//chrome/common:constants", |
| 866 | ] |
| 867 | if (enable_configuration_policy) { |
| 868 | deps += [ "//chrome/browser/policy:path_parser" ] |
| 869 | } |
| 870 | } |
| 871 | } |
| 872 | |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 873 | # GYP version: chrome/chrome_resources.gyp:chrome_resources |
| 874 | # (generate_browser_resources action) |
| 875 | grit("resources") { |
| 876 | source = "browser_resources.grd" |
[email protected] | 4888549 | 2014-08-13 11:22:41 | [diff] [blame] | 877 | output_dir = "$root_gen_dir/chrome" |
[email protected] | cb0c67a | 2014-07-22 16:37:26 | [diff] [blame] | 878 | outputs = [ |
| 879 | "grit/browser_resources.h", |
| 880 | "browser_resources.pak", |
| 881 | ] |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 882 | |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 883 | omnibox_mojom_file = |
| 884 | "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom.js" |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 885 | |
| 886 | grit_flags = [ |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 887 | "-E", |
| 888 | "about_credits_file=" + rebase_path(about_credits_file, root_build_dir), |
| 889 | "-E", |
| 890 | "additional_modules_list_file=" + |
| 891 | rebase_path(additional_modules_list_file, root_build_dir), |
| 892 | "-E", |
| 893 | "omnibox_mojom_file=" + rebase_path(omnibox_mojom_file, root_build_dir), |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 894 | ] |
| 895 | |
| 896 | deps = [ |
| 897 | ":about_credits", |
| 898 | ":chrome_internal_resources_gen", |
brettw | de262b0 | 2015-05-27 19:41:42 | [diff] [blame] | 899 | |
| 900 | # Depend only on the generated mojo bindings since we read the .mojom.js |
| 901 | # file, rather than the whole mojo target which will link the C++ bindings. |
| 902 | "//chrome/browser/ui/webui/omnibox:mojo_bindings__generator", |
vchigrin | 8eede94 | 2015-01-29 09:28:15 | [diff] [blame] | 903 | ] |
| 904 | inputs = [ |
| 905 | omnibox_mojom_file, |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 906 | ] |
| 907 | } |
| 908 | |
| 909 | # GYP version: chrome/chrome_resource.gyp:about_credits |
| 910 | action("about_credits") { |
| 911 | script = "//tools/licenses.py" |
| 912 | |
dbeam | c7776c7 | 2014-12-17 02:24:05 | [diff] [blame] | 913 | inputs = [ |
| 914 | # This is not a complete list. TODO(phajdan.jr, dbeam): licenses.py needs to |
| 915 | # generate a .d file with all the licenses/credits that about:credits uses. |
| 916 | # Then about:credits will automatically rebuild when one of them changes. |
| 917 | # See: depfile in gn's documentation (gn help depfile). |
| 918 | "resources/about_credits.tmpl", |
| 919 | "resources/about_credits_entry.tmpl", |
| 920 | ] |
| 921 | |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 922 | outputs = [ |
| 923 | about_credits_file, |
| 924 | ] |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 925 | |
| 926 | args = [ |
| 927 | "credits", |
| 928 | rebase_path(about_credits_file, root_build_dir), |
| 929 | ] |
| 930 | } |
| 931 | |
| 932 | # GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen |
engedy | 99d0e11b | 2014-09-30 13:32:41 | [diff] [blame] | 933 | if (is_chrome_branded) { |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 934 | action("chrome_internal_resources_gen") { |
engedy | 99d0e11b | 2014-09-30 13:32:41 | [diff] [blame] | 935 | script = "internal/transform_additional_modules_list.py" |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 936 | sources = [ |
| 937 | "internal/resources/additional_modules_list.input", |
| 938 | ] |
| 939 | outputs = [ |
| 940 | additional_modules_list_file, |
| 941 | ] |
engedy | 99d0e11b | 2014-09-30 13:32:41 | [diff] [blame] | 942 | args = rebase_path(sources, root_build_dir) + |
| 943 | rebase_path(outputs, root_build_dir) |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 944 | } |
| 945 | } else { |
| 946 | group("chrome_internal_resources_gen") { |
| 947 | # Empty placeholder. |
| 948 | } |
| 949 | } |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 950 | |
| 951 | # In GYP this is part of test_support_common. |
| 952 | source_set("test_support") { |
| 953 | testonly = true |
| 954 | |
| 955 | # Always include this via the main test support target. |
| 956 | visibility = [ "//chrome/test:test_support" ] |
| 957 | |
| 958 | sources = [ |
| 959 | "browsing_data/mock_browsing_data_appcache_helper.cc", |
| 960 | "browsing_data/mock_browsing_data_appcache_helper.h", |
| 961 | "browsing_data/mock_browsing_data_channel_id_helper.cc", |
| 962 | "browsing_data/mock_browsing_data_channel_id_helper.h", |
| 963 | "browsing_data/mock_browsing_data_cookie_helper.cc", |
| 964 | "browsing_data/mock_browsing_data_cookie_helper.h", |
| 965 | "browsing_data/mock_browsing_data_database_helper.cc", |
| 966 | "browsing_data/mock_browsing_data_database_helper.h", |
| 967 | "browsing_data/mock_browsing_data_file_system_helper.cc", |
| 968 | "browsing_data/mock_browsing_data_file_system_helper.h", |
| 969 | "browsing_data/mock_browsing_data_flash_lso_helper.cc", |
| 970 | "browsing_data/mock_browsing_data_flash_lso_helper.h", |
| 971 | "browsing_data/mock_browsing_data_indexed_db_helper.cc", |
| 972 | "browsing_data/mock_browsing_data_indexed_db_helper.h", |
| 973 | "browsing_data/mock_browsing_data_local_storage_helper.cc", |
| 974 | "browsing_data/mock_browsing_data_local_storage_helper.h", |
| 975 | "browsing_data/mock_browsing_data_quota_helper.cc", |
| 976 | "browsing_data/mock_browsing_data_quota_helper.h", |
| 977 | "browsing_data/mock_browsing_data_service_worker_helper.cc", |
| 978 | "browsing_data/mock_browsing_data_service_worker_helper.h", |
| 979 | "download/download_test_file_activity_observer.cc", |
| 980 | "download/download_test_file_activity_observer.h", |
| 981 | "download/test_download_shelf.cc", |
| 982 | "download/test_download_shelf.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 983 | "invalidation/fake_invalidation_service.cc", |
| 984 | "invalidation/fake_invalidation_service.h", |
| 985 | "media/fake_desktop_media_list.cc", |
| 986 | "media/fake_desktop_media_list.h", |
| 987 | "net/dns_probe_test_util.cc", |
| 988 | "net/dns_probe_test_util.h", |
| 989 | "net/url_request_mock_util.cc", |
| 990 | "net/url_request_mock_util.h", |
| 991 | "notifications/notification_test_util.cc", |
| 992 | "notifications/notification_test_util.h", |
| 993 | "password_manager/mock_password_store_service.cc", |
| 994 | "password_manager/mock_password_store_service.h", |
| 995 | "password_manager/null_password_store_service.cc", |
| 996 | "password_manager/null_password_store_service.h", |
| 997 | "password_manager/test_password_store_service.cc", |
| 998 | "password_manager/test_password_store_service.h", |
| 999 | "prefs/pref_service_mock_factory.cc", |
| 1000 | "prefs/pref_service_mock_factory.h", |
| 1001 | "profile_resetter/profile_resetter_test_base.cc", |
| 1002 | "profile_resetter/profile_resetter_test_base.h", |
| 1003 | "search_engines/template_url_service_factory_test_util.cc", |
| 1004 | "search_engines/template_url_service_factory_test_util.h", |
| 1005 | "search_engines/template_url_service_test_util.cc", |
| 1006 | "search_engines/template_url_service_test_util.h", |
sque | f7d723a | 2015-01-26 22:13:45 | [diff] [blame] | 1007 | "sessions/session_restore_test_helper.cc", |
| 1008 | "sessions/session_restore_test_helper.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1009 | "sessions/session_service_test_helper.cc", |
| 1010 | "sessions/session_service_test_helper.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1011 | "signin/fake_account_tracker_service.cc", |
| 1012 | "signin/fake_account_tracker_service.h", |
mlerman | 2933d01 | 2015-04-24 18:34:27 | [diff] [blame] | 1013 | "signin/fake_gaia_cookie_manager_service.cc", |
| 1014 | "signin/fake_gaia_cookie_manager_service.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1015 | "signin/fake_profile_oauth2_token_service.cc", |
| 1016 | "signin/fake_profile_oauth2_token_service.h", |
| 1017 | "signin/fake_profile_oauth2_token_service_builder.cc", |
| 1018 | "signin/fake_profile_oauth2_token_service_builder.h", |
| 1019 | "signin/fake_signin_manager.cc", |
| 1020 | "signin/fake_signin_manager.h", |
| 1021 | "ssl/ssl_client_auth_requestor_mock.cc", |
| 1022 | "ssl/ssl_client_auth_requestor_mock.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1023 | "sync/profile_sync_components_factory_mock.cc", |
| 1024 | "sync/profile_sync_components_factory_mock.h", |
| 1025 | "sync/profile_sync_service_mock.cc", |
| 1026 | "sync/profile_sync_service_mock.h", |
shadi | 2f257fc | 2014-12-03 18:04:12 | [diff] [blame] | 1027 | "ui/webui/signin/login_ui_test_utils.cc", |
| 1028 | "ui/webui/signin/login_ui_test_utils.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1029 | ] |
| 1030 | |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 1031 | public_deps = [ |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1032 | ":browser", |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 1033 | "//chrome/browser/ui:test_support", |
| 1034 | ] |
| 1035 | deps = [ |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1036 | "//base:prefs_test_support", |
| 1037 | "//chrome/browser", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1038 | "//chrome/common", |
| 1039 | "//chrome/common/safe_browsing:proto", |
knn | 062cdbb | 2015-06-26 18:18:42 | [diff] [blame] | 1040 | "//components/invalidation/impl", |
| 1041 | "//components/invalidation/impl:test_support", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1042 | "//components/password_manager/core/browser:test_support", |
| 1043 | "//components/search_engines:test_support", |
| 1044 | "//content/test:test_support", |
| 1045 | "//chrome/app/theme:theme_resources", |
| 1046 | "//net:test_support", |
| 1047 | "//skia", |
| 1048 | "//testing/gmock", |
| 1049 | "//testing/gtest", |
| 1050 | "//ui/gfx", |
| 1051 | ] |
| 1052 | |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1053 | if (!is_ios) { |
| 1054 | deps += [ |
| 1055 | "//components/sessions:test_support", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1056 | "//google_apis:test_support", |
| 1057 | ] |
| 1058 | } |
| 1059 | |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 1060 | if (enable_extensions) { |
thestig | 52a87b3b | 2014-10-23 22:02:38 | [diff] [blame] | 1061 | sources += [ |
| 1062 | "extensions/extension_action_test_util.cc", |
| 1063 | "extensions/extension_action_test_util.h", |
| 1064 | ] |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 1065 | deps += [ "//extensions:test_support" ] |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 1066 | } |
| 1067 | |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1068 | if (is_chromeos) { |
| 1069 | sources += [ |
| 1070 | "chromeos/app_mode/fake_cws.cc", |
| 1071 | "chromeos/app_mode/fake_cws.h", |
| 1072 | "chromeos/file_manager/fake_disk_mount_manager.cc", |
| 1073 | "chromeos/file_manager/fake_disk_mount_manager.h", |
| 1074 | "chromeos/input_method/mock_candidate_window_controller.cc", |
| 1075 | "chromeos/input_method/mock_candidate_window_controller.h", |
| 1076 | "chromeos/input_method/mock_input_method_engine.cc", |
| 1077 | "chromeos/input_method/mock_input_method_engine.h", |
| 1078 | "chromeos/input_method/mock_input_method_manager.cc", |
| 1079 | "chromeos/input_method/mock_input_method_manager.h", |
brettw | 7d6ec246 | 2015-01-07 13:00:51 | [diff] [blame] | 1080 | "chromeos/login/screens/mock_device_disabled_screen_actor.cc", |
| 1081 | "chromeos/login/screens/mock_device_disabled_screen_actor.h", |
nkostylev | 393309f | 2015-02-05 13:57:39 | [diff] [blame] | 1082 | "chromeos/login/session/user_session_manager_test_api.cc", |
| 1083 | "chromeos/login/session/user_session_manager_test_api.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1084 | "chromeos/login/test/js_checker.cc", |
| 1085 | "chromeos/login/test/js_checker.h", |
satorux | b7a72ea | 2015-02-13 07:19:59 | [diff] [blame] | 1086 | "chromeos/login/test/oobe_screen_waiter.cc", |
| 1087 | "chromeos/login/test/oobe_screen_waiter.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1088 | "chromeos/login/ui/mock_login_display.cc", |
| 1089 | "chromeos/login/ui/mock_login_display.h", |
| 1090 | "chromeos/login/ui/mock_login_display_host.cc", |
| 1091 | "chromeos/login/ui/mock_login_display_host.h", |
brettw | 7d6ec246 | 2015-01-07 13:00:51 | [diff] [blame] | 1092 | "chromeos/login/users/avatar/mock_user_image_manager.cc", |
| 1093 | "chromeos/login/users/avatar/mock_user_image_manager.h", |
merkulova | 793f302 | 2015-02-04 10:18:30 | [diff] [blame] | 1094 | "chromeos/login/users/fake_chrome_user_manager.cc", |
| 1095 | "chromeos/login/users/fake_chrome_user_manager.h", |
brettw | 7d6ec246 | 2015-01-07 13:00:51 | [diff] [blame] | 1096 | "chromeos/login/users/fake_supervised_user_manager.cc", |
| 1097 | "chromeos/login/users/fake_supervised_user_manager.h", |
brettw | 7d6ec246 | 2015-01-07 13:00:51 | [diff] [blame] | 1098 | "chromeos/login/users/mock_user_manager.cc", |
| 1099 | "chromeos/login/users/mock_user_manager.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1100 | "chromeos/net/network_portal_detector_test_utils.cc", |
| 1101 | "chromeos/net/network_portal_detector_test_utils.h", |
| 1102 | "chromeos/policy/cloud_external_data_manager_base_test_util.cc", |
| 1103 | "chromeos/policy/cloud_external_data_manager_base_test_util.h", |
| 1104 | "chromeos/policy/device_policy_builder.cc", |
| 1105 | "chromeos/policy/device_policy_builder.h", |
brettw | a68ea2b | 2015-02-01 02:54:07 | [diff] [blame] | 1106 | "chromeos/policy/fake_consumer_management_service.cc", |
| 1107 | "chromeos/policy/fake_consumer_management_service.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1108 | "chromeos/policy/fake_device_cloud_policy_initializer.cc", |
| 1109 | "chromeos/policy/fake_device_cloud_policy_initializer.h", |
brettw | a68ea2b | 2015-02-01 02:54:07 | [diff] [blame] | 1110 | "chromeos/policy/fake_device_cloud_policy_manager.cc", |
| 1111 | "chromeos/policy/fake_device_cloud_policy_manager.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1112 | "chromeos/policy/stub_enterprise_install_attributes.cc", |
| 1113 | "chromeos/policy/stub_enterprise_install_attributes.h", |
| 1114 | "chromeos/settings/device_settings_test_helper.cc", |
| 1115 | "chromeos/settings/device_settings_test_helper.h", |
| 1116 | "chromeos/system/fake_input_device_settings.cc", |
| 1117 | "chromeos/system/fake_input_device_settings.h", |
| 1118 | ] |
| 1119 | configs += [ "//build/config/linux:dbus" ] |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 1120 | deps += [ "//chromeos:test_support" ] |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1121 | } |
| 1122 | |
| 1123 | if (enable_configuration_policy) { |
| 1124 | sources += [ |
| 1125 | "policy/test/local_policy_test_server.cc", |
| 1126 | "policy/test/local_policy_test_server.h", |
| 1127 | ] |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 1128 | public_deps += [ |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1129 | "//components/policy:policy_component_test_support", |
| 1130 | "//components/policy:test_support", |
| 1131 | ] |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1132 | } |
| 1133 | |
| 1134 | if (safe_browsing_mode == 1) { |
| 1135 | sources += [ |
| 1136 | "extensions/fake_safe_browsing_database_manager.cc", |
| 1137 | "extensions/fake_safe_browsing_database_manager.h", |
| 1138 | ] |
| 1139 | } |
| 1140 | |
| 1141 | if (enable_extensions) { |
| 1142 | sources += [ |
| 1143 | "drive/dummy_drive_service.cc", |
| 1144 | "drive/dummy_drive_service.h", |
| 1145 | "drive/fake_drive_service.cc", |
| 1146 | "drive/fake_drive_service.h", |
| 1147 | "drive/test_util.cc", |
| 1148 | "drive/test_util.h", |
| 1149 | "extensions/api/messaging/native_messaging_test_util.cc", |
| 1150 | "extensions/api/messaging/native_messaging_test_util.h", |
| 1151 | "extensions/extension_notification_observer.cc", |
| 1152 | "extensions/extension_notification_observer.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1153 | "extensions/mock_extension_special_storage_policy.cc", |
| 1154 | "extensions/mock_extension_special_storage_policy.h", |
| 1155 | "extensions/test_blacklist.cc", |
| 1156 | "extensions/test_blacklist.h", |
| 1157 | "extensions/test_blacklist_state_fetcher.cc", |
| 1158 | "extensions/test_blacklist_state_fetcher.h", |
brettw | 7d6ec246 | 2015-01-07 13:00:51 | [diff] [blame] | 1159 | "extensions/test_extension_dir.cc", |
| 1160 | "extensions/test_extension_dir.h", |
satorux | b7a72ea | 2015-02-13 07:19:59 | [diff] [blame] | 1161 | "extensions/test_extension_environment.cc", |
| 1162 | "extensions/test_extension_environment.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1163 | "extensions/test_extension_prefs.cc", |
| 1164 | "extensions/test_extension_prefs.h", |
| 1165 | "extensions/test_extension_service.cc", |
| 1166 | "extensions/test_extension_service.h", |
| 1167 | "extensions/test_extension_system.cc", |
| 1168 | "extensions/test_extension_system.h", |
| 1169 | "media_galleries/media_galleries_test_util.cc", |
| 1170 | "media_galleries/media_galleries_test_util.h", |
| 1171 | ] |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 1172 | deps += [ "//components/storage_monitor:test_support" ] |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1173 | } |
| 1174 | |
| 1175 | if (enable_mdns) { |
| 1176 | sources += [ |
| 1177 | "local_discovery/test_service_discovery_client.cc", |
| 1178 | "local_discovery/test_service_discovery_client.h", |
| 1179 | ] |
| 1180 | } |
| 1181 | |
| 1182 | if (enable_app_list) { |
| 1183 | sources += [ |
| 1184 | "ui/app_list/test/chrome_app_list_test_support.cc", |
| 1185 | "ui/app_list/test/chrome_app_list_test_support.h", |
brettw | 7d6ec246 | 2015-01-07 13:00:51 | [diff] [blame] | 1186 | "ui/app_list/test/test_app_list_controller_delegate.cc", |
| 1187 | "ui/app_list/test/test_app_list_controller_delegate.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1188 | ] |
| 1189 | } |
| 1190 | |
| 1191 | if (enable_wifi_bootstrapping) { |
| 1192 | sources += [ |
| 1193 | "local_discovery/wifi/mock_wifi_manager.cc", |
| 1194 | "local_discovery/wifi/mock_wifi_manager.h", |
| 1195 | ] |
| 1196 | } |
| 1197 | } |