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