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