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