[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") |
brettw | 06c2ba3 | 2015-11-26 09:21:25 | [diff] [blame] | 9 | import("//chrome/common/features.gni") |
xhwang | 5e63046 | 2015-10-30 03:18:48 | [diff] [blame] | 10 | import("//media/media_options.gni") |
pkotwicz | 127726f | 2015-05-29 15:20:12 | [diff] [blame] | 11 | import("//third_party/protobuf/proto_library.gni") |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 12 | |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 13 | # //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which |
| 14 | # produces a conflict for the "grit" template so we have to only include one. |
| 15 | if (is_android) { |
| 16 | import("//build/config/android/rules.gni") |
| 17 | } else { |
| 18 | import("//tools/grit/grit_rule.gni") |
| 19 | } |
cmasone | 0a9e4ca | 2014-10-16 16:40:49 | [diff] [blame] | 20 | if (is_desktop_linux) { |
| 21 | import("//build/config/linux/pkg_config.gni") |
| 22 | } |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 23 | |
amistry | f269d3b | 2015-06-09 19:18:39 | [diff] [blame] | 24 | declare_args() { |
mgiuca | 3cd6a82 | 2015-08-07 00:46:13 | [diff] [blame] | 25 | # 'Ok Google' hotwording is disabled by default. Set to true to enable. (This |
| 26 | # will download a closed-source NaCl module at startup.) Chrome-branded |
| 27 | # ChromeOS builds have this enabled by default. |
| 28 | enable_hotwording = is_chrome_branded && is_chromeos |
amistry | f269d3b | 2015-06-09 19:18:39 | [diff] [blame] | 29 | } |
| 30 | |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 31 | additional_modules_list_file = |
| 32 | "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt" |
| 33 | |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 34 | gypi_values = exec_script("//build/gypi_to_gn.py", |
| 35 | [ rebase_path("../chrome_browser.gypi") ], |
| 36 | "scope", |
| 37 | [ "../chrome_browser.gypi" ]) |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 38 | |
mmenke | de13467 | 2015-08-18 01:33:39 | [diff] [blame] | 39 | if (is_win) { |
| 40 | # This is in a separate config so the flags can be applied to dependents. |
| 41 | # ldflags in GN aren't automatically inherited. |
| 42 | config("browser_win_linker_flags") { |
| 43 | libs = [ |
| 44 | "credui.lib", |
| 45 | "netapi32.lib", |
| 46 | "ndfapi.lib", # Used by browser/net/net_error_diagnostics_dialog_win.h |
| 47 | ] |
| 48 | ldflags = [ "/DELAYLOAD:ndfapi.dll" ] |
| 49 | } |
| 50 | } |
| 51 | |
cmasone | 0a9e4ca | 2014-10-16 16:40:49 | [diff] [blame] | 52 | if (is_desktop_linux) { |
brettw | a68ea2b | 2015-02-01 02:54:07 | [diff] [blame] | 53 | # Gnome-keyring is normally dynamically loaded. The gnome_keyring config |
| 54 | # will set this up. |
cmasone | 0a9e4ca | 2014-10-16 16:40:49 | [diff] [blame] | 55 | pkg_config("gnome_keyring") { |
| 56 | packages = [ "gnome-keyring-1" ] |
brettw | a68ea2b | 2015-02-01 02:54:07 | [diff] [blame] | 57 | defines = [ |
| 58 | "USE_GNOME_KEYRING", |
| 59 | "DLOPEN_GNOME_KEYRING", |
| 60 | ] |
| 61 | ignore_libs = true |
| 62 | } |
| 63 | |
| 64 | # If you want to link gnome-keyring directly (use only for unit tests) |
| 65 | # ADDITIONALLY add this config on top of ":gnome_keyring". pkg-config is a |
| 66 | # bit slow, so prefer not to run it again. In practice, gnome-keyring's libs |
| 67 | # are just itself and common gnome ones we link already, so we can get away |
| 68 | # with additionally just coding the library name here. |
| 69 | config("gnome_keyring_direct") { |
| 70 | libs = [ "gnome-keyring" ] |
cmasone | 0a9e4ca | 2014-10-16 16:40:49 | [diff] [blame] | 71 | } |
| 72 | } |
| 73 | |
brettw | 44a5cf8 | 2015-04-08 19:48:22 | [diff] [blame] | 74 | source_set("browser") { |
apavlov | e749bca | 2014-09-30 11:07:41 | [diff] [blame] | 75 | configs += [ |
| 76 | "//build/config/compiler:wexit_time_destructors", |
brettw | bc8b2a2 | 2015-07-28 18:24:42 | [diff] [blame] | 77 | "//build/config:precompiled_headers", |
apavlov | e749bca | 2014-09-30 11:07:41 | [diff] [blame] | 78 | "//third_party/WebKit/public:debug_devtools", |
| 79 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 80 | defines = [] |
| 81 | sources = [] |
| 82 | libs = [] |
| 83 | ldflags = [] |
| 84 | |
| 85 | # iOS/non-iOS shared deps. New dependencies should generally be added in the |
| 86 | # non-iOS deps below. |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 87 | public_deps = [ |
| 88 | "//components/autofill/core/browser", |
| 89 | "//content/public/browser", |
| 90 | "//sql", |
| 91 | "//sync", |
| 92 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 93 | deps = [ |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 94 | "//chrome:extra_resources", |
| 95 | "//chrome:resources", |
| 96 | "//chrome:strings", |
[email protected] | 855b7de | 2014-07-08 21:02:45 | [diff] [blame] | 97 | "//chrome/app/resources:platform_locale_settings", |
[email protected] | 797b2504 | 2014-07-01 23:54:17 | [diff] [blame] | 98 | "//chrome/app/theme:theme_resources", |
sdefresne | a213ceb | 2015-10-05 09:23:39 | [diff] [blame] | 99 | "//chrome/browser/metrics/variations:chrome_ui_string_overrider_factory", |
[email protected] | 797b2504 | 2014-07-01 23:54:17 | [diff] [blame] | 100 | "//chrome/browser/net:probe_message_proto", |
[email protected] | abd4b68 | 2014-07-16 20:26:30 | [diff] [blame] | 101 | "//chrome/browser/ui", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 102 | "//chrome/common", |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 103 | "//components/autofill/core/browser", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 104 | "//components/bookmarks/browser", |
treib | a9ea2fb | 2015-03-20 10:06:03 | [diff] [blame] | 105 | "//components/bookmarks/managed", |
blundell | 7282b51 | 2015-11-09 07:21:11 | [diff] [blame] | 106 | "//components/browser_sync/browser", |
blundell | 373c28c | 2015-11-05 14:07:50 | [diff] [blame] | 107 | "//components/browser_sync/common", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 108 | "//components/captive_portal", |
estark | 334673f4 | 2015-09-08 14:51:39 | [diff] [blame] | 109 | "//components/certificate_reporting", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 110 | "//components/cloud_devices/common", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 111 | "//components/component_updater", |
vabr | fc325fa | 2015-04-10 16:24:45 | [diff] [blame] | 112 | "//components/content_settings/content/common", |
vasilii | ac46139 | 2014-09-18 11:35:17 | [diff] [blame] | 113 | "//components/content_settings/core/browser", |
[email protected] | 08f7101 | 2014-07-25 10:27:54 | [diff] [blame] | 114 | "//components/content_settings/core/common", |
abhishek.a21 | bbf8e4a | 2015-10-15 21:05:56 | [diff] [blame] | 115 | "//components/cookie_config", |
[email protected] | 478ed23 | 2014-08-19 02:10:55 | [diff] [blame] | 116 | "//components/crx_file", |
megjablon | 3476e04 | 2014-10-14 19:21:59 | [diff] [blame] | 117 | "//components/data_reduction_proxy/core/browser", |
sclittle | ae932be | 2015-10-08 20:53:50 | [diff] [blame] | 118 | "//components/data_usage/core", |
amohammadkhan | f76ae11 | 2015-09-14 17:34:43 | [diff] [blame] | 119 | "//components/data_use_measurement/core", |
reillyg | 4a84927 | 2015-02-20 21:38:43 | [diff] [blame] | 120 | "//components/device_event_log", |
[email protected] | 273ae5ab | 2014-07-09 21:10:25 | [diff] [blame] | 121 | "//components/domain_reliability", |
sdefresne | cbacfd7 | 2015-03-20 12:11:32 | [diff] [blame] | 122 | "//components/favicon/core", |
sdefresne | 001b10de | 2015-03-20 18:41:46 | [diff] [blame] | 123 | "//components/favicon_base", |
droger | 888be0b | 2015-10-01 14:28:52 | [diff] [blame] | 124 | "//components/flags_ui", |
[email protected] | abd4b68 | 2014-07-16 20:26:30 | [diff] [blame] | 125 | "//components/gcm_driver", |
jianli | 2104ce61 | 2015-05-06 00:24:34 | [diff] [blame] | 126 | "//components/gcm_driver/instance_id", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 127 | "//components/google/core/browser", |
fsamuel | af5bf6d1 | 2015-05-28 16:29:54 | [diff] [blame] | 128 | "//components/guest_view/browser", |
erikchen | 332265b | 2014-11-14 19:59:52 | [diff] [blame] | 129 | "//components/handoff", |
[email protected] | 273ae5ab | 2014-07-09 21:10:25 | [diff] [blame] | 130 | "//components/history/core/browser", |
| 131 | "//components/history/core/common", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 132 | "//components/infobars/core", |
knn | 062cdbb | 2015-06-26 18:18:42 | [diff] [blame] | 133 | "//components/invalidation/impl", |
gunsch | 1afc6517 | 2014-09-16 00:03:32 | [diff] [blame] | 134 | "//components/metrics:gpu", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 135 | "//components/metrics:net", |
gunsch | 840bc41 | 2014-09-18 19:38:06 | [diff] [blame] | 136 | "//components/metrics:profiler", |
blundell | 218124c2 | 2015-10-15 10:36:35 | [diff] [blame] | 137 | "//components/metrics:profiler_content", |
blundell | 8e66adc | 2015-10-12 11:46:12 | [diff] [blame] | 138 | "//components/metrics:ui", |
agrieve | d7a71c88 | 2015-11-20 19:53:28 | [diff] [blame] | 139 | "//components/metrics/proto:proto", |
blundell | 695d61f | 2015-10-21 11:25:53 | [diff] [blame] | 140 | "//components/metrics_services_manager", |
rsleevi | c327b48f8 | 2015-04-30 02:03:25 | [diff] [blame] | 141 | "//components/mime_util", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 142 | "//components/navigation_metrics", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 143 | "//components/network_time", |
agrieve | d7a71c88 | 2015-11-20 19:53:28 | [diff] [blame] | 144 | "//components/ntp_snippets", |
fgorski | fe7b92f | 2015-06-15 19:19:40 | [diff] [blame] | 145 | "//components/offline_pages", |
blundell | 2102f7c | 2015-07-09 10:00:53 | [diff] [blame] | 146 | "//components/omnibox/browser", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 147 | "//components/os_crypt", |
haavardm | dfdf28f | 2015-01-08 21:05:00 | [diff] [blame] | 148 | "//components/packed_ct_ev_whitelist", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 149 | "//components/password_manager/core/browser", |
| 150 | "//components/password_manager/core/common", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 151 | "//components/policy:policy_component", |
stevenjb | b237e2ae | 2015-07-02 22:02:11 | [diff] [blame] | 152 | "//components/proxy_config", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 153 | "//components/query_parser", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 154 | "//components/rappor", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 155 | "//components/renderer_context_menu", |
[email protected] | 720b1049 | 2014-07-23 08:48:40 | [diff] [blame] | 156 | "//components/search", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 157 | "//components/search_engines", |
| 158 | "//components/search_provider_logos", |
felt | 20e0f200 | 2015-07-31 15:27:36 | [diff] [blame] | 159 | "//components/security_interstitials/core", |
estark | d9e54fb | 2016-01-11 19:37:12 | [diff] [blame] | 160 | "//components/security_state", |
[email protected] | abd4b68 | 2014-07-16 20:26:30 | [diff] [blame] | 161 | "//components/signin/core/browser", |
felt | 2493b445 | 2015-09-17 20:33:59 | [diff] [blame] | 162 | "//components/ssl_errors", |
fdoray | 443bd11 | 2015-11-16 20:44:23 | [diff] [blame] | 163 | "//components/startup_metric_utils/browser:lib", |
| 164 | "//components/startup_metric_utils/browser:message_filter_lib", |
fdoray | 343068c4 | 2016-02-03 15:45:58 | [diff] [blame] | 165 | |
| 166 | # TODO(fdoray): Remove this once the PreRead field trial has expired. |
| 167 | # crbug.com/577698 |
| 168 | "//components/startup_metric_utils/common", |
[email protected] | 797b2504 | 2014-07-01 23:54:17 | [diff] [blame] | 169 | "//components/strings", |
mathp | 60143a3 | 2014-10-08 14:52:45 | [diff] [blame] | 170 | "//components/suggestions", |
blundell | c759b68 | 2015-10-08 15:50:59 | [diff] [blame] | 171 | "//components/sync_bookmarks", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 172 | "//components/sync_driver", |
skym | 6b9887e | 2015-10-09 22:10:47 | [diff] [blame] | 173 | "//components/sync_sessions", |
zhenw | ecedcf2 | 2015-08-18 23:37:46 | [diff] [blame] | 174 | "//components/tracing:startup_tracing", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 175 | "//components/translate/core/browser", |
| 176 | "//components/translate/core/common", |
brettw | 0741cb1c | 2015-08-21 22:06:00 | [diff] [blame] | 177 | "//components/ui/zoom", |
sdefresne | c083d1f | 2015-04-17 21:12:18 | [diff] [blame] | 178 | "//components/undo", |
sorin | 39eab2f | 2015-01-06 01:09:08 | [diff] [blame] | 179 | "//components/update_client", |
rsleevi | 24f64dc2 | 2015-08-07 21:39:21 | [diff] [blame] | 180 | "//components/url_formatter", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 181 | "//components/user_prefs", |
jitendra.ks | 94c0b96 | 2015-08-10 08:24:09 | [diff] [blame] | 182 | "//components/user_prefs/tracked:user_prefs_tracked", |
isherman | 3be67db | 2014-10-24 05:57:44 | [diff] [blame] | 183 | "//components/variations", |
| 184 | "//components/variations/net", |
blundell | b50ad70 | 2015-08-27 17:08:29 | [diff] [blame] | 185 | "//components/variations/service", |
agrieve | d7a71c88 | 2015-11-20 19:53:28 | [diff] [blame] | 186 | "//components/web_resource", |
[email protected] | bf4545f | 2014-07-11 19:49:46 | [diff] [blame] | 187 | "//components/webdata/common", |
sdefresne | cb955cd | 2014-12-15 23:21:56 | [diff] [blame] | 188 | "//components/webdata_services", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 189 | "//content/public/browser", |
| 190 | "//content/public/common", |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 191 | "//courgette:courgette_lib", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 192 | "//crypto", |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 193 | "//google_apis", |
Brett Wilson | 8f132304 | 2014-09-11 16:58:56 | [diff] [blame] | 194 | "//gpu/config", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 195 | "//skia", |
| 196 | "//sql", |
| 197 | "//sync", |
[email protected] | 797b2504 | 2014-07-01 23:54:17 | [diff] [blame] | 198 | "//third_party/cacheinvalidation", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 199 | "//third_party/icu", |
ajwong | f7b1cb69 | 2014-08-23 21:36:22 | [diff] [blame] | 200 | "//third_party/libjingle", |
agrieve | d7a71c88 | 2015-11-20 19:53:28 | [diff] [blame] | 201 | "//third_party/libxml", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 202 | "//third_party/widevine/cdm:version_h", |
| 203 | "//third_party/zlib", |
hajimehoshi | 1e1cc1a | 2016-01-14 19:09:00 | [diff] [blame] | 204 | "//third_party/zlib:compression_utils", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 205 | "//third_party/zlib:minizip", |
| 206 | "//third_party/zlib:zip", |
| 207 | "//ui/base", |
sdefresne | c6574a55 | 2016-02-08 16:58:21 | [diff] [blame^] | 208 | "//ui/base:ui_data_pack", |
cjhopman | 09981a9 | 2014-10-27 17:11:18 | [diff] [blame] | 209 | "//ui/events:events_base", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 210 | "//ui/gfx", |
| 211 | "//ui/gfx/geometry", |
[email protected] | a1d7d4f | 2014-07-16 21:33:36 | [diff] [blame] | 212 | "//ui/message_center", |
agrieve | d7a71c88 | 2015-11-20 19:53:28 | [diff] [blame] | 213 | "//ui/resources", |
[email protected] | a1d7d4f | 2014-07-16 21:33:36 | [diff] [blame] | 214 | "//ui/shell_dialogs", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 215 | "//ui/strings", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 216 | ] |
ben | cccedf1 | 2015-11-10 07:56:16 | [diff] [blame] | 217 | data_deps = [] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 218 | |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 219 | sources += |
| 220 | rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome") |
danduong | d8178964 | 2014-09-23 02:50:00 | [diff] [blame] | 221 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 222 | if (!is_ios) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 223 | sources += |
| 224 | rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 225 | sources += rebase_path(gypi_values.chrome_browser_autocomplete_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_bookmark_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 229 | ".", |
| 230 | "//chrome") |
stuartmorgan | 997cf23d | 2014-12-04 21:01:18 | [diff] [blame] | 231 | sources += rebase_path(gypi_values.chrome_browser_browser_process_sources, |
| 232 | ".", |
| 233 | "//chrome") |
| 234 | sources += rebase_path(gypi_values.chrome_browser_content_settings_sources, |
| 235 | ".", |
| 236 | "//chrome") |
sclittle | a133de0 | 2015-11-10 23:54:21 | [diff] [blame] | 237 | sources += rebase_path(gypi_values.chrome_browser_data_usage_sources, |
| 238 | ".", |
| 239 | "//chrome") |
benwells | edf5e08 | 2015-04-23 02:45:14 | [diff] [blame] | 240 | sources += rebase_path(gypi_values.chrome_browser_engagement_sources, |
| 241 | ".", |
| 242 | "//chrome") |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 243 | sources += |
| 244 | rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome") |
| 245 | sources += |
| 246 | rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome") |
| 247 | sources += |
| 248 | rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome") |
| 249 | sources += |
| 250 | rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome") |
| 251 | sources += |
| 252 | rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 253 | sources += rebase_path(gypi_values.chrome_browser_password_manager_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 254 | ".", |
| 255 | "//chrome") |
mlamouri | 4e37202 | 2015-03-29 14:51:06 | [diff] [blame] | 256 | sources += rebase_path(gypi_values.chrome_browser_permissions_sources, |
| 257 | ".", |
| 258 | "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 259 | sources += rebase_path(gypi_values.chrome_browser_predictor_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 260 | ".", |
| 261 | "//chrome") |
| 262 | sources += |
| 263 | rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 264 | sources += rebase_path(gypi_values.chrome_browser_profiles_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 265 | ".", |
| 266 | "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 267 | sources += rebase_path(gypi_values.chrome_browser_search_engines_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 268 | ".", |
| 269 | "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 270 | sources += rebase_path(gypi_values.chrome_browser_services_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 271 | ".", |
| 272 | "//chrome") |
| 273 | sources += |
stuartmorgan | 997cf23d | 2014-12-04 21:01:18 | [diff] [blame] | 274 | rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome") |
| 275 | sources += |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 276 | rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome") |
| 277 | sources += |
stuartmorgan | 997cf23d | 2014-12-04 21:01:18 | [diff] [blame] | 278 | rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome") |
| 279 | sources += |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 280 | rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 281 | sources += rebase_path(gypi_values.chrome_browser_web_resource_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 282 | ".", |
| 283 | "//chrome") |
sievers | 2f1e811 | 2015-12-04 18:43:56 | [diff] [blame] | 284 | if (android_java_ui) { |
| 285 | sources += |
| 286 | rebase_path(gypi_values.chrome_browser_sync_android_java_ui_sources, |
| 287 | ".", |
| 288 | "//chrome") |
| 289 | sources += |
| 290 | rebase_path(gypi_values.chrome_browser_ssl_android_java_ui_sources, |
| 291 | ".", |
| 292 | "//chrome") |
| 293 | sources += rebase_path( |
| 294 | gypi_values.chrome_browser_history_android_java_ui_sources, |
| 295 | ".", |
| 296 | "//chrome") |
| 297 | sources += rebase_path( |
| 298 | gypi_values.chrome_browser_permissions_android_java_ui_sources, |
| 299 | ".", |
| 300 | "//chrome") |
| 301 | sources += rebase_path( |
| 302 | gypi_values.chrome_browser_search_engines_android_java_ui_sources, |
| 303 | ".", |
| 304 | "//chrome") |
| 305 | if (enable_supervised_users) { |
| 306 | sources += rebase_path( |
| 307 | gypi_values.chrome_browser_supervised_user_android_java_ui_sources, |
| 308 | ".", |
| 309 | "//chrome") |
| 310 | } |
| 311 | } |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 312 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 313 | deps += [ |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 314 | "//apps", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 315 | "//cc", |
brettw | ca93458 | 2015-02-24 21:50:27 | [diff] [blame] | 316 | "//chrome/app/theme:theme_resources", |
[email protected] | 55699f39 | 2014-08-20 22:16:30 | [diff] [blame] | 317 | "//chrome/browser/devtools", |
sdefresne | a213ceb | 2015-10-05 09:23:39 | [diff] [blame] | 318 | "//chrome/browser/metrics/variations:chrome_ui_string_overrider_factory", |
brettw | ca93458 | 2015-02-24 21:50:27 | [diff] [blame] | 319 | "//chrome/browser/resources:component_extension_resources", |
tfarina | 04d42661 | 2015-08-18 16:42:33 | [diff] [blame] | 320 | "//chrome/common/net", |
brettw | e26e6d0 | 2015-12-29 06:51:47 | [diff] [blame] | 321 | "//chrome/installer/util:with_no_strings", |
jitendra.ks | 4f2e911 | 2015-08-14 11:40:26 | [diff] [blame] | 322 | "//components/about_handler", |
oshima | f6539842 | 2014-11-18 23:30:42 | [diff] [blame] | 323 | "//components/app_modal", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 324 | "//components/autofill/content/browser", |
lazyboy | 14082d2 | 2015-04-02 01:04:58 | [diff] [blame] | 325 | "//components/browsing_data", |
donnd | bda9b6f43 | 2015-12-10 20:39:05 | [diff] [blame] | 326 | "//components/contextual_search:browser", |
jeremyim | 364ac118 | 2015-03-03 18:49:43 | [diff] [blame] | 327 | "//components/data_reduction_proxy/content/browser", |
amohammadkhan | 092adb2 | 2015-09-11 21:08:49 | [diff] [blame] | 328 | "//components/data_use_measurement/content", |
dgozman | ec2b982a | 2015-04-28 10:36:39 | [diff] [blame] | 329 | "//components/devtools_discovery", |
dgozman | 102fee9 | 2015-04-20 15:45:46 | [diff] [blame] | 330 | "//components/devtools_http_handler", |
brettw | 15764b1 | 2015-11-30 22:11:05 | [diff] [blame] | 331 | "//components/dom_distiller/content/browser", |
tfarina | 04113447 | 2015-09-02 15:29:38 | [diff] [blame] | 332 | "//components/error_page/common", |
sdefresne | 001b10de | 2015-03-20 18:41:46 | [diff] [blame] | 333 | "//components/favicon/content", |
sdefresne | 71524662 | 2015-01-12 16:24:04 | [diff] [blame] | 334 | "//components/history/content/browser", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 335 | "//components/keyed_service/content", |
[email protected] | 55699f39 | 2014-08-20 22:16:30 | [diff] [blame] | 336 | "//components/navigation_interception", |
droger | c690e880 | 2015-09-21 14:29:16 | [diff] [blame] | 337 | "//components/net_log", |
tfarina | 04113447 | 2015-09-02 15:29:38 | [diff] [blame] | 338 | "//components/network_hints/common", |
[email protected] | 55699f39 | 2014-08-20 22:16:30 | [diff] [blame] | 339 | "//components/password_manager/content/browser", |
vabr | 5410d0b | 2015-08-07 11:02:04 | [diff] [blame] | 340 | "//components/password_manager/sync/browser", |
droger | 78da654 | 2015-11-02 11:25:59 | [diff] [blame] | 341 | "//components/profile_metrics", |
abhishek.a21 | 71c61285 | 2015-08-31 10:48:19 | [diff] [blame] | 342 | "//components/proxy_config", |
droger | 2a6ab54 | 2015-10-09 16:10:28 | [diff] [blame] | 343 | "//components/resources", |
vakh | 9d588802 | 2015-10-29 21:04:07 | [diff] [blame] | 344 | "//components/safe_browsing_db", |
bauerb | f0e64aa | 2015-06-25 15:54:07 | [diff] [blame] | 345 | "//components/safe_json", |
brettw | a22cb3b | 2015-04-30 20:23:12 | [diff] [blame] | 346 | "//components/sessions", |
abhishek.a21 | 2849cee | 2015-10-20 11:27:29 | [diff] [blame] | 347 | "//components/ssl_config", |
[email protected] | abd4b68 | 2014-07-16 20:26:30 | [diff] [blame] | 348 | "//components/storage_monitor", |
sdefresne | 875d078 | 2015-09-16 12:01:28 | [diff] [blame] | 349 | "//components/syncable_prefs", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 350 | "//components/translate/content/browser", |
sdefresne | 44eb1f2 | 2015-08-06 08:51:55 | [diff] [blame] | 351 | "//components/upload_list", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 352 | "//components/url_matcher", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 353 | "//components/visitedlink/browser", |
| 354 | "//components/visitedlink/common", |
hanxi | 149b92d | 2014-09-11 21:57:18 | [diff] [blame] | 355 | "//components/web_cache/browser", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 356 | "//components/web_modal", |
reillyg | cf1af63 | 2015-11-18 16:42:58 | [diff] [blame] | 357 | "//components/webusb", |
[email protected] | a9ca8d5 | 2014-08-22 10:21:08 | [diff] [blame] | 358 | "//content/app/resources", |
reillyg | cf1af63 | 2015-11-18 16:42:58 | [diff] [blame] | 359 | "//device/core", |
| 360 | "//device/devices_app/public/cpp", |
| 361 | "//device/devices_app/public/cpp:factory", |
finnur | 61535c70 | 2015-10-05 11:10:02 | [diff] [blame] | 362 | "//device/devices_app/usb/public/interfaces", |
reillyg | cf1af63 | 2015-11-18 16:42:58 | [diff] [blame] | 363 | "//device/usb", |
[email protected] | 55699f39 | 2014-08-20 22:16:30 | [diff] [blame] | 364 | "//media", |
yhirano | bbea627 | 2015-09-17 07:09:03 | [diff] [blame] | 365 | "//media/midi", |
cjhopman | 09981a9 | 2014-10-27 17:11:18 | [diff] [blame] | 366 | "//mojo/common", |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 367 | "//mojo/environment:chromium", |
rockot | 85dce086 | 2015-11-13 01:33:59 | [diff] [blame] | 368 | "//mojo/public/cpp/bindings", |
| 369 | "//mojo/public/js", |
ben | 273c1e3 | 2016-01-12 02:44:08 | [diff] [blame] | 370 | "//mojo/shell/public/cpp", |
Brett Wilson | 83fd424 | 2014-09-02 19:45:33 | [diff] [blame] | 371 | "//net:extras", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 372 | "//net:net_with_v8", |
pilgrim | 4af8c21 | 2014-09-05 17:30:15 | [diff] [blame] | 373 | "//storage/browser", |
pilgrim | f55d19fc | 2014-09-04 00:05:24 | [diff] [blame] | 374 | "//storage/common", |
erg | a3c614c9 | 2015-04-03 17:47:51 | [diff] [blame] | 375 | "//third_party/WebKit/public:image_resources", |
[email protected] | 4eebe74d | 2014-08-13 02:54:46 | [diff] [blame] | 376 | "//third_party/WebKit/public:resources", |
pmonette | 502a83e | 2016-01-08 00:21:16 | [diff] [blame] | 377 | "//third_party/kasko", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 378 | "//third_party/leveldatabase", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 379 | "//third_party/libaddressinput", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 380 | "//third_party/libyuv", |
blundell | 70fb54767 | 2015-01-19 17:18:33 | [diff] [blame] | 381 | "//third_party/mojo/src/mojo/edk/system", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 382 | "//third_party/re2", |
| 383 | "//third_party/smhasher:cityhash", |
Brett Wilson | 83fd424 | 2014-09-02 19:45:33 | [diff] [blame] | 384 | "//third_party/webrtc/modules/desktop_capture", |
spang | 1c36fac | 2015-02-05 19:55:12 | [diff] [blame] | 385 | "//ui/base/ime", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 386 | "//ui/gl", |
brettw | ca93458 | 2015-02-24 21:50:27 | [diff] [blame] | 387 | "//ui/resources", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 388 | "//ui/surface", |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 389 | "//ui/web_dialogs", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 390 | "//v8", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 391 | ] |
paulmeyer | 27b328b | 2015-06-17 21:26:12 | [diff] [blame] | 392 | |
| 393 | if (toolkit_views) { |
| 394 | deps += [ "//ui/views" ] |
| 395 | } |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 396 | } else { # iOS |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 397 | sources += |
| 398 | rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome") |
| 399 | sources += |
| 400 | rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome") |
| 401 | deps += [ "//net" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 402 | libs += [ |
| 403 | "CoreTelephony.framework", |
| 404 | "CoreText.framework", |
| 405 | "MobileCoreServices.framework", |
| 406 | "QuartzCore.framework", |
| 407 | ] |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 408 | ldflags += [ |
| 409 | "-weak_framework", |
| 410 | "CoreImage", |
| 411 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 412 | } |
| 413 | |
| 414 | if (is_win || is_mac) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 415 | sources += |
| 416 | rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 417 | } |
mmenke | de13467 | 2015-08-18 01:33:39 | [diff] [blame] | 418 | if (!is_win && !is_mac && !is_ios) { |
| 419 | sources += [ "net/net_error_diagnostics_dialog_generic.cc" ] |
| 420 | } |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 421 | if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) { |
| 422 | sources += [ |
| 423 | "net/disk_cache_dir_policy_handler.cc", |
| 424 | "net/disk_cache_dir_policy_handler.h", |
| 425 | ] |
| 426 | } |
| 427 | if (!is_android && !is_ios && enable_configuration_policy) { |
| 428 | sources += [ |
| 429 | "download/download_dir_policy_handler.cc", |
| 430 | "download/download_dir_policy_handler.h", |
| 431 | ] |
| 432 | } |
| 433 | if (is_mac) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 434 | sources += |
| 435 | rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 436 | deps += [ |
brettw | 5ff9819 | 2015-10-22 06:36:15 | [diff] [blame] | 437 | "//chrome/app_shim", |
| 438 | "//chrome/browser/apps/app_shim", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 439 | ] |
| 440 | } |
fdoray | 015d442 | 2016-02-05 19:09:16 | [diff] [blame] | 441 | if (is_win) { |
| 442 | deps += [ "//chrome:file_pre_reader" ] |
| 443 | } |
ki.stfu | 5e669f0 | 2015-09-17 07:15:19 | [diff] [blame] | 444 | if (is_mac || is_android) { |
| 445 | sources += rebase_path( |
| 446 | gypi_values.chrome_browser_password_manager_mac_android_sources, |
| 447 | ".", |
| 448 | "//chrome") |
| 449 | } |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 450 | if (enable_extensions) { |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 451 | public_deps += [ "//chrome/browser/extensions" ] |
[email protected] | cc5b3be | 2014-08-15 23:24:52 | [diff] [blame] | 452 | deps += [ |
[email protected] | cc5b3be | 2014-08-15 23:24:52 | [diff] [blame] | 453 | "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto", |
thestig | e33aa242 | 2014-09-22 22:16:30 | [diff] [blame] | 454 | "//chrome/common/extensions/api", |
| 455 | "//chrome/common/extensions/api:api_registration", |
lukasza | 8acc4eb | 2015-07-20 20:57:20 | [diff] [blame] | 456 | "//components/drive:drive", |
msarda | 4c408ff | 2015-04-22 14:27:56 | [diff] [blame] | 457 | "//components/proximity_auth/ble", |
tengs | 4758c08 | 2014-12-19 18:51:44 | [diff] [blame] | 458 | "//components/proximity_auth/cryptauth", |
oshima | 758abebc | 2014-11-06 10:55:50 | [diff] [blame] | 459 | "//extensions/components/javascript_dialog_extensions_client", |
thestig | 73f4cdc | 2015-01-15 01:51:06 | [diff] [blame] | 460 | "//media/cast:net", |
[email protected] | cc5b3be | 2014-08-15 23:24:52 | [diff] [blame] | 461 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 462 | sources += rebase_path(gypi_values.chrome_browser_extensions_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 463 | ".", |
| 464 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 465 | } |
| 466 | if (enable_background) { |
| 467 | sources += rebase_path(gypi_values.chrome_browser_background_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 468 | ".", |
| 469 | "//chrome") |
jamesr | 29ea2d12 | 2014-10-23 10:30:27 | [diff] [blame] | 470 | if (!use_aura || is_win || is_chromeos) { |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 471 | sources -= [ "background/background_mode_manager_aura.cc" ] |
| 472 | } |
| 473 | } |
| 474 | if (enable_task_manager) { |
| 475 | sources += rebase_path(gypi_values.chrome_browser_task_manager_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 476 | ".", |
| 477 | "//chrome") |
nya | 268de1c7 | 2015-12-16 05:07:40 | [diff] [blame] | 478 | if (is_chromeos) { |
| 479 | sources += |
| 480 | rebase_path(gypi_values.chrome_browser_task_manager_chromeos_sources, |
| 481 | ".", |
| 482 | "//chrome") |
| 483 | } |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 484 | } |
| 485 | if (enable_spellcheck) { |
| 486 | sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 487 | ".", |
| 488 | "//chrome") |
dylanking | 34c7244 | 2015-07-23 23:19:58 | [diff] [blame] | 489 | if (!is_android) { |
| 490 | deps += [ "//third_party/hunspell" ] |
| 491 | } |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 492 | } |
| 493 | if (enable_nacl) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 494 | sources += |
| 495 | rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome") |
brettw | f4b4a428 | 2015-12-16 00:41:13 | [diff] [blame] | 496 | deps += [ "//components/nacl/browser" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 497 | } |
apavlov | e749bca | 2014-09-30 11:07:41 | [diff] [blame] | 498 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 499 | if (enable_configuration_policy) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 500 | sources += |
| 501 | rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources, |
| 502 | ".", |
| 503 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 504 | deps += [ |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 505 | "//components/policy", |
[email protected] | 797b2504 | 2014-07-01 23:54:17 | [diff] [blame] | 506 | "//components/policy/proto", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 507 | ] |
| 508 | if (!is_ios) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 509 | sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources, |
| 510 | ".", |
| 511 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 512 | } |
| 513 | if (!is_chromeos) { |
| 514 | sources += rebase_path( |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 515 | gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources, |
| 516 | ".", |
| 517 | "//chrome") |
sky | ba48ce44 | 2016-02-02 19:53:49 | [diff] [blame] | 518 | defines = [ "FRAME_AVATAR_BUTTON=1" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 519 | } |
| 520 | if (is_win || is_mac || is_desktop_linux) { |
| 521 | sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 522 | ".", |
| 523 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 524 | } |
cjhopman | 09981a9 | 2014-10-27 17:11:18 | [diff] [blame] | 525 | if (is_android || is_ios) { |
| 526 | sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 527 | ".", |
| 528 | "//chrome") |
cjhopman | 09981a9 | 2014-10-27 17:11:18 | [diff] [blame] | 529 | } else { |
amistry | 6e1ed1b | 2015-03-12 05:24:01 | [diff] [blame] | 530 | deps += [ |
| 531 | "//chrome/browser/policy:path_parser", |
| 532 | "//net:net_browser_services", |
| 533 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 534 | } |
| 535 | } else { |
| 536 | # Configuration policy disabled. |
| 537 | sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 538 | ".", |
| 539 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 540 | } |
| 541 | |
| 542 | if (enable_plugins) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 543 | sources += |
| 544 | rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 545 | deps += [ |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 546 | "//components/pdf/browser", |
brettw | f7eb6ca | 2015-02-14 01:37:31 | [diff] [blame] | 547 | "//ppapi/proxy:ipc", |
thestig | 11b815e9 | 2014-08-26 00:32:14 | [diff] [blame] | 548 | "//third_party/adobe/flash:flapper_version_h", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 549 | ] |
| 550 | } |
| 551 | if (safe_browsing_mode != 0) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 552 | sources += |
stuartmorgan | 1b3df82 | 2014-12-08 14:36:11 | [diff] [blame] | 553 | rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 554 | ".", |
| 555 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 556 | deps += [ |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 557 | "//chrome/browser/safe_browsing:chunk_proto", |
jialiul | eed30443 | 2015-11-09 20:17:03 | [diff] [blame] | 558 | "//chrome/common/safe_browsing:proto", |
vakh | 27f7e22 | 2016-02-02 23:45:34 | [diff] [blame] | 559 | "//components/safe_browsing_db:metadata_proto", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 560 | ] |
| 561 | if (safe_browsing_mode == 1) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 562 | sources += |
stuartmorgan | 1b3df82 | 2014-12-08 14:36:11 | [diff] [blame] | 563 | rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 564 | ".", |
| 565 | "//chrome") |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 566 | deps += [ "//chrome/common/safe_browsing:proto" ] |
grt | c1d1b75 | 2015-09-05 13:26:41 | [diff] [blame] | 567 | if (is_win) { |
| 568 | deps += [ "//chrome/browser/safe_browsing/incident_reporting:state_store_data_proto" ] |
| 569 | } |
nparker | 00a64f1 | 2015-10-16 17:34:30 | [diff] [blame] | 570 | } else if (safe_browsing_mode == 2) { |
| 571 | sources += |
| 572 | rebase_path(gypi_values.chrome_browser_safe_browsing_mobile_sources, |
| 573 | ".", |
| 574 | "//chrome") |
vakh | 27f7e22 | 2016-02-02 23:45:34 | [diff] [blame] | 575 | deps += [ "//components/safe_browsing_db:safe_browsing_db_mobile" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 576 | } |
| 577 | } |
| 578 | |
amistry | f269d3b | 2015-06-09 19:18:39 | [diff] [blame] | 579 | if (enable_hotwording) { |
| 580 | defines += [ "ENABLE_HOTWORDING" ] |
| 581 | } |
| 582 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 583 | if (is_linux) { |
mostynb | ea51468 | 2015-08-18 22:08:56 | [diff] [blame] | 584 | deps += [ "//device/media_transfer_protocol" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 585 | } |
mostynb | ea51468 | 2015-08-18 22:08:56 | [diff] [blame] | 586 | |
| 587 | if (use_udev) { |
| 588 | deps += [ "//device/udev_linux" ] |
| 589 | } |
| 590 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 591 | if (is_linux && !is_chromeos) { |
[email protected] | fd98b61 | 2014-07-09 22:11:47 | [diff] [blame] | 592 | deps += [ "//third_party/speech-dispatcher" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 593 | } |
| 594 | |
| 595 | if (is_chromeos) { |
| 596 | sources += rebase_path(gypi_values.chrome_browser_chromeos_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 597 | ".", |
| 598 | "//chrome") |
| 599 | deps += [ "//chrome/browser/chromeos" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 600 | } |
| 601 | |
mukai | 8c99b88 | 2014-10-15 03:07:59 | [diff] [blame] | 602 | if (is_chromeos || is_ios) { |
| 603 | sources -= [ |
blundell | 296904a | 2015-10-13 12:30:48 | [diff] [blame] | 604 | "signin/chrome_signin_status_metrics_provider_delegate.cc", |
| 605 | "signin/chrome_signin_status_metrics_provider_delegate.h", |
mukai | 8c99b88 | 2014-10-15 03:07:59 | [diff] [blame] | 606 | ] |
| 607 | } |
| 608 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 609 | if (use_cups) { |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 610 | configs += [ "//printing:cups" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 611 | } |
| 612 | if (is_desktop_linux) { |
| 613 | sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 614 | ".", |
| 615 | "//chrome") |
cmasone | 0a9e4ca | 2014-10-16 16:40:49 | [diff] [blame] | 616 | configs += [ ":gnome_keyring" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 617 | } |
dvadym | 3453202 | 2015-01-22 15:42:51 | [diff] [blame] | 618 | if (is_desktop_linux) { |
| 619 | sources += rebase_path(gypi_values.chrome_browser_libsecret_sources, |
| 620 | ".", |
| 621 | "//chrome") |
| 622 | defines += [ "USE_LIBSECRET" ] |
| 623 | } |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 624 | if (use_aura) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 625 | sources += |
| 626 | rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome") |
ben | 0cc0be9 | 2015-11-09 21:49:06 | [diff] [blame] | 627 | |
| 628 | # These files are only built in a GN build because they bring in |
| 629 | # dependencies that don't build with GYP. |
| 630 | sources += [ |
ben | cccedf1 | 2015-11-10 07:56:16 | [diff] [blame] | 631 | "ui/views/frame/browser_frame_mus.cc", |
| 632 | "ui/views/frame/browser_frame_mus.h", |
sky | ab2410c5 | 2015-12-03 03:40:56 | [diff] [blame] | 633 | "ui/views/frame/browser_non_client_frame_view_mus.cc", |
| 634 | "ui/views/frame/browser_non_client_frame_view_mus.h", |
ben | 0cc0be9 | 2015-11-09 21:49:06 | [diff] [blame] | 635 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 636 | deps += [ |
sky | ab2410c5 | 2015-12-03 03:40:56 | [diff] [blame] | 637 | "//components/mus/public/cpp", |
ben | 03b7b9d | 2015-11-15 12:13:09 | [diff] [blame] | 638 | "//content/public/common", |
ben | af49d31 | 2016-01-23 00:55:46 | [diff] [blame] | 639 | "//mojo/shell/runner/child:lib", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 640 | "//ui/aura", |
| 641 | "//ui/compositor", |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 642 | "//ui/keyboard", |
ben | 974286a | 2015-10-10 00:45:12 | [diff] [blame] | 643 | "//ui/keyboard:keyboard_with_content", |
ben | 03b7b9d | 2015-11-15 12:13:09 | [diff] [blame] | 644 | "//ui/views/mus:for_component", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 645 | ] |
ben | 03b7b9d | 2015-11-15 12:13:09 | [diff] [blame] | 646 | defines += [ "MOJO_SHELL_CLIENT" ] |
sky | ef819da | 2015-11-26 02:39:58 | [diff] [blame] | 647 | data_deps += [ "//mash/wm" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 648 | } |
| 649 | if (ui_compositor_image_transport) { |
| 650 | deps += [ "//ui/gl" ] |
| 651 | } |
| 652 | |
[email protected] | 855b7de | 2014-07-08 21:02:45 | [diff] [blame] | 653 | if (use_ash) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 654 | sources += |
| 655 | rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome") |
[email protected] | 855b7de | 2014-07-08 21:02:45 | [diff] [blame] | 656 | } |
| 657 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 658 | if (use_x11) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 659 | sources += |
| 660 | rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome") |
vchigrin | bbc23e7 | 2015-01-21 22:49:23 | [diff] [blame] | 661 | } else { |
| 662 | sources -= [ "password_manager/password_store_x.cc" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 663 | } |
Scott Graham | cae6b0e | 2015-12-04 03:23:29 | [diff] [blame] | 664 | if (is_posix && !is_mac && !is_ios) { |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 665 | sources += [ |
rsesek | a0a7a04 | 2014-09-18 23:59:20 | [diff] [blame] | 666 | "//chrome/app/chrome_crash_reporter_client.cc", |
| 667 | "//chrome/app/chrome_crash_reporter_client.h", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 668 | ] |
| 669 | deps += [ |
sdefresne | 8ba0b88c | 2015-09-18 10:33:13 | [diff] [blame] | 670 | "//components/crash/content/app", |
| 671 | "//components/crash/content/browser", |
blundell | f1cfb03 | 2015-11-16 18:22:30 | [diff] [blame] | 672 | "//components/version_info:generate_version_info", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 673 | ] |
| 674 | } |
| 675 | if (use_nss_certs) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 676 | sources += |
| 677 | rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome") |
mukai | 8c99b88 | 2014-10-15 03:07:59 | [diff] [blame] | 678 | if (is_chromeos) { |
| 679 | sources -= [ "net/nss_context_linux.cc" ] |
| 680 | } |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 681 | } |
| 682 | if (enable_notifications) { |
| 683 | sources += rebase_path(gypi_values.chrome_browser_notifications_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 684 | ".", |
| 685 | "//chrome") |
sievers | 2f1e811 | 2015-12-04 18:43:56 | [diff] [blame] | 686 | if (android_java_ui) { |
| 687 | sources += rebase_path( |
| 688 | gypi_values.chrome_browser_notifications_android_java_ui_sources, |
| 689 | ".", |
| 690 | "//chrome") |
estade | 6d95d1d | 2015-10-02 18:55:23 | [diff] [blame] | 691 | } else { |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 692 | sources += rebase_path( |
stuartmorgan | 1b3df82 | 2014-12-08 14:36:11 | [diff] [blame] | 693 | gypi_values.chrome_browser_notifications_non_android_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 694 | ".", |
| 695 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 696 | } |
| 697 | } |
| 698 | if (enable_themes) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 699 | sources += |
| 700 | rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 701 | } |
| 702 | |
vitalybuka | 93eea40 | 2014-11-05 23:47:15 | [diff] [blame] | 703 | if (enable_basic_printing || enable_print_preview) { |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 704 | # Some form of printing support. |
stuartmorgan | 1b3df82 | 2014-12-08 14:36:11 | [diff] [blame] | 705 | sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 706 | ".", |
| 707 | "//chrome") |
spang | 5cc7254 | 2015-08-04 19:47:11 | [diff] [blame] | 708 | deps += [ |
brettw | d649f6b | 2015-08-18 20:58:51 | [diff] [blame] | 709 | "//components/printing/browser", |
agrieve | d7a71c88 | 2015-11-20 19:53:28 | [diff] [blame] | 710 | "//printing", |
spang | 5cc7254 | 2015-08-04 19:47:11 | [diff] [blame] | 711 | ] |
| 712 | |
vitalybuka | 36259ca | 2014-08-28 23:42:24 | [diff] [blame] | 713 | if (is_win) { |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 714 | sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 715 | ".", |
| 716 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 717 | } |
vitalybuka | 93eea40 | 2014-11-05 23:47:15 | [diff] [blame] | 718 | if (enable_print_preview) { |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 719 | # Full printing on top of the above. |
stuartmorgan | 1b3df82 | 2014-12-08 14:36:11 | [diff] [blame] | 720 | sources += rebase_path(gypi_values.chrome_browser_printing_full_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 721 | ".", |
| 722 | "//chrome") |
vitalybuka | 93eea40 | 2014-11-05 23:47:15 | [diff] [blame] | 723 | } else { |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 724 | # Partial-only printing support. |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 725 | sources += |
stuartmorgan | 1b3df82 | 2014-12-08 14:36:11 | [diff] [blame] | 726 | rebase_path(gypi_values.chrome_browser_printing_basic_only_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 727 | ".", |
| 728 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 729 | } |
| 730 | } |
| 731 | if (enable_captive_portal_detection) { |
| 732 | sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 733 | ".", |
| 734 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 735 | } |
| 736 | if (enable_session_service) { |
| 737 | sources += rebase_path(gypi_values.chrome_browser_session_service_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 738 | ".", |
| 739 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 740 | } |
| 741 | |
thestig | dc37720 | 2014-10-28 22:06:02 | [diff] [blame] | 742 | if (!is_android && !is_ios && !is_chromeos) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 743 | sources += |
| 744 | rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome") |
thestig | dc37720 | 2014-10-28 22:06:02 | [diff] [blame] | 745 | } |
| 746 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 747 | if (is_android || is_ios) { |
| 748 | # Mobile. |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 749 | sources += |
| 750 | rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 751 | } else { |
| 752 | # Non-mobile. |
| 753 | sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 754 | ".", |
| 755 | "//chrome") |
battre | ec96498 | 2015-12-15 14:04:58 | [diff] [blame] | 756 | deps += [ |
| 757 | "//chrome/browser/profile_resetter:profile_reset_report_proto", |
| 758 | "//components/feedback", |
| 759 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 760 | } |
| 761 | |
mathp | 17e1eba | 2015-10-06 21:50:59 | [diff] [blame] | 762 | if (!is_chrome_branded) { |
fserb | 1c2db4c | 2015-07-16 17:14:49 | [diff] [blame] | 763 | sources += [ |
| 764 | "search/local_files_ntp_source.cc", |
| 765 | "search/local_files_ntp_source.h", |
| 766 | ] |
| 767 | } |
| 768 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 769 | if (is_android) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 770 | sources += |
| 771 | rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome") |
sievers | 2f1e811 | 2015-12-04 18:43:56 | [diff] [blame] | 772 | } |
| 773 | |
| 774 | if (android_java_ui) { |
| 775 | sources += rebase_path(gypi_values.chrome_browser_android_java_ui_sources, |
| 776 | ".", |
| 777 | "//chrome") |
fgorski | 1d4c9c9 | 2015-12-17 20:39:32 | [diff] [blame] | 778 | sources += rebase_path(gypi_values.chrome_browser_offline_pages_sources, |
twellington | caf0eb75 | 2015-06-01 16:19:50 | [diff] [blame] | 779 | ".", |
| 780 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 781 | deps += [ |
pkotwicz | 127726f | 2015-05-29 15:20:12 | [diff] [blame] | 782 | ":client_discourse_context_proto", |
| 783 | ":delta_file_proto", |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 784 | ":jni_headers", |
sclittle | c441f78 | 2015-11-12 01:12:09 | [diff] [blame] | 785 | "//components/data_usage/android", |
twifkak | 8c9f750 | 2015-06-25 02:12:57 | [diff] [blame] | 786 | "//components/precache/content", |
| 787 | "//components/precache/core", |
estade | e37f822 | 2014-11-07 21:35:22 | [diff] [blame] | 788 | "//components/resources:components_resources", |
mathiash | 3ecfdfa | 2015-04-13 15:06:07 | [diff] [blame] | 789 | "//components/service_tab_launcher", |
blundell | 11d93bc | 2015-07-31 12:33:12 | [diff] [blame] | 790 | "//components/toolbar", |
cjhopman | 09981a9 | 2014-10-27 17:11:18 | [diff] [blame] | 791 | "//components/web_contents_delegate_android", |
sievers | 2f1e811 | 2015-12-04 18:43:56 | [diff] [blame] | 792 | ] |
| 793 | |
| 794 | defines += [ "ENABLE_DATA_REDUCTION_PROXY_DEBUGGING" ] |
| 795 | } |
| 796 | |
| 797 | if (is_android) { |
| 798 | deps += [ |
| 799 | "//components/cdm/browser", |
| 800 | "//components/resources:components_resources", |
cjhopman | 09981a9 | 2014-10-27 17:11:18 | [diff] [blame] | 801 | "//third_party/android_opengl/etc1", |
fdegans | 34f31e27 | 2015-05-22 16:59:03 | [diff] [blame] | 802 | "//third_party/android_tools:cpu_features", |
twellington | 0bc6149 | 2015-01-30 20:14:13 | [diff] [blame] | 803 | "//third_party/libaddressinput:util", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 804 | ] |
sievers | 2f1e811 | 2015-12-04 18:43:56 | [diff] [blame] | 805 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 806 | deps -= [ |
[email protected] | abd4b68 | 2014-07-16 20:26:30 | [diff] [blame] | 807 | "//components/storage_monitor", |
[email protected] | abd4b68 | 2014-07-16 20:26:30 | [diff] [blame] | 808 | "//components/web_modal", |
agrieve | d7a71c88 | 2015-11-20 19:53:28 | [diff] [blame] | 809 | "//third_party/libaddressinput", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 810 | ] |
rsesek | e59ea89 | 2015-03-19 22:27:44 | [diff] [blame] | 811 | |
| 812 | if (use_seccomp_bpf) { |
| 813 | defines += [ "USE_SECCOMP_BPF" ] |
rsesek | 65d3135 | 2015-06-08 22:53:44 | [diff] [blame] | 814 | deps += [ "//sandbox/linux:seccomp_bpf" ] |
rsesek | e59ea89 | 2015-03-19 22:27:44 | [diff] [blame] | 815 | } |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 816 | } |
| 817 | |
| 818 | if (is_mac) { |
| 819 | deps += [ |
[email protected] | 6b5d2f9 | 2014-07-30 00:40:03 | [diff] [blame] | 820 | "//third_party/google_toolbox_for_mac", |
tfarina | 2289630 | 2015-02-23 21:18:03 | [diff] [blame] | 821 | "//third_party/mozilla", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 822 | ] |
| 823 | libs += [ |
| 824 | "Accelerate.framework", |
| 825 | "AddressBook.framework", |
| 826 | "AudioUnit.framework", |
| 827 | "DiskArbitration.framework", |
| 828 | "IOKit.framework", |
| 829 | "ImageCaptureCore.framework", |
| 830 | "OpenGL.framework", |
| 831 | "QuartzCore.framework", |
| 832 | "SecurityInterface.framework", |
| 833 | ] |
| 834 | } |
| 835 | |
| 836 | if (enable_rlz) { |
sdefresne | d967d55 | 2015-07-16 08:34:35 | [diff] [blame] | 837 | deps += [ ":rlz" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 838 | } |
| 839 | |
| 840 | # TODO(GYP) |
| 841 | # Temporary fix to break the browser target into smaller chunks so it |
| 842 | # will link with goma builds. |
| 843 | #["OS=="win" and chromium_win_pch==0", { |
| 844 | # "msvs_shard": 4, |
| 845 | #}], |
| 846 | |
| 847 | if (is_win) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 848 | sources += |
| 849 | rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome") |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 850 | public_deps += [ |
| 851 | "//ui/views", |
| 852 | "//ui/views/controls/webview", |
| 853 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 854 | deps += [ |
vchigrin | 9593e7a | 2015-01-27 10:08:19 | [diff] [blame] | 855 | ":chrome_process_finder", |
pmonette | 502a83e | 2016-01-08 00:21:16 | [diff] [blame] | 856 | "//chrome/chrome_watcher:client", |
mdempsky | 15a48be | 2015-10-21 23:37:53 | [diff] [blame] | 857 | "//chrome/common:version_header", |
[email protected] | 55699f39 | 2014-08-20 22:16:30 | [diff] [blame] | 858 | "//chrome/installer/util:strings", |
vchigrin | f2b90aa | 2015-01-23 11:12:19 | [diff] [blame] | 859 | "//chrome_elf", |
| 860 | "//chrome_elf:constants", |
| 861 | "//chrome_elf:dll_hash", |
vchigrin | 61944ae | 2015-01-30 23:51:32 | [diff] [blame] | 862 | "//components/browser_watcher", |
| 863 | "//components/browser_watcher:browser_watcher_client", |
fdoray | c295b76 | 2016-01-19 18:49:23 | [diff] [blame] | 864 | "//components/startup_metric_utils/common", |
vchigrin | bbc23e7 | 2015-01-21 22:49:23 | [diff] [blame] | 865 | "//google_update", |
[email protected] | 55699f39 | 2014-08-20 22:16:30 | [diff] [blame] | 866 | "//third_party/iaccessible2", |
| 867 | "//third_party/isimpledom", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 868 | "//third_party/wtl", |
vchigrin | 88ed6f4 | 2015-01-17 11:56:42 | [diff] [blame] | 869 | "//ui/metro_viewer", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 870 | ] |
mmenke | de13467 | 2015-08-18 01:33:39 | [diff] [blame] | 871 | |
| 872 | all_dependent_configs = [ ":browser_win_linker_flags" ] |
| 873 | |
grt | 235b3f09 | 2015-05-27 21:42:48 | [diff] [blame] | 874 | if (!is_chrome_branded) { |
| 875 | deps -= [ "//google_update" ] |
| 876 | sources -= [ |
| 877 | "google/did_run_updater_win.cc", |
| 878 | "google/did_run_updater_win.h", |
| 879 | "google/google_update_win.cc", |
| 880 | "google/google_update_win.h", |
| 881 | ] |
| 882 | } |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 883 | } else { |
| 884 | # Non-Windows. |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 885 | sources += |
| 886 | rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome") |
[email protected] | f6dc4ae | 2014-07-30 00:10:37 | [diff] [blame] | 887 | if (toolkit_views) { |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 888 | deps += [ |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 889 | "//ui/views", |
| 890 | "//ui/views/controls/webview", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 891 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 892 | } |
| 893 | } |
| 894 | |
| 895 | if (is_linux) { |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 896 | if (use_aura) { |
slan | 17e5ce7f | 2015-09-25 00:04:45 | [diff] [blame] | 897 | configs += [ "//build/config/linux:dbus" ] |
| 898 | deps += [ |
| 899 | "//build/linux:fontconfig", |
| 900 | "//dbus", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 901 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 902 | } |
| 903 | if (use_x11) { |
| 904 | configs += [ "//build/config/linux:x11" ] |
| 905 | deps += [ "//ui/gfx/x" ] |
| 906 | } |
| 907 | } |
| 908 | |
| 909 | if (is_desktop_linux) { |
stuartmorgan | 7f569a82 | 2014-12-08 20:10:54 | [diff] [blame] | 910 | sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 911 | ".", |
| 912 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 913 | } |
| 914 | if (enable_plugin_installation) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 915 | sources += |
| 916 | rebase_path(gypi_values.chrome_browser_plugin_installation_sources, |
| 917 | ".", |
| 918 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 919 | } |
| 920 | if (enable_app_list) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 921 | deps += [ "//ui/app_list" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 922 | } |
treib | 87bb89cbb | 2014-12-01 16:01:47 | [diff] [blame] | 923 | if (enable_supervised_users) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 924 | sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources, |
| 925 | ".", |
| 926 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 927 | } |
bauerb | 7f3b854 | 2015-06-29 19:56:19 | [diff] [blame] | 928 | if (enable_supervised_users && !is_android && !is_ios) { |
| 929 | sources += |
| 930 | rebase_path(gypi_values.chrome_browser_supervised_user_legacy_sources, |
| 931 | ".", |
| 932 | "//chrome") |
| 933 | } |
treib | 87bb89cbb | 2014-12-01 16:01:47 | [diff] [blame] | 934 | if (enable_supervised_users && enable_themes) { |
thestig | 169a636 | 2014-11-13 20:47:59 | [diff] [blame] | 935 | sources += rebase_path( |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 936 | gypi_values.chrome_browser_supervised_user_and_themes_sources, |
| 937 | ".", |
| 938 | "//chrome") |
thestig | 169a636 | 2014-11-13 20:47:59 | [diff] [blame] | 939 | } |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 940 | if (enable_webrtc) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 941 | sources += |
| 942 | rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 943 | } |
| 944 | if (enable_service_discovery) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 945 | sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources, |
| 946 | ".", |
| 947 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 948 | } |
| 949 | if (enable_mdns) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 950 | sources += |
| 951 | rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 952 | } |
| 953 | if (!enable_autofill_dialog || is_android || is_ios) { |
| 954 | sources -= [ |
| 955 | "autofill/validation_rules_storage_factory.cc", |
| 956 | "autofill/validation_rules_storage_factory.h", |
| 957 | ] |
| 958 | } |
mfoltz | 150bb8b | 2015-04-09 22:30:05 | [diff] [blame] | 959 | if (enable_media_router) { |
imcheng | b6b09239f | 2015-05-15 21:41:55 | [diff] [blame] | 960 | deps += [ "//chrome/browser/media/router" ] |
mfoltz | 150bb8b | 2015-04-09 22:30:05 | [diff] [blame] | 961 | } |
xhwang | 5e63046 | 2015-10-30 03:18:48 | [diff] [blame] | 962 | |
| 963 | if (enable_mojo_media != "none") { |
alokp | aa2fdfb7 | 2016-02-03 22:55:54 | [diff] [blame] | 964 | deps += [ "//media/mojo/services:default_application" ] |
xhwang | 5e63046 | 2015-10-30 03:18:48 | [diff] [blame] | 965 | } |
reveman | b195f41d | 2015-11-19 22:16:48 | [diff] [blame] | 966 | |
| 967 | if (enable_wayland_server) { |
| 968 | deps += [ |
| 969 | "//components/exo", |
| 970 | "//components/exo/wayland", |
| 971 | ] |
| 972 | sources += [ |
| 973 | "chrome_browser_main_extra_parts_exo.cc", |
| 974 | "chrome_browser_main_extra_parts_exo.h", |
| 975 | ] |
| 976 | } |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 977 | } |
| 978 | |
sievers | 2f1e811 | 2015-12-04 18:43:56 | [diff] [blame] | 979 | if (android_java_ui) { |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 980 | # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers |
| 981 | generate_jni("jni_headers") { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 982 | sources = |
| 983 | rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome") |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 984 | jni_package = "chrome" |
| 985 | } |
pkotwicz | 127726f | 2015-05-29 15:20:12 | [diff] [blame] | 986 | |
| 987 | #GYP: '//chrome/chrome_browser.gypi:client_discourse_context_proto' |
| 988 | proto_library("client_discourse_context_proto") { |
| 989 | sources = [ |
| 990 | "android/proto/client_discourse_context.proto", |
| 991 | ] |
| 992 | } |
| 993 | |
| 994 | #GYP: '//chrome/chrome_browser.gypi:delta_file_proto' |
| 995 | proto_library("delta_file_proto") { |
| 996 | sources = [ |
| 997 | "android/proto/delta_file.proto", |
| 998 | ] |
| 999 | } |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 1000 | } |
| 1001 | |
vchigrin | 9593e7a | 2015-01-27 10:08:19 | [diff] [blame] | 1002 | if (is_win) { |
| 1003 | source_set("chrome_process_finder") { |
| 1004 | sources = [ |
| 1005 | "chrome_process_finder_win.cc", |
| 1006 | "chrome_process_finder_win.h", |
| 1007 | ] |
| 1008 | deps = [ |
| 1009 | "//base", |
vchigrin | 9593e7a | 2015-01-27 10:08:19 | [diff] [blame] | 1010 | "//chrome/common:constants", |
| 1011 | ] |
| 1012 | if (enable_configuration_policy) { |
| 1013 | deps += [ "//chrome/browser/policy:path_parser" ] |
| 1014 | } |
| 1015 | } |
| 1016 | } |
| 1017 | |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 1018 | # GYP version: chrome/chrome_resources.gyp:chrome_resources |
| 1019 | # (generate_browser_resources action) |
| 1020 | grit("resources") { |
| 1021 | source = "browser_resources.grd" |
brettw | 06c2ba3 | 2015-11-26 09:21:25 | [diff] [blame] | 1022 | defines = chrome_grit_defines |
[email protected] | 4888549 | 2014-08-13 11:22:41 | [diff] [blame] | 1023 | output_dir = "$root_gen_dir/chrome" |
[email protected] | cb0c67a | 2014-07-22 16:37:26 | [diff] [blame] | 1024 | outputs = [ |
| 1025 | "grit/browser_resources.h", |
| 1026 | "browser_resources.pak", |
| 1027 | ] |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 1028 | |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 1029 | grit_flags = [ |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 1030 | "-E", |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 1031 | "additional_modules_list_file=" + |
| 1032 | rebase_path(additional_modules_list_file, root_build_dir), |
| 1033 | "-E", |
calamity | d59c103 | 2015-09-22 06:35:53 | [diff] [blame] | 1034 | "root_gen_dir=" + rebase_path(root_gen_dir, root_build_dir), |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 1035 | ] |
| 1036 | |
| 1037 | deps = [ |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 1038 | ":chrome_internal_resources_gen", |
brettw | de262b0 | 2015-05-27 19:41:42 | [diff] [blame] | 1039 | |
| 1040 | # Depend only on the generated mojo bindings since we read the .mojom.js |
| 1041 | # file, rather than the whole mojo target which will link the C++ bindings. |
calamity | d59c103 | 2015-09-22 06:35:53 | [diff] [blame] | 1042 | "//chrome/browser/ui/webui/engagement:mojo_bindings__generator", |
brettw | de262b0 | 2015-05-27 19:41:42 | [diff] [blame] | 1043 | "//chrome/browser/ui/webui/omnibox:mojo_bindings__generator", |
dpapad | 59e3ad4 | 2016-02-02 21:58:06 | [diff] [blame] | 1044 | "//chrome/browser/ui/webui/plugins:mojo_bindings__generator", |
vchigrin | 8eede94 | 2015-01-29 09:28:15 | [diff] [blame] | 1045 | ] |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 1046 | } |
| 1047 | |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 1048 | # GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen |
engedy | 99d0e11b | 2014-09-30 13:32:41 | [diff] [blame] | 1049 | if (is_chrome_branded) { |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 1050 | action("chrome_internal_resources_gen") { |
engedy | 99d0e11b | 2014-09-30 13:32:41 | [diff] [blame] | 1051 | script = "internal/transform_additional_modules_list.py" |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 1052 | sources = [ |
| 1053 | "internal/resources/additional_modules_list.input", |
| 1054 | ] |
| 1055 | outputs = [ |
| 1056 | additional_modules_list_file, |
| 1057 | ] |
engedy | 99d0e11b | 2014-09-30 13:32:41 | [diff] [blame] | 1058 | args = rebase_path(sources, root_build_dir) + |
| 1059 | rebase_path(outputs, root_build_dir) |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 1060 | } |
| 1061 | } else { |
| 1062 | group("chrome_internal_resources_gen") { |
| 1063 | # Empty placeholder. |
| 1064 | } |
| 1065 | } |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1066 | |
| 1067 | # In GYP this is part of test_support_common. |
| 1068 | source_set("test_support") { |
| 1069 | testonly = true |
| 1070 | |
| 1071 | # Always include this via the main test support target. |
| 1072 | visibility = [ "//chrome/test:test_support" ] |
| 1073 | |
| 1074 | sources = [ |
| 1075 | "browsing_data/mock_browsing_data_appcache_helper.cc", |
| 1076 | "browsing_data/mock_browsing_data_appcache_helper.h", |
jsbell | e1fe969 | 2015-08-22 01:02:42 | [diff] [blame] | 1077 | "browsing_data/mock_browsing_data_cache_storage_helper.cc", |
| 1078 | "browsing_data/mock_browsing_data_cache_storage_helper.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1079 | "browsing_data/mock_browsing_data_channel_id_helper.cc", |
| 1080 | "browsing_data/mock_browsing_data_channel_id_helper.h", |
| 1081 | "browsing_data/mock_browsing_data_cookie_helper.cc", |
| 1082 | "browsing_data/mock_browsing_data_cookie_helper.h", |
| 1083 | "browsing_data/mock_browsing_data_database_helper.cc", |
| 1084 | "browsing_data/mock_browsing_data_database_helper.h", |
| 1085 | "browsing_data/mock_browsing_data_file_system_helper.cc", |
| 1086 | "browsing_data/mock_browsing_data_file_system_helper.h", |
| 1087 | "browsing_data/mock_browsing_data_flash_lso_helper.cc", |
| 1088 | "browsing_data/mock_browsing_data_flash_lso_helper.h", |
| 1089 | "browsing_data/mock_browsing_data_indexed_db_helper.cc", |
| 1090 | "browsing_data/mock_browsing_data_indexed_db_helper.h", |
| 1091 | "browsing_data/mock_browsing_data_local_storage_helper.cc", |
| 1092 | "browsing_data/mock_browsing_data_local_storage_helper.h", |
| 1093 | "browsing_data/mock_browsing_data_quota_helper.cc", |
| 1094 | "browsing_data/mock_browsing_data_quota_helper.h", |
| 1095 | "browsing_data/mock_browsing_data_service_worker_helper.cc", |
| 1096 | "browsing_data/mock_browsing_data_service_worker_helper.h", |
| 1097 | "download/download_test_file_activity_observer.cc", |
| 1098 | "download/download_test_file_activity_observer.h", |
| 1099 | "download/test_download_shelf.cc", |
| 1100 | "download/test_download_shelf.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1101 | "media/fake_desktop_media_list.cc", |
| 1102 | "media/fake_desktop_media_list.h", |
| 1103 | "net/dns_probe_test_util.cc", |
| 1104 | "net/dns_probe_test_util.h", |
| 1105 | "net/url_request_mock_util.cc", |
| 1106 | "net/url_request_mock_util.h", |
| 1107 | "notifications/notification_test_util.cc", |
| 1108 | "notifications/notification_test_util.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1109 | "profile_resetter/profile_resetter_test_base.cc", |
| 1110 | "profile_resetter/profile_resetter_test_base.h", |
| 1111 | "search_engines/template_url_service_factory_test_util.cc", |
| 1112 | "search_engines/template_url_service_factory_test_util.h", |
| 1113 | "search_engines/template_url_service_test_util.cc", |
| 1114 | "search_engines/template_url_service_test_util.h", |
sque | f7d723a | 2015-01-26 22:13:45 | [diff] [blame] | 1115 | "sessions/session_restore_test_helper.cc", |
| 1116 | "sessions/session_restore_test_helper.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1117 | "sessions/session_service_test_helper.cc", |
| 1118 | "sessions/session_service_test_helper.h", |
knn | 523bd72 | 2015-07-30 16:27:09 | [diff] [blame] | 1119 | "signin/fake_account_fetcher_service_builder.cc", |
| 1120 | "signin/fake_account_fetcher_service_builder.h", |
mlerman | 2933d01 | 2015-04-24 18:34:27 | [diff] [blame] | 1121 | "signin/fake_gaia_cookie_manager_service.cc", |
| 1122 | "signin/fake_gaia_cookie_manager_service.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1123 | "signin/fake_profile_oauth2_token_service_builder.cc", |
| 1124 | "signin/fake_profile_oauth2_token_service_builder.h", |
droger | 4f489e6 | 2015-07-24 19:27:59 | [diff] [blame] | 1125 | "signin/fake_signin_manager_builder.cc", |
| 1126 | "signin/fake_signin_manager_builder.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1127 | "ssl/ssl_client_auth_requestor_mock.cc", |
| 1128 | "ssl/ssl_client_auth_requestor_mock.h", |
maxbogue | d2ea924 | 2015-10-29 01:24:52 | [diff] [blame] | 1129 | "sync/profile_sync_test_util.cc", |
| 1130 | "sync/profile_sync_test_util.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1131 | ] |
| 1132 | |
brettw | bc8b2a2 | 2015-07-28 18:24:42 | [diff] [blame] | 1133 | configs += [ "//build/config:precompiled_headers" ] |
| 1134 | |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 1135 | public_deps = [ |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1136 | ":browser", |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 1137 | "//chrome/browser/ui:test_support", |
| 1138 | ] |
| 1139 | deps = [ |
agrieve | d7a71c88 | 2015-11-20 19:53:28 | [diff] [blame] | 1140 | "//chrome/app/theme:theme_resources", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1141 | "//chrome/browser", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1142 | "//chrome/common", |
| 1143 | "//chrome/common/safe_browsing:proto", |
vabr | a6fded2 | 2015-12-10 09:06:55 | [diff] [blame] | 1144 | "//components/browser_sync/browser:test_support", |
knn | 062cdbb | 2015-06-26 18:18:42 | [diff] [blame] | 1145 | "//components/invalidation/impl", |
| 1146 | "//components/invalidation/impl:test_support", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1147 | "//components/password_manager/core/browser:test_support", |
brettw | 9f7802a2 | 2016-01-30 06:40:17 | [diff] [blame] | 1148 | "//components/prefs:test_support", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1149 | "//components/search_engines:test_support", |
sdefresne | 875d078 | 2015-09-16 12:01:28 | [diff] [blame] | 1150 | "//components/syncable_prefs:test_support", |
jitendra.ks | 94c0b96 | 2015-08-10 08:24:09 | [diff] [blame] | 1151 | "//components/user_prefs/tracked:user_prefs_tracked_test_support", |
carlosk | 282c437 | 2016-02-02 14:53:49 | [diff] [blame] | 1152 | "//content/test:browsertest_base", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1153 | "//content/test:test_support", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1154 | "//net:test_support", |
| 1155 | "//skia", |
| 1156 | "//testing/gmock", |
| 1157 | "//testing/gtest", |
| 1158 | "//ui/gfx", |
| 1159 | ] |
| 1160 | |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1161 | if (!is_ios) { |
| 1162 | deps += [ |
| 1163 | "//components/sessions:test_support", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1164 | "//google_apis:test_support", |
| 1165 | ] |
| 1166 | } |
| 1167 | |
thestig | 354985d | 2015-09-28 20:55:00 | [diff] [blame] | 1168 | if (is_android) { |
| 1169 | sources -= [ |
thestig | 259da0b | 2015-10-07 18:09:08 | [diff] [blame] | 1170 | "download/test_download_shelf.cc", |
| 1171 | "download/test_download_shelf.h", |
| 1172 | "profile_resetter/profile_resetter_test_base.cc", |
| 1173 | "profile_resetter/profile_resetter_test_base.h", |
| 1174 | "sessions/session_restore_test_helper.cc", |
| 1175 | "sessions/session_restore_test_helper.h", |
thestig | 354985d | 2015-09-28 20:55:00 | [diff] [blame] | 1176 | "sessions/session_service_test_helper.cc", |
| 1177 | "sessions/session_service_test_helper.h", |
thestig | 354985d | 2015-09-28 20:55:00 | [diff] [blame] | 1178 | ] |
| 1179 | } |
| 1180 | |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 1181 | if (enable_extensions) { |
thestig | 52a87b3b | 2014-10-23 22:02:38 | [diff] [blame] | 1182 | sources += [ |
| 1183 | "extensions/extension_action_test_util.cc", |
| 1184 | "extensions/extension_action_test_util.h", |
| 1185 | ] |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 1186 | deps += [ "//extensions:test_support" ] |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 1187 | } |
| 1188 | |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1189 | if (is_chromeos) { |
| 1190 | sources += [ |
| 1191 | "chromeos/app_mode/fake_cws.cc", |
| 1192 | "chromeos/app_mode/fake_cws.h", |
| 1193 | "chromeos/file_manager/fake_disk_mount_manager.cc", |
| 1194 | "chromeos/file_manager/fake_disk_mount_manager.h", |
| 1195 | "chromeos/input_method/mock_candidate_window_controller.cc", |
| 1196 | "chromeos/input_method/mock_candidate_window_controller.h", |
| 1197 | "chromeos/input_method/mock_input_method_engine.cc", |
| 1198 | "chromeos/input_method/mock_input_method_engine.h", |
| 1199 | "chromeos/input_method/mock_input_method_manager.cc", |
| 1200 | "chromeos/input_method/mock_input_method_manager.h", |
brettw | 7d6ec246 | 2015-01-07 13:00:51 | [diff] [blame] | 1201 | "chromeos/login/screens/mock_device_disabled_screen_actor.cc", |
| 1202 | "chromeos/login/screens/mock_device_disabled_screen_actor.h", |
nkostylev | 393309f | 2015-02-05 13:57:39 | [diff] [blame] | 1203 | "chromeos/login/session/user_session_manager_test_api.cc", |
| 1204 | "chromeos/login/session/user_session_manager_test_api.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1205 | "chromeos/login/test/js_checker.cc", |
| 1206 | "chromeos/login/test/js_checker.h", |
satorux | b7a72ea | 2015-02-13 07:19:59 | [diff] [blame] | 1207 | "chromeos/login/test/oobe_screen_waiter.cc", |
| 1208 | "chromeos/login/test/oobe_screen_waiter.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1209 | "chromeos/login/ui/mock_login_display.cc", |
| 1210 | "chromeos/login/ui/mock_login_display.h", |
| 1211 | "chromeos/login/ui/mock_login_display_host.cc", |
| 1212 | "chromeos/login/ui/mock_login_display_host.h", |
brettw | 7d6ec246 | 2015-01-07 13:00:51 | [diff] [blame] | 1213 | "chromeos/login/users/avatar/mock_user_image_manager.cc", |
| 1214 | "chromeos/login/users/avatar/mock_user_image_manager.h", |
merkulova | 793f302 | 2015-02-04 10:18:30 | [diff] [blame] | 1215 | "chromeos/login/users/fake_chrome_user_manager.cc", |
| 1216 | "chromeos/login/users/fake_chrome_user_manager.h", |
brettw | 7d6ec246 | 2015-01-07 13:00:51 | [diff] [blame] | 1217 | "chromeos/login/users/fake_supervised_user_manager.cc", |
| 1218 | "chromeos/login/users/fake_supervised_user_manager.h", |
brettw | 7d6ec246 | 2015-01-07 13:00:51 | [diff] [blame] | 1219 | "chromeos/login/users/mock_user_manager.cc", |
| 1220 | "chromeos/login/users/mock_user_manager.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1221 | "chromeos/net/network_portal_detector_test_utils.cc", |
| 1222 | "chromeos/net/network_portal_detector_test_utils.h", |
| 1223 | "chromeos/policy/cloud_external_data_manager_base_test_util.cc", |
| 1224 | "chromeos/policy/cloud_external_data_manager_base_test_util.h", |
| 1225 | "chromeos/policy/device_policy_builder.cc", |
| 1226 | "chromeos/policy/device_policy_builder.h", |
brettw | a68ea2b | 2015-02-01 02:54:07 | [diff] [blame] | 1227 | "chromeos/policy/fake_consumer_management_service.cc", |
| 1228 | "chromeos/policy/fake_consumer_management_service.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1229 | "chromeos/policy/fake_device_cloud_policy_initializer.cc", |
| 1230 | "chromeos/policy/fake_device_cloud_policy_initializer.h", |
brettw | a68ea2b | 2015-02-01 02:54:07 | [diff] [blame] | 1231 | "chromeos/policy/fake_device_cloud_policy_manager.cc", |
| 1232 | "chromeos/policy/fake_device_cloud_policy_manager.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1233 | "chromeos/policy/stub_enterprise_install_attributes.cc", |
| 1234 | "chromeos/policy/stub_enterprise_install_attributes.h", |
| 1235 | "chromeos/settings/device_settings_test_helper.cc", |
| 1236 | "chromeos/settings/device_settings_test_helper.h", |
| 1237 | "chromeos/system/fake_input_device_settings.cc", |
| 1238 | "chromeos/system/fake_input_device_settings.h", |
| 1239 | ] |
| 1240 | configs += [ "//build/config/linux:dbus" ] |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 1241 | deps += [ "//chromeos:test_support" ] |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1242 | } |
| 1243 | |
| 1244 | if (enable_configuration_policy) { |
| 1245 | sources += [ |
| 1246 | "policy/test/local_policy_test_server.cc", |
| 1247 | "policy/test/local_policy_test_server.h", |
| 1248 | ] |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 1249 | public_deps += [ |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1250 | "//components/policy:policy_component_test_support", |
| 1251 | "//components/policy:test_support", |
| 1252 | ] |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1253 | } |
| 1254 | |
| 1255 | if (safe_browsing_mode == 1) { |
| 1256 | sources += [ |
| 1257 | "extensions/fake_safe_browsing_database_manager.cc", |
| 1258 | "extensions/fake_safe_browsing_database_manager.h", |
| 1259 | ] |
| 1260 | } |
| 1261 | |
| 1262 | if (enable_extensions) { |
| 1263 | sources += [ |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1264 | "extensions/api/messaging/native_messaging_test_util.cc", |
| 1265 | "extensions/api/messaging/native_messaging_test_util.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1266 | "extensions/mock_extension_special_storage_policy.cc", |
| 1267 | "extensions/mock_extension_special_storage_policy.h", |
| 1268 | "extensions/test_blacklist.cc", |
| 1269 | "extensions/test_blacklist.h", |
| 1270 | "extensions/test_blacklist_state_fetcher.cc", |
| 1271 | "extensions/test_blacklist_state_fetcher.h", |
brettw | 7d6ec246 | 2015-01-07 13:00:51 | [diff] [blame] | 1272 | "extensions/test_extension_dir.cc", |
| 1273 | "extensions/test_extension_dir.h", |
satorux | b7a72ea | 2015-02-13 07:19:59 | [diff] [blame] | 1274 | "extensions/test_extension_environment.cc", |
| 1275 | "extensions/test_extension_environment.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1276 | "extensions/test_extension_prefs.cc", |
| 1277 | "extensions/test_extension_prefs.h", |
| 1278 | "extensions/test_extension_service.cc", |
| 1279 | "extensions/test_extension_service.h", |
| 1280 | "extensions/test_extension_system.cc", |
| 1281 | "extensions/test_extension_system.h", |
| 1282 | "media_galleries/media_galleries_test_util.cc", |
| 1283 | "media_galleries/media_galleries_test_util.h", |
| 1284 | ] |
lukasza | 8acc4eb | 2015-07-20 20:57:20 | [diff] [blame] | 1285 | deps += [ |
| 1286 | "//components/drive:test_support", |
| 1287 | "//components/storage_monitor:test_support", |
| 1288 | ] |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1289 | } |
| 1290 | |
| 1291 | if (enable_mdns) { |
| 1292 | sources += [ |
| 1293 | "local_discovery/test_service_discovery_client.cc", |
| 1294 | "local_discovery/test_service_discovery_client.h", |
| 1295 | ] |
| 1296 | } |
| 1297 | |
| 1298 | if (enable_app_list) { |
| 1299 | sources += [ |
| 1300 | "ui/app_list/test/chrome_app_list_test_support.cc", |
| 1301 | "ui/app_list/test/chrome_app_list_test_support.h", |
brettw | 7d6ec246 | 2015-01-07 13:00:51 | [diff] [blame] | 1302 | "ui/app_list/test/test_app_list_controller_delegate.cc", |
| 1303 | "ui/app_list/test/test_app_list_controller_delegate.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1304 | ] |
| 1305 | } |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1306 | } |
sdefresne | d967d55 | 2015-07-16 08:34:35 | [diff] [blame] | 1307 | |
thestig | 65d7c5c | 2015-10-06 18:13:47 | [diff] [blame] | 1308 | # In GYP this is part of test_support_ui. |
| 1309 | source_set("test_support_ui") { |
| 1310 | testonly = true |
| 1311 | |
| 1312 | # Always include this via the main test support UI target. |
| 1313 | visibility = [ "//chrome/test:test_support_ui" ] |
| 1314 | |
| 1315 | sources = [ |
| 1316 | "password_manager/password_manager_test_base.cc", |
| 1317 | "password_manager/password_manager_test_base.h", |
shadi | 3ca8c9d | 2016-01-19 18:54:39 | [diff] [blame] | 1318 | "signin/token_revoker_test_utils.cc", |
| 1319 | "signin/token_revoker_test_utils.h", |
thestig | 65d7c5c | 2015-10-06 18:13:47 | [diff] [blame] | 1320 | "ui/webui/signin/login_ui_test_utils.cc", |
| 1321 | "ui/webui/signin/login_ui_test_utils.h", |
| 1322 | ] |
| 1323 | |
| 1324 | configs += [ "//build/config:precompiled_headers" ] |
| 1325 | |
| 1326 | deps = [ |
| 1327 | "//components/metrics:test_support", |
vabr | 22c9e4f4 | 2015-10-20 15:34:09 | [diff] [blame] | 1328 | "//components/password_manager/core/browser:test_support", |
thestig | 65d7c5c | 2015-10-06 18:13:47 | [diff] [blame] | 1329 | "//skia", |
| 1330 | "//testing/gtest", |
| 1331 | ] |
| 1332 | } |
| 1333 | |
sdefresne | d967d55 | 2015-07-16 08:34:35 | [diff] [blame] | 1334 | if (enable_rlz_support) { |
| 1335 | source_set("rlz") { |
| 1336 | sources = |
| 1337 | rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome") |
| 1338 | deps = [ |
| 1339 | "//components/google/core/browser", |
| 1340 | "//components/omnibox/browser", |
| 1341 | "//components/rlz", |
| 1342 | "//components/search_engines", |
| 1343 | "//rlz:rlz_lib", |
| 1344 | ] |
| 1345 | } |
| 1346 | } |