[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 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 5 | import("//build/config/crypto.gni") |
| 6 | import("//build/config/features.gni") |
| 7 | import("//build/config/ui.gni") |
[email protected] | 449ceab | 2014-07-29 22:43:51 | [diff] [blame] | 8 | import("//components/nacl/nacl_defines.gni") |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 9 | |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 10 | # //build/config/android/rules.gni imports //tools/grit/grit_rule.gni, which |
| 11 | # produces a conflict for the "grit" template so we have to only include one. |
| 12 | if (is_android) { |
| 13 | import("//build/config/android/rules.gni") |
| 14 | } else { |
| 15 | import("//tools/grit/grit_rule.gni") |
| 16 | } |
cmasone | 0a9e4ca | 2014-10-16 16:40:49 | [diff] [blame] | 17 | if (is_desktop_linux) { |
| 18 | import("//build/config/linux/pkg_config.gni") |
| 19 | } |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 20 | |
| 21 | about_credits_file = "$target_gen_dir/about_credits.html" |
| 22 | additional_modules_list_file = |
| 23 | "$root_gen_dir/chrome/browser/internal/additional_modules_list.txt" |
| 24 | |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 25 | gypi_values = exec_script("//build/gypi_to_gn.py", |
| 26 | [ rebase_path("../chrome_browser.gypi") ], |
| 27 | "scope", |
| 28 | [ "../chrome_browser.gypi" ]) |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 29 | |
cmasone | 0a9e4ca | 2014-10-16 16:40:49 | [diff] [blame] | 30 | if (is_desktop_linux) { |
| 31 | pkg_config("gnome_keyring") { |
| 32 | packages = [ "gnome-keyring-1" ] |
| 33 | } |
| 34 | } |
| 35 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 36 | static_library("browser") { |
apavlov | e749bca | 2014-09-30 11:07:41 | [diff] [blame] | 37 | configs += [ |
| 38 | "//build/config/compiler:wexit_time_destructors", |
| 39 | "//third_party/WebKit/public:debug_devtools", |
| 40 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 41 | defines = [] |
| 42 | sources = [] |
| 43 | libs = [] |
| 44 | ldflags = [] |
| 45 | |
| 46 | # iOS/non-iOS shared deps. New dependencies should generally be added in the |
| 47 | # non-iOS deps below. |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 48 | public_deps = [ |
| 49 | "//components/autofill/core/browser", |
| 50 | "//content/public/browser", |
| 51 | "//sql", |
| 52 | "//sync", |
| 53 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 54 | deps = [ |
| 55 | "//base/allocator", |
| 56 | "//chrome:extra_resources", |
| 57 | "//chrome:resources", |
| 58 | "//chrome:strings", |
[email protected] | 797b2504 | 2014-07-01 23:54:17 | [diff] [blame] | 59 | "//chrome/app:generated_resources_map", |
[email protected] | 855b7de | 2014-07-08 21:02:45 | [diff] [blame] | 60 | "//chrome/app/resources:platform_locale_settings", |
[email protected] | 797b2504 | 2014-07-01 23:54:17 | [diff] [blame] | 61 | "//chrome/app/theme:theme_resources", |
[email protected] | 855b7de | 2014-07-08 21:02:45 | [diff] [blame] | 62 | "//chrome/browser/history:in_memory_url_index_cache_proto", |
[email protected] | 855b7de | 2014-07-08 21:02:45 | [diff] [blame] | 63 | "//chrome/browser/net:cert_logger_proto", |
[email protected] | 797b2504 | 2014-07-01 23:54:17 | [diff] [blame] | 64 | "//chrome/browser/net:probe_message_proto", |
[email protected] | abd4b68 | 2014-07-16 20:26:30 | [diff] [blame] | 65 | "//chrome/browser/ui", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 66 | "//chrome/common", |
| 67 | "//chrome/common/net", |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 68 | "//components/autofill/core/browser", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 69 | "//components/bookmarks/browser", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 70 | "//components/captive_portal", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 71 | "//components/cloud_devices/common", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 72 | "//components/component_updater", |
vasilii | ac46139 | 2014-09-18 11:35:17 | [diff] [blame] | 73 | "//components/content_settings/core/browser", |
[email protected] | 08f7101 | 2014-07-25 10:27:54 | [diff] [blame] | 74 | "//components/content_settings/core/common", |
[email protected] | 478ed23 | 2014-08-19 02:10:55 | [diff] [blame] | 75 | "//components/crx_file", |
megjablon | 3476e04 | 2014-10-14 19:21:59 | [diff] [blame] | 76 | "//components/data_reduction_proxy/core/browser", |
[email protected] | 273ae5ab | 2014-07-09 21:10:25 | [diff] [blame] | 77 | "//components/domain_reliability", |
noyau | daaac3a | 2014-10-08 11:11:11 | [diff] [blame] | 78 | "//components/enhanced_bookmarks", |
[email protected] | 273ae5ab | 2014-07-09 21:10:25 | [diff] [blame] | 79 | "//components/favicon_base", |
| 80 | "//components/favicon/core", |
[email protected] | abd4b68 | 2014-07-16 20:26:30 | [diff] [blame] | 81 | "//components/feedback", |
| 82 | "//components/gcm_driver", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 83 | "//components/google/core/browser", |
erikchen | 332265b | 2014-11-14 19:59:52 | [diff] [blame] | 84 | "//components/handoff", |
[email protected] | 273ae5ab | 2014-07-09 21:10:25 | [diff] [blame] | 85 | "//components/history/core/browser", |
| 86 | "//components/history/core/common", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 87 | "//components/infobars/core", |
| 88 | "//components/invalidation", |
gunsch | 1afc6517 | 2014-09-16 00:03:32 | [diff] [blame] | 89 | "//components/metrics:gpu", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 90 | "//components/metrics:net", |
gunsch | 840bc41 | 2014-09-18 19:38:06 | [diff] [blame] | 91 | "//components/metrics:profiler", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 92 | "//components/metrics/proto:proto", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 93 | "//components/navigation_metrics", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 94 | "//components/network_time", |
rockot | 89e757c | 2014-11-13 18:40:07 | [diff] [blame] | 95 | "//components/omaha_client", |
[email protected] | b1c5ab68 | 2014-08-07 11:53:17 | [diff] [blame] | 96 | "//components/omnibox", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 97 | "//components/os_crypt", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 98 | "//components/password_manager/core/browser", |
| 99 | "//components/password_manager/core/common", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 100 | "//components/policy:policy_component", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 101 | "//components/precache/core", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 102 | "//components/query_parser", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 103 | "//components/rappor", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 104 | "//components/renderer_context_menu", |
[email protected] | 720b1049 | 2014-07-23 08:48:40 | [diff] [blame] | 105 | "//components/search", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 106 | "//components/search_engines", |
| 107 | "//components/search_provider_logos", |
[email protected] | abd4b68 | 2014-07-16 20:26:30 | [diff] [blame] | 108 | "//components/signin/core/browser", |
| 109 | "//components/startup_metric_utils", |
[email protected] | 797b2504 | 2014-07-01 23:54:17 | [diff] [blame] | 110 | "//components/strings", |
mathp | 60143a3 | 2014-10-08 14:52:45 | [diff] [blame] | 111 | "//components/suggestions", |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 112 | "//components/sync_driver", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 113 | "//components/translate/core/browser", |
| 114 | "//components/translate/core/common", |
wjmaclean | 7f63c6b | 2014-12-09 14:59:55 | [diff] [blame^] | 115 | "//components/ui/zoom:ui_zoom", |
[email protected] | 273ae5ab | 2014-07-09 21:10:25 | [diff] [blame] | 116 | "//components/url_fixer", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 117 | "//components/user_prefs", |
isherman | 3be67db | 2014-10-24 05:57:44 | [diff] [blame] | 118 | "//components/variations", |
| 119 | "//components/variations/net", |
[email protected] | bf4545f | 2014-07-11 19:49:46 | [diff] [blame] | 120 | "//components/webdata/common", |
droger | f847994 | 2014-11-21 17:47:53 | [diff] [blame] | 121 | "//components/web_resource", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 122 | "//content/public/browser", |
| 123 | "//content/public/common", |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 124 | "//courgette:courgette_lib", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 125 | "//crypto", |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 126 | "//google_apis", |
Brett Wilson | 8f132304 | 2014-09-11 16:58:56 | [diff] [blame] | 127 | "//gpu/config", |
ajwong | f7b1cb69 | 2014-08-23 21:36:22 | [diff] [blame] | 128 | "//jingle:notifier", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 129 | "//skia", |
| 130 | "//sql", |
| 131 | "//sync", |
[email protected] | 797b2504 | 2014-07-01 23:54:17 | [diff] [blame] | 132 | "//third_party/cacheinvalidation", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 133 | "//third_party/icu", |
| 134 | "//third_party/libxml", |
ajwong | f7b1cb69 | 2014-08-23 21:36:22 | [diff] [blame] | 135 | "//third_party/libjingle", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 136 | "//third_party/widevine/cdm:version_h", |
| 137 | "//third_party/zlib", |
| 138 | "//third_party/zlib:minizip", |
| 139 | "//third_party/zlib:zip", |
| 140 | "//ui/base", |
cjhopman | 09981a9 | 2014-10-27 17:11:18 | [diff] [blame] | 141 | "//ui/events:events_base", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 142 | "//ui/gfx", |
| 143 | "//ui/gfx/geometry", |
[email protected] | a1d7d4f | 2014-07-16 21:33:36 | [diff] [blame] | 144 | "//ui/message_center", |
| 145 | "//ui/shell_dialogs", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 146 | "//ui/strings", |
[email protected] | 797b2504 | 2014-07-01 23:54:17 | [diff] [blame] | 147 | "//ui/resources", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 148 | ] |
| 149 | |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 150 | sources += |
| 151 | rebase_path(gypi_values.chrome_browser_undo_sources, ".", "//chrome") |
danduong | d8178964 | 2014-09-23 02:50:00 | [diff] [blame] | 152 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 153 | if (!is_ios) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 154 | sources += |
| 155 | rebase_path(gypi_values.chrome_browser_non_ios_sources, ".", "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 156 | sources += rebase_path(gypi_values.chrome_browser_autocomplete_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 157 | ".", |
| 158 | "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 159 | sources += rebase_path(gypi_values.chrome_browser_bookmark_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 160 | ".", |
| 161 | "//chrome") |
stuartmorgan | 997cf23d | 2014-12-04 21:01:18 | [diff] [blame] | 162 | sources += rebase_path(gypi_values.chrome_browser_browser_process_sources, |
| 163 | ".", |
| 164 | "//chrome") |
| 165 | sources += rebase_path(gypi_values.chrome_browser_content_settings_sources, |
| 166 | ".", |
| 167 | "//chrome") |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 168 | sources += |
| 169 | rebase_path(gypi_values.chrome_browser_favicon_sources, ".", "//chrome") |
| 170 | sources += |
| 171 | rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome") |
| 172 | sources += |
| 173 | rebase_path(gypi_values.chrome_browser_history_sources, ".", "//chrome") |
| 174 | sources += |
| 175 | rebase_path(gypi_values.chrome_browser_metrics_sources, ".", "//chrome") |
| 176 | sources += |
| 177 | rebase_path(gypi_values.chrome_browser_net_sources, ".", "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 178 | sources += rebase_path(gypi_values.chrome_browser_password_manager_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 179 | ".", |
| 180 | "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 181 | sources += rebase_path(gypi_values.chrome_browser_predictor_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 182 | ".", |
| 183 | "//chrome") |
| 184 | sources += |
| 185 | rebase_path(gypi_values.chrome_browser_pref_sources, ".", "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 186 | sources += rebase_path(gypi_values.chrome_browser_profiles_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 187 | ".", |
| 188 | "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 189 | sources += rebase_path(gypi_values.chrome_browser_search_engines_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 190 | ".", |
| 191 | "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 192 | sources += rebase_path(gypi_values.chrome_browser_services_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 193 | ".", |
| 194 | "//chrome") |
| 195 | sources += |
stuartmorgan | 997cf23d | 2014-12-04 21:01:18 | [diff] [blame] | 196 | rebase_path(gypi_values.chrome_browser_session_sources, ".", "//chrome") |
| 197 | sources += |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 198 | rebase_path(gypi_values.chrome_browser_signin_sources, ".", "//chrome") |
| 199 | sources += |
stuartmorgan | 997cf23d | 2014-12-04 21:01:18 | [diff] [blame] | 200 | rebase_path(gypi_values.chrome_browser_ssl_sources, ".", "//chrome") |
| 201 | sources += |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 202 | rebase_path(gypi_values.chrome_browser_sync_sources, ".", "//chrome") |
stuartmorgan | cd5b604 | 2014-11-17 16:52:59 | [diff] [blame] | 203 | sources += rebase_path(gypi_values.chrome_browser_web_resource_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 204 | ".", |
| 205 | "//chrome") |
| 206 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 207 | #TODO(GYP) Add these sources: |
| 208 | # # These files are generated by GRIT. |
| 209 | # '<(grit_out_dir)/grit/component_extension_resources_map.cc', |
| 210 | # '<(grit_out_dir)/grit/theme_resources_map.cc', |
[email protected] | a3c13435 | 2014-07-11 19:23:19 | [diff] [blame] | 211 | # '<(SHARED_INTERMEDIATE_DIR)/ui/resources/grit/ui_resources_map.cc', |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 212 | # |
| 213 | # # This file is generated by |
| 214 | # # chrome/browser/metrics/variations/generate_resources_map.py |
| 215 | # '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/metrics/variations/generated_resources_map.cc', |
| 216 | |
[email protected] | 1bb1a600 | 2014-07-24 23:58:56 | [diff] [blame] | 217 | defines = nacl_defines |
[email protected] | 797b2504 | 2014-07-01 23:54:17 | [diff] [blame] | 218 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 219 | deps += [ |
Brett Wilson | 1c69399 | 2014-08-25 19:10:01 | [diff] [blame] | 220 | "//apps", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 221 | "//cc", |
[email protected] | 55699f39 | 2014-08-20 22:16:30 | [diff] [blame] | 222 | "//chrome/browser/devtools", |
[email protected] | 55699f39 | 2014-08-20 22:16:30 | [diff] [blame] | 223 | "//chrome/installer/util", |
oshima | f6539842 | 2014-11-18 23:30:42 | [diff] [blame] | 224 | "//components/app_modal", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 225 | "//components/autofill/content/browser", |
| 226 | "//components/dom_distiller/content", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 227 | "//components/keyed_service/content", |
[email protected] | 55699f39 | 2014-08-20 22:16:30 | [diff] [blame] | 228 | "//components/navigation_interception", |
| 229 | "//components/password_manager/content/browser", |
| 230 | "//components/precache/content", |
rohitrao | d16f44e | 2014-10-24 15:34:35 | [diff] [blame] | 231 | "//components/sessions:sessions_content", |
[email protected] | abd4b68 | 2014-07-16 20:26:30 | [diff] [blame] | 232 | "//components/storage_monitor", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 233 | "//components/translate/content/browser", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 234 | "//components/url_matcher", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 235 | "//components/visitedlink/browser", |
| 236 | "//components/visitedlink/common", |
hanxi | 149b92d | 2014-09-11 21:57:18 | [diff] [blame] | 237 | "//components/web_cache/browser", |
[email protected] | b9f4c68 | 2014-07-10 22:00:37 | [diff] [blame] | 238 | "//components/web_modal", |
[email protected] | a9ca8d5 | 2014-08-22 10:21:08 | [diff] [blame] | 239 | "//content/app/resources", |
[email protected] | 55699f39 | 2014-08-20 22:16:30 | [diff] [blame] | 240 | "//media", |
| 241 | "//media/cast:net", |
cjhopman | 09981a9 | 2014-10-27 17:11:18 | [diff] [blame] | 242 | "//mojo/common", |
jamesr | a03ae49 | 2014-10-03 04:26:48 | [diff] [blame] | 243 | "//mojo/edk/system", |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 244 | "//mojo/environment:chromium", |
| 245 | "//mojo/public/cpp/bindings", |
jamesr | 60a7dbf | 2014-11-07 01:24:51 | [diff] [blame] | 246 | "//mojo/public/js", |
Brett Wilson | 83fd424 | 2014-09-02 19:45:33 | [diff] [blame] | 247 | "//net:extras", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 248 | "//net:net_with_v8", |
pilgrim | 4af8c21 | 2014-09-05 17:30:15 | [diff] [blame] | 249 | "//storage/browser", |
pilgrim | f55d19fc | 2014-09-04 00:05:24 | [diff] [blame] | 250 | "//storage/common", |
[email protected] | 4eebe74d | 2014-08-13 02:54:46 | [diff] [blame] | 251 | "//third_party/WebKit/public:resources", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 252 | "//third_party/expat", |
| 253 | "//third_party/leveldatabase", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 254 | "//third_party/libaddressinput", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 255 | "//third_party/libyuv", |
| 256 | "//third_party/npapi", |
| 257 | "//third_party/re2", |
| 258 | "//third_party/smhasher:cityhash", |
Brett Wilson | 83fd424 | 2014-09-02 19:45:33 | [diff] [blame] | 259 | "//third_party/webrtc/modules/desktop_capture", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 260 | "//ui/gl", |
| 261 | "//ui/surface", |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 262 | "//ui/web_dialogs", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 263 | "//v8", |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 264 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 265 | ## TODO(tonyg): Remove this dependency (crbug.com/280157). |
[email protected] | 55699f39 | 2014-08-20 22:16:30 | [diff] [blame] | 266 | #"../testing/perf/perf_test.gyp:*", TODO(GYP) |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 267 | ] |
| 268 | } else { # iOS |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 269 | sources += |
| 270 | rebase_path(gypi_values.chrome_browser_ios_sources, ".", "//chrome") |
| 271 | sources += |
| 272 | rebase_path(gypi_values.chrome_browser_google_sources, ".", "//chrome") |
| 273 | deps += [ "//net" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 274 | libs += [ |
| 275 | "CoreTelephony.framework", |
| 276 | "CoreText.framework", |
| 277 | "MobileCoreServices.framework", |
| 278 | "QuartzCore.framework", |
| 279 | ] |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 280 | ldflags += [ |
| 281 | "-weak_framework", |
| 282 | "CoreImage", |
| 283 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 284 | } |
| 285 | |
| 286 | if (is_win || is_mac) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 287 | sources += |
| 288 | rebase_path(gypi_values.chrome_browser_win_mac_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 289 | } |
| 290 | if (!is_android && !is_ios && !is_chromeos && enable_configuration_policy) { |
| 291 | sources += [ |
| 292 | "net/disk_cache_dir_policy_handler.cc", |
| 293 | "net/disk_cache_dir_policy_handler.h", |
| 294 | ] |
| 295 | } |
| 296 | if (!is_android && !is_ios && enable_configuration_policy) { |
| 297 | sources += [ |
| 298 | "download/download_dir_policy_handler.cc", |
| 299 | "download/download_dir_policy_handler.h", |
| 300 | ] |
| 301 | } |
| 302 | if (is_mac) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 303 | sources += |
| 304 | rebase_path(gypi_values.chrome_browser_mac_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 305 | deps += [ |
| 306 | #"app_shim" TODO(GYP) |
tapted | 63829f7 | 2014-09-24 23:50:50 | [diff] [blame] | 307 | #"browser_app_shim" TODO(GYP) |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 308 | ] |
| 309 | } |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 310 | if (enable_extensions) { |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 311 | public_deps += [ "//chrome/browser/extensions" ] |
[email protected] | cc5b3be | 2014-08-15 23:24:52 | [diff] [blame] | 312 | deps += [ |
[email protected] | cc5b3be | 2014-08-15 23:24:52 | [diff] [blame] | 313 | "//chrome/browser/sync_file_system/drive_backend:sync_file_system_drive_proto", |
thestig | e33aa242 | 2014-09-22 22:16:30 | [diff] [blame] | 314 | "//chrome/common/extensions/api", |
| 315 | "//chrome/common/extensions/api:api_registration", |
oshima | 758abebc | 2014-11-06 10:55:50 | [diff] [blame] | 316 | "//extensions/components/javascript_dialog_extensions_client", |
[email protected] | cc5b3be | 2014-08-15 23:24:52 | [diff] [blame] | 317 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 318 | sources += rebase_path(gypi_values.chrome_browser_extensions_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 319 | ".", |
| 320 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 321 | } |
| 322 | if (enable_background) { |
| 323 | sources += rebase_path(gypi_values.chrome_browser_background_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 324 | ".", |
| 325 | "//chrome") |
jamesr | 29ea2d12 | 2014-10-23 10:30:27 | [diff] [blame] | 326 | if (!use_aura || is_win || is_chromeos) { |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 327 | sources -= [ "background/background_mode_manager_aura.cc" ] |
| 328 | } |
thestig | 52a87b3b | 2014-10-23 22:02:38 | [diff] [blame] | 329 | defines += [ "ENABLE_BACKGROUND=1" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 330 | } |
| 331 | if (enable_task_manager) { |
| 332 | sources += rebase_path(gypi_values.chrome_browser_task_manager_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 333 | ".", |
| 334 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 335 | } |
| 336 | if (enable_spellcheck) { |
| 337 | sources += rebase_path(gypi_values.chrome_browser_spellchecker_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 338 | ".", |
| 339 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 340 | deps += [ "//third_party/hunspell" ] |
| 341 | } |
| 342 | if (enable_nacl) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 343 | sources += |
| 344 | rebase_path(gypi_values.chrome_browser_nacl_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 345 | #deps += [ "//components/nacl:nacl_browser" ] TODO(GYP) |
| 346 | } |
apavlov | e749bca | 2014-09-30 11:07:41 | [diff] [blame] | 347 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 348 | if (enable_configuration_policy) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 349 | sources += |
| 350 | rebase_path(gypi_values.chrome_browser_policy_shared_with_ios_sources, |
| 351 | ".", |
| 352 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 353 | deps += [ |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 354 | "//components/policy", |
[email protected] | 797b2504 | 2014-07-01 23:54:17 | [diff] [blame] | 355 | "//components/policy/proto", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 356 | ] |
| 357 | if (!is_ios) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 358 | sources += rebase_path(gypi_values.chrome_browser_policy_non_ios_sources, |
| 359 | ".", |
| 360 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 361 | } |
| 362 | if (!is_chromeos) { |
| 363 | sources += rebase_path( |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 364 | gypi_values.chrome_browser_policy_shared_with_ios_not_chromeos_sources, |
| 365 | ".", |
| 366 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 367 | } |
| 368 | if (is_win || is_mac || is_desktop_linux) { |
| 369 | sources += rebase_path(gypi_values.chrome_browser_policy_desktop_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 370 | ".", |
| 371 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 372 | } |
cjhopman | 09981a9 | 2014-10-27 17:11:18 | [diff] [blame] | 373 | if (is_android || is_ios) { |
| 374 | sources += rebase_path(gypi_values.chrome_browser_policy_mobile_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 375 | ".", |
| 376 | "//chrome") |
cjhopman | 09981a9 | 2014-10-27 17:11:18 | [diff] [blame] | 377 | } else { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 378 | deps += [ "//chrome/browser/policy:path_parser" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 379 | } |
| 380 | } else { |
| 381 | # Configuration policy disabled. |
| 382 | sources += rebase_path(gypi_values.chrome_browser_policy_disabled_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 383 | ".", |
| 384 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 385 | } |
| 386 | |
| 387 | if (enable_plugins) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 388 | sources += |
| 389 | rebase_path(gypi_values.chrome_browser_plugins_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 390 | deps += [ |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 391 | "//components/pdf/browser", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 392 | "//ppapi:ppapi_ipc", |
thestig | 11b815e9 | 2014-08-26 00:32:14 | [diff] [blame] | 393 | "//third_party/adobe/flash:flapper_version_h", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 394 | ] |
| 395 | } |
| 396 | if (safe_browsing_mode != 0) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 397 | sources += |
stuartmorgan | 1b3df82 | 2014-12-08 14:36:11 | [diff] [blame] | 398 | rebase_path(gypi_values.chrome_browser_safe_browsing_basic_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 399 | ".", |
| 400 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 401 | deps += [ |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 402 | "//chrome/browser/safe_browsing:chunk_proto", |
mattm | 022138b5 | 2014-09-23 01:05:45 | [diff] [blame] | 403 | "//chrome/browser/safe_browsing:metadata_proto", |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 404 | "//chrome/browser/safe_browsing:report_proto", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 405 | ] |
| 406 | if (safe_browsing_mode == 1) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 407 | sources += |
stuartmorgan | 1b3df82 | 2014-12-08 14:36:11 | [diff] [blame] | 408 | rebase_path(gypi_values.chrome_browser_safe_browsing_full_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 409 | ".", |
| 410 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 411 | defines += [ "FULL_SAFE_BROWSING" ] |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 412 | deps += [ "//chrome/common/safe_browsing:proto" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 413 | } else if (safe_browsing_mode == 2) { |
| 414 | defines += [ "MOBILE_SAFE_BROWSING" ] |
| 415 | } |
| 416 | } |
| 417 | |
| 418 | if (is_linux) { |
thestig | ee816c27 | 2014-11-22 02:47:51 | [diff] [blame] | 419 | deps += [ |
| 420 | "//device/media_transfer_protocol", |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 421 | "//device/udev_linux", |
thestig | ee816c27 | 2014-11-22 02:47:51 | [diff] [blame] | 422 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 423 | } |
| 424 | if (is_linux && !is_chromeos) { |
[email protected] | fd98b61 | 2014-07-09 22:11:47 | [diff] [blame] | 425 | deps += [ "//third_party/speech-dispatcher" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 426 | } |
| 427 | |
| 428 | if (is_chromeos) { |
| 429 | sources += rebase_path(gypi_values.chrome_browser_chromeos_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 430 | ".", |
| 431 | "//chrome") |
| 432 | deps += [ "//chrome/browser/chromeos" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 433 | } else { |
| 434 | # Non-ChromeOS. |
| 435 | sources += rebase_path(gypi_values.chrome_browser_non_chromeos_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 436 | ".", |
| 437 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 438 | } |
| 439 | |
mukai | 8c99b88 | 2014-10-15 03:07:59 | [diff] [blame] | 440 | if (is_chromeos || is_ios) { |
| 441 | sources -= [ |
| 442 | "metrics/signin_status_metrics_provider.cc", |
| 443 | "metrics/signin_status_metrics_provider.h", |
| 444 | ] |
| 445 | } |
| 446 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 447 | if (use_cups) { |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 448 | configs += [ "//printing:cups" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 449 | } |
| 450 | if (is_desktop_linux) { |
| 451 | sources += rebase_path(gypi_values.chrome_browser_gnome_keyring_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 452 | ".", |
| 453 | "//chrome") |
cmasone | 0a9e4ca | 2014-10-16 16:40:49 | [diff] [blame] | 454 | configs += [ ":gnome_keyring" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 455 | } |
| 456 | if (use_aura) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 457 | sources += |
| 458 | rebase_path(gypi_values.chrome_browser_aura_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 459 | deps += [ |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 460 | "//ui/aura", |
| 461 | "//ui/compositor", |
[email protected] | 604828c | 2014-07-02 20:39:12 | [diff] [blame] | 462 | "//ui/keyboard", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 463 | ] |
| 464 | } |
| 465 | if (ui_compositor_image_transport) { |
| 466 | deps += [ "//ui/gl" ] |
| 467 | } |
| 468 | |
[email protected] | 855b7de | 2014-07-08 21:02:45 | [diff] [blame] | 469 | if (use_ash) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 470 | sources += |
| 471 | rebase_path(gypi_values.chrome_browser_ash_sources, ".", "//chrome") |
[email protected] | 855b7de | 2014-07-08 21:02:45 | [diff] [blame] | 472 | } |
| 473 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 474 | if (use_x11) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 475 | sources += |
| 476 | rebase_path(gypi_values.chrome_browser_x11_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 477 | if (!is_chromeos) { |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 478 | configs += [ "//build/config/linux:xscrnsaver" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 479 | } |
| 480 | } |
| 481 | if (is_posix && !is_mac && !is_ios) { |
| 482 | sources += [ |
rsesek | a0a7a04 | 2014-09-18 23:59:20 | [diff] [blame] | 483 | "//chrome/app/chrome_crash_reporter_client.cc", |
| 484 | "//chrome/app/chrome_crash_reporter_client.h", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 485 | ] |
| 486 | deps += [ |
Robert Sesek | abcd810 | 2014-08-27 16:12:44 | [diff] [blame] | 487 | "//components/crash/app", |
| 488 | "//components/crash/browser", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 489 | ] |
| 490 | } |
| 491 | if (use_nss_certs) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 492 | sources += |
| 493 | rebase_path(gypi_values.chrome_browser_nss_sources, ".", "//chrome") |
mukai | 8c99b88 | 2014-10-15 03:07:59 | [diff] [blame] | 494 | if (is_chromeos) { |
| 495 | sources -= [ "net/nss_context_linux.cc" ] |
| 496 | } |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 497 | } |
| 498 | if (enable_notifications) { |
| 499 | sources += rebase_path(gypi_values.chrome_browser_notifications_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 500 | ".", |
| 501 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 502 | if (!is_android) { |
| 503 | sources += rebase_path( |
stuartmorgan | 1b3df82 | 2014-12-08 14:36:11 | [diff] [blame] | 504 | gypi_values.chrome_browser_notifications_non_android_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 505 | ".", |
| 506 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 507 | } |
| 508 | } |
| 509 | if (enable_themes) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 510 | sources += |
| 511 | rebase_path(gypi_values.chrome_browser_themes_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 512 | } |
| 513 | |
vitalybuka | 93eea40 | 2014-11-05 23:47:15 | [diff] [blame] | 514 | if (enable_basic_printing || enable_print_preview) { |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 515 | # Some form of printing support. |
stuartmorgan | 1b3df82 | 2014-12-08 14:36:11 | [diff] [blame] | 516 | sources += rebase_path(gypi_values.chrome_browser_printing_basic_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 517 | ".", |
| 518 | "//chrome") |
| 519 | deps += [ "//printing" ] |
vitalybuka | 36259ca | 2014-08-28 23:42:24 | [diff] [blame] | 520 | if (is_win) { |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 521 | sources += rebase_path(gypi_values.chrome_browser_printing_emf_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 522 | ".", |
| 523 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 524 | } |
vitalybuka | 93eea40 | 2014-11-05 23:47:15 | [diff] [blame] | 525 | if (enable_print_preview) { |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 526 | # Full printing on top of the above. |
stuartmorgan | 1b3df82 | 2014-12-08 14:36:11 | [diff] [blame] | 527 | sources += rebase_path(gypi_values.chrome_browser_printing_full_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 528 | ".", |
| 529 | "//chrome") |
vitalybuka | 93eea40 | 2014-11-05 23:47:15 | [diff] [blame] | 530 | } else { |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 531 | # Partial-only printing support. |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 532 | sources += |
stuartmorgan | 1b3df82 | 2014-12-08 14:36:11 | [diff] [blame] | 533 | rebase_path(gypi_values.chrome_browser_printing_basic_only_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 534 | ".", |
| 535 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 536 | } |
| 537 | } |
| 538 | if (enable_captive_portal_detection) { |
| 539 | sources += rebase_path(gypi_values.chrome_browser_captive_portal_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 540 | ".", |
| 541 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 542 | } |
| 543 | if (enable_session_service) { |
| 544 | sources += rebase_path(gypi_values.chrome_browser_session_service_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 545 | ".", |
| 546 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 547 | } |
| 548 | |
thestig | dc37720 | 2014-10-28 22:06:02 | [diff] [blame] | 549 | if (!is_android && !is_ios && !is_chromeos) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 550 | sources += |
| 551 | rebase_path(gypi_values.chrome_browser_desktop_sources, ".", "//chrome") |
thestig | dc37720 | 2014-10-28 22:06:02 | [diff] [blame] | 552 | } |
| 553 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 554 | if (is_android || is_ios) { |
| 555 | # Mobile. |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 556 | sources += |
| 557 | rebase_path(gypi_values.chrome_browser_mobile_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 558 | } else { |
| 559 | # Non-mobile. |
| 560 | sources += rebase_path(gypi_values.chrome_browser_non_mobile_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 561 | ".", |
| 562 | "//chrome") |
reillyg | e471fab | 2014-08-29 01:58:43 | [diff] [blame] | 563 | deps += [ |
reillyg | e471fab | 2014-08-29 01:58:43 | [diff] [blame] | 564 | "//device/core", |
reillyg | d77718d | 2014-09-04 00:57:56 | [diff] [blame] | 565 | "//device/usb", |
reillyg | e471fab | 2014-08-29 01:58:43 | [diff] [blame] | 566 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 567 | } |
| 568 | |
| 569 | if (is_android) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 570 | sources += |
| 571 | rebase_path(gypi_values.chrome_browser_android_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 572 | deps += [ |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 573 | ":jni_headers", |
[email protected] | 55699f39 | 2014-08-20 22:16:30 | [diff] [blame] | 574 | "//components/cdm/browser", |
cjhopman | 09981a9 | 2014-10-27 17:11:18 | [diff] [blame] | 575 | "//components/enhanced_bookmarks", |
| 576 | "//components/history/core/android", |
estade | e37f822 | 2014-11-07 21:35:22 | [diff] [blame] | 577 | "//components/resources:components_resources", |
cjhopman | 09981a9 | 2014-10-27 17:11:18 | [diff] [blame] | 578 | "//components/web_contents_delegate_android", |
| 579 | "//third_party/android_opengl/etc1", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 580 | ] |
| 581 | deps -= [ |
[email protected] | fca567b | 2014-07-02 17:37:34 | [diff] [blame] | 582 | "//third_party/libaddressinput", |
[email protected] | abd4b68 | 2014-07-16 20:26:30 | [diff] [blame] | 583 | "//components/feedback", |
| 584 | "//components/storage_monitor", |
[email protected] | abd4b68 | 2014-07-16 20:26:30 | [diff] [blame] | 585 | "//components/web_modal", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 586 | ] |
| 587 | } else { |
| 588 | sources += rebase_path(gypi_values.chrome_browser_non_android_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 589 | ".", |
| 590 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 591 | } |
| 592 | |
| 593 | if (is_mac) { |
| 594 | deps += [ |
[email protected] | 6b5d2f9 | 2014-07-30 00:40:03 | [diff] [blame] | 595 | "//third_party/google_toolbox_for_mac", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 596 | #"../third_party/mozilla/mozilla.gyp:mozilla", TODO(GYP) |
| 597 | ] |
| 598 | libs += [ |
| 599 | "Accelerate.framework", |
| 600 | "AddressBook.framework", |
| 601 | "AudioUnit.framework", |
| 602 | "DiskArbitration.framework", |
| 603 | "IOKit.framework", |
| 604 | "ImageCaptureCore.framework", |
| 605 | "OpenGL.framework", |
| 606 | "QuartzCore.framework", |
| 607 | "SecurityInterface.framework", |
| 608 | ] |
| 609 | } |
| 610 | |
| 611 | if (enable_rlz) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 612 | sources += |
| 613 | rebase_path(gypi_values.chrome_browser_rlz_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 614 | deps += [ "//rlz:rlz_lib" ] |
| 615 | } |
| 616 | |
| 617 | # TODO(GYP) |
| 618 | # Temporary fix to break the browser target into smaller chunks so it |
| 619 | # will link with goma builds. |
| 620 | #["OS=="win" and chromium_win_pch==0", { |
| 621 | # "msvs_shard": 4, |
| 622 | #}], |
| 623 | |
| 624 | if (is_win) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 625 | sources += |
| 626 | rebase_path(gypi_values.chrome_browser_win_sources, ".", "//chrome") |
grt | aa9d8d2 | 2014-11-13 19:52:36 | [diff] [blame] | 627 | if (!is_chrome_branded) { |
| 628 | sources -= [ |
| 629 | "google/did_run_updater_win.cc", |
| 630 | "google/did_run_updater_win.h", |
| 631 | ] |
| 632 | } |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 633 | public_deps += [ |
| 634 | "//ui/views", |
| 635 | "//ui/views/controls/webview", |
| 636 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 637 | deps += [ |
[email protected] | 55699f39 | 2014-08-20 22:16:30 | [diff] [blame] | 638 | "//chrome:version_header", |
| 639 | "//chrome/installer/util:strings", |
| 640 | "//third_party/iaccessible2", |
| 641 | "//third_party/isimpledom", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 642 | "//third_party/wtl", |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 643 | |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 644 | #"chrome_process_finder", TODO(GYP) |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 645 | #"../chrome_elf/chrome_elf.gyp:chrome_elf", TODO(GYP) |
| 646 | #"../chrome_elf/chrome_elf.gyp:chrome_elf_constants", TODO(GYP) |
| 647 | #"../chrome_elf/chrome_elf.gyp:dll_hash", TODO(GYP) |
| 648 | #"../google_update/google_update.gyp:google_update", TODO(GYP) |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 649 | #"../ui/metro_viewer/metro_viewer.gyp:metro_viewer_messages", TODO(GYP) |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 650 | #"../win8/win8.gyp:metro_viewer", TODO(GYP) |
| 651 | ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 652 | } else { |
| 653 | # Non-Windows. |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 654 | sources += |
| 655 | rebase_path(gypi_values.chrome_browser_non_win_sources, ".", "//chrome") |
[email protected] | f6dc4ae | 2014-07-30 00:10:37 | [diff] [blame] | 656 | if (toolkit_views) { |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 657 | deps += [ |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 658 | "//ui/views", |
| 659 | "//ui/views/controls/webview", |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 660 | ] |
| 661 | # TODO(GYP) why is this needed? Very susicious. |
| 662 | # "include_dirs": [ |
| 663 | # "<(INTERMEDIATE_DIR)/chrome", |
| 664 | # ], |
| 665 | } |
| 666 | } |
| 667 | |
| 668 | if (is_linux) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 669 | sources += |
| 670 | rebase_path(gypi_values.chrome_browser_linux_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 671 | if (use_aura) { |
| 672 | configs += [ |
| 673 | "//build/config/linux:dbus", |
| 674 | "//build/config/linux:fontconfig", |
| 675 | ] |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 676 | deps += [ "//dbus" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 677 | } |
| 678 | if (use_x11) { |
| 679 | configs += [ "//build/config/linux:x11" ] |
| 680 | deps += [ "//ui/gfx/x" ] |
| 681 | } |
| 682 | } |
| 683 | |
| 684 | if (is_desktop_linux) { |
stuartmorgan | 7f569a82 | 2014-12-08 20:10:54 | [diff] [blame] | 685 | sources += rebase_path(gypi_values.chrome_browser_linux_desktop_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 686 | ".", |
| 687 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 688 | } |
| 689 | if (enable_plugin_installation) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 690 | sources += |
| 691 | rebase_path(gypi_values.chrome_browser_plugin_installation_sources, |
| 692 | ".", |
| 693 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 694 | } |
| 695 | if (enable_app_list) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 696 | deps += [ "//ui/app_list" ] |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 697 | } |
treib | 87bb89cbb | 2014-12-01 16:01:47 | [diff] [blame] | 698 | if (enable_supervised_users) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 699 | sources += rebase_path(gypi_values.chrome_browser_supervised_user_sources, |
| 700 | ".", |
| 701 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 702 | } |
treib | 87bb89cbb | 2014-12-01 16:01:47 | [diff] [blame] | 703 | if (enable_supervised_users && enable_themes) { |
thestig | 169a636 | 2014-11-13 20:47:59 | [diff] [blame] | 704 | sources += rebase_path( |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 705 | gypi_values.chrome_browser_supervised_user_and_themes_sources, |
| 706 | ".", |
| 707 | "//chrome") |
thestig | 169a636 | 2014-11-13 20:47:59 | [diff] [blame] | 708 | } |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 709 | if (enable_webrtc) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 710 | sources += |
| 711 | rebase_path(gypi_values.chrome_browser_webrtc_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 712 | } |
| 713 | if (enable_service_discovery) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 714 | sources += rebase_path(gypi_values.chrome_browser_service_discovery_sources, |
| 715 | ".", |
| 716 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 717 | } |
| 718 | if (enable_mdns) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 719 | sources += |
| 720 | rebase_path(gypi_values.chrome_browser_mdns_sources, ".", "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 721 | } |
| 722 | if (!enable_autofill_dialog || is_android || is_ios) { |
| 723 | sources -= [ |
| 724 | "autofill/validation_rules_storage_factory.cc", |
| 725 | "autofill/validation_rules_storage_factory.h", |
| 726 | ] |
| 727 | } |
| 728 | if (enable_wifi_bootstrapping) { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 729 | sources += |
| 730 | rebase_path(gypi_values.chrome_browser_wifi_bootstrapping_sources, |
| 731 | ".", |
| 732 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 733 | if (is_win || is_mac) { |
| 734 | # TODO(brettw) as of this writing wifi bootstrapping is set on Windows |
| 735 | # and Mac, so this test is meaningless. Can we merge these lists? |
| 736 | sources += rebase_path( |
stuartmorgan | 1b3df82 | 2014-12-08 14:36:11 | [diff] [blame] | 737 | gypi_values.chrome_browser_wifi_bootstrapping_win_mac_sources, |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 738 | ".", |
| 739 | "//chrome") |
[email protected] | dffd8a91 | 2014-06-30 23:24:31 | [diff] [blame] | 740 | } |
| 741 | } |
| 742 | } |
| 743 | |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 744 | if (is_android) { |
| 745 | # GYP version: chrome/chrome_browser.gypi:chrome_browser_jni_headers |
| 746 | generate_jni("jni_headers") { |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 747 | sources = |
| 748 | rebase_path(gypi_values.chrome_browser_jni_sources, ".", "//chrome") |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 749 | jni_package = "chrome" |
| 750 | } |
| 751 | } |
| 752 | |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 753 | # GYP version: chrome/chrome_resources.gyp:chrome_resources |
| 754 | # (generate_browser_resources action) |
| 755 | grit("resources") { |
| 756 | source = "browser_resources.grd" |
[email protected] | 4888549 | 2014-08-13 11:22:41 | [diff] [blame] | 757 | output_dir = "$root_gen_dir/chrome" |
[email protected] | cb0c67a | 2014-07-22 16:37:26 | [diff] [blame] | 758 | outputs = [ |
| 759 | "grit/browser_resources.h", |
| 760 | "browser_resources.pak", |
| 761 | ] |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 762 | |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 763 | omnibox_mojom_file = |
| 764 | "$root_gen_dir/chrome/browser/ui/webui/omnibox/omnibox.mojom.js" |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 765 | |
| 766 | grit_flags = [ |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 767 | "-E", |
| 768 | "about_credits_file=" + rebase_path(about_credits_file, root_build_dir), |
| 769 | "-E", |
| 770 | "additional_modules_list_file=" + |
| 771 | rebase_path(additional_modules_list_file, root_build_dir), |
| 772 | "-E", |
| 773 | "omnibox_mojom_file=" + rebase_path(omnibox_mojom_file, root_build_dir), |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 774 | ] |
| 775 | |
| 776 | deps = [ |
| 777 | ":about_credits", |
| 778 | ":chrome_internal_resources_gen", |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 779 | "//chrome/browser/ui/webui/omnibox:mojo_bindings", |
Brett Wilson | 4263a74 | 2014-09-10 00:02:24 | [diff] [blame] | 780 | "//mojo/environment:chromium", |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 781 | ] |
| 782 | } |
| 783 | |
| 784 | # GYP version: chrome/chrome_resource.gyp:about_credits |
| 785 | action("about_credits") { |
| 786 | script = "//tools/licenses.py" |
| 787 | |
| 788 | # TODO(phajdan.jr): input dependencies so this can be regenerated |
| 789 | # automatically when one of the credits changes. The way this should work is |
| 790 | # that licenses.py should write a .d file listing the input dependencies (see |
| 791 | # "depfile" in GN). |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 792 | outputs = [ |
| 793 | about_credits_file, |
| 794 | ] |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 795 | |
| 796 | args = [ |
| 797 | "credits", |
| 798 | rebase_path(about_credits_file, root_build_dir), |
| 799 | ] |
| 800 | } |
| 801 | |
| 802 | # GYP version: chrome/chrome_resource.gyp:chrome_internal_resources_gen |
engedy | 99d0e11b | 2014-09-30 13:32:41 | [diff] [blame] | 803 | if (is_chrome_branded) { |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 804 | action("chrome_internal_resources_gen") { |
engedy | 99d0e11b | 2014-09-30 13:32:41 | [diff] [blame] | 805 | script = "internal/transform_additional_modules_list.py" |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 806 | sources = [ |
| 807 | "internal/resources/additional_modules_list.input", |
| 808 | ] |
| 809 | outputs = [ |
| 810 | additional_modules_list_file, |
| 811 | ] |
engedy | 99d0e11b | 2014-09-30 13:32:41 | [diff] [blame] | 812 | args = rebase_path(sources, root_build_dir) + |
| 813 | rebase_path(outputs, root_build_dir) |
[email protected] | 77ce802 | 2014-06-16 19:29:56 | [diff] [blame] | 814 | } |
| 815 | } else { |
| 816 | group("chrome_internal_resources_gen") { |
| 817 | # Empty placeholder. |
| 818 | } |
| 819 | } |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 820 | |
| 821 | # In GYP this is part of test_support_common. |
| 822 | source_set("test_support") { |
| 823 | testonly = true |
| 824 | |
| 825 | # Always include this via the main test support target. |
| 826 | visibility = [ "//chrome/test:test_support" ] |
| 827 | |
| 828 | sources = [ |
| 829 | "browsing_data/mock_browsing_data_appcache_helper.cc", |
| 830 | "browsing_data/mock_browsing_data_appcache_helper.h", |
| 831 | "browsing_data/mock_browsing_data_channel_id_helper.cc", |
| 832 | "browsing_data/mock_browsing_data_channel_id_helper.h", |
| 833 | "browsing_data/mock_browsing_data_cookie_helper.cc", |
| 834 | "browsing_data/mock_browsing_data_cookie_helper.h", |
| 835 | "browsing_data/mock_browsing_data_database_helper.cc", |
| 836 | "browsing_data/mock_browsing_data_database_helper.h", |
| 837 | "browsing_data/mock_browsing_data_file_system_helper.cc", |
| 838 | "browsing_data/mock_browsing_data_file_system_helper.h", |
| 839 | "browsing_data/mock_browsing_data_flash_lso_helper.cc", |
| 840 | "browsing_data/mock_browsing_data_flash_lso_helper.h", |
| 841 | "browsing_data/mock_browsing_data_indexed_db_helper.cc", |
| 842 | "browsing_data/mock_browsing_data_indexed_db_helper.h", |
| 843 | "browsing_data/mock_browsing_data_local_storage_helper.cc", |
| 844 | "browsing_data/mock_browsing_data_local_storage_helper.h", |
| 845 | "browsing_data/mock_browsing_data_quota_helper.cc", |
| 846 | "browsing_data/mock_browsing_data_quota_helper.h", |
| 847 | "browsing_data/mock_browsing_data_service_worker_helper.cc", |
| 848 | "browsing_data/mock_browsing_data_service_worker_helper.h", |
| 849 | "download/download_test_file_activity_observer.cc", |
| 850 | "download/download_test_file_activity_observer.h", |
| 851 | "download/test_download_shelf.cc", |
| 852 | "download/test_download_shelf.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 853 | "invalidation/fake_invalidation_service.cc", |
| 854 | "invalidation/fake_invalidation_service.h", |
| 855 | "media/fake_desktop_media_list.cc", |
| 856 | "media/fake_desktop_media_list.h", |
| 857 | "net/dns_probe_test_util.cc", |
| 858 | "net/dns_probe_test_util.h", |
| 859 | "net/url_request_mock_util.cc", |
| 860 | "net/url_request_mock_util.h", |
| 861 | "notifications/notification_test_util.cc", |
| 862 | "notifications/notification_test_util.h", |
| 863 | "password_manager/mock_password_store_service.cc", |
| 864 | "password_manager/mock_password_store_service.h", |
| 865 | "password_manager/null_password_store_service.cc", |
| 866 | "password_manager/null_password_store_service.h", |
| 867 | "password_manager/test_password_store_service.cc", |
| 868 | "password_manager/test_password_store_service.h", |
| 869 | "prefs/pref_service_mock_factory.cc", |
| 870 | "prefs/pref_service_mock_factory.h", |
| 871 | "profile_resetter/profile_resetter_test_base.cc", |
| 872 | "profile_resetter/profile_resetter_test_base.h", |
| 873 | "search_engines/template_url_service_factory_test_util.cc", |
| 874 | "search_engines/template_url_service_factory_test_util.h", |
| 875 | "search_engines/template_url_service_test_util.cc", |
| 876 | "search_engines/template_url_service_test_util.h", |
| 877 | "sessions/session_service_test_helper.cc", |
| 878 | "sessions/session_service_test_helper.h", |
| 879 | "signin/fake_account_reconcilor.cc", |
| 880 | "signin/fake_account_reconcilor.h", |
| 881 | "signin/fake_account_tracker_service.cc", |
| 882 | "signin/fake_account_tracker_service.h", |
| 883 | "signin/fake_profile_oauth2_token_service.cc", |
| 884 | "signin/fake_profile_oauth2_token_service.h", |
| 885 | "signin/fake_profile_oauth2_token_service_builder.cc", |
| 886 | "signin/fake_profile_oauth2_token_service_builder.h", |
| 887 | "signin/fake_signin_manager.cc", |
| 888 | "signin/fake_signin_manager.h", |
| 889 | "ssl/ssl_client_auth_requestor_mock.cc", |
| 890 | "ssl/ssl_client_auth_requestor_mock.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 891 | "sync/profile_sync_components_factory_mock.cc", |
| 892 | "sync/profile_sync_components_factory_mock.h", |
| 893 | "sync/profile_sync_service_mock.cc", |
| 894 | "sync/profile_sync_service_mock.h", |
shadi | 2f257fc | 2014-12-03 18:04:12 | [diff] [blame] | 895 | "ui/webui/signin/login_ui_test_utils.cc", |
| 896 | "ui/webui/signin/login_ui_test_utils.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 897 | ] |
| 898 | |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 899 | public_deps = [ |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 900 | ":browser", |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 901 | "//chrome/browser/ui:test_support", |
| 902 | ] |
| 903 | deps = [ |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 904 | "//base:prefs_test_support", |
| 905 | "//chrome/browser", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 906 | "//chrome/common", |
| 907 | "//chrome/common/safe_browsing:proto", |
| 908 | "//components/invalidation", |
| 909 | "//components/invalidation:test_support", |
| 910 | "//components/password_manager/core/browser:test_support", |
| 911 | "//components/search_engines:test_support", |
| 912 | "//content/test:test_support", |
| 913 | "//chrome/app/theme:theme_resources", |
| 914 | "//net:test_support", |
| 915 | "//skia", |
| 916 | "//testing/gmock", |
| 917 | "//testing/gtest", |
| 918 | "//ui/gfx", |
| 919 | ] |
| 920 | |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 921 | if (!is_ios) { |
| 922 | deps += [ |
| 923 | "//components/sessions:test_support", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 924 | "//google_apis:test_support", |
| 925 | ] |
| 926 | } |
| 927 | |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 928 | if (enable_extensions) { |
thestig | 52a87b3b | 2014-10-23 22:02:38 | [diff] [blame] | 929 | sources += [ |
| 930 | "extensions/extension_action_test_util.cc", |
| 931 | "extensions/extension_action_test_util.h", |
| 932 | ] |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 933 | deps += [ "//extensions:test_support" ] |
James Robinson | 2ed4d69 | 2014-09-17 05:20:58 | [diff] [blame] | 934 | } |
| 935 | |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 936 | if (is_chromeos) { |
| 937 | sources += [ |
| 938 | "chromeos/app_mode/fake_cws.cc", |
| 939 | "chromeos/app_mode/fake_cws.h", |
| 940 | "chromeos/file_manager/fake_disk_mount_manager.cc", |
| 941 | "chromeos/file_manager/fake_disk_mount_manager.h", |
| 942 | "chromeos/input_method/mock_candidate_window_controller.cc", |
| 943 | "chromeos/input_method/mock_candidate_window_controller.h", |
| 944 | "chromeos/input_method/mock_input_method_engine.cc", |
| 945 | "chromeos/input_method/mock_input_method_engine.h", |
| 946 | "chromeos/input_method/mock_input_method_manager.cc", |
| 947 | "chromeos/input_method/mock_input_method_manager.h", |
| 948 | "chromeos/login/fake_login_utils.cc", |
| 949 | "chromeos/login/fake_login_utils.h", |
| 950 | "chromeos/login/mock_login_utils.cc", |
| 951 | "chromeos/login/mock_login_utils.h", |
| 952 | "chromeos/login/users/avatar/mock_user_image_manager.cc", |
| 953 | "chromeos/login/users/avatar/mock_user_image_manager.h", |
| 954 | "chromeos/login/users/fake_supervised_user_manager.cc", |
| 955 | "chromeos/login/users/fake_supervised_user_manager.h", |
| 956 | "chromeos/login/users/fake_user_manager.cc", |
| 957 | "chromeos/login/users/fake_user_manager.h", |
| 958 | "chromeos/login/users/mock_user_manager.cc", |
| 959 | "chromeos/login/users/mock_user_manager.h", |
| 960 | "chromeos/login/test/oobe_screen_waiter.cc", |
| 961 | "chromeos/login/test/oobe_screen_waiter.h", |
| 962 | "chromeos/login/test/js_checker.cc", |
| 963 | "chromeos/login/test/js_checker.h", |
| 964 | "chromeos/login/ui/mock_login_display.cc", |
| 965 | "chromeos/login/ui/mock_login_display.h", |
| 966 | "chromeos/login/ui/mock_login_display_host.cc", |
| 967 | "chromeos/login/ui/mock_login_display_host.h", |
| 968 | "chromeos/net/network_portal_detector_test_utils.cc", |
| 969 | "chromeos/net/network_portal_detector_test_utils.h", |
| 970 | "chromeos/policy/cloud_external_data_manager_base_test_util.cc", |
| 971 | "chromeos/policy/cloud_external_data_manager_base_test_util.h", |
| 972 | "chromeos/policy/device_policy_builder.cc", |
| 973 | "chromeos/policy/device_policy_builder.h", |
| 974 | "chromeos/policy/fake_device_cloud_policy_initializer.cc", |
| 975 | "chromeos/policy/fake_device_cloud_policy_initializer.h", |
| 976 | "chromeos/policy/stub_enterprise_install_attributes.cc", |
| 977 | "chromeos/policy/stub_enterprise_install_attributes.h", |
| 978 | "chromeos/settings/device_settings_test_helper.cc", |
| 979 | "chromeos/settings/device_settings_test_helper.h", |
| 980 | "chromeos/system/fake_input_device_settings.cc", |
| 981 | "chromeos/system/fake_input_device_settings.h", |
| 982 | ] |
| 983 | configs += [ "//build/config/linux:dbus" ] |
mukai | 6ba7355 | 2014-10-09 19:05:17 | [diff] [blame] | 984 | deps += [ "//chromeos:test_support" ] |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 985 | } |
| 986 | |
| 987 | if (enable_configuration_policy) { |
| 988 | sources += [ |
| 989 | "policy/test/local_policy_test_server.cc", |
| 990 | "policy/test/local_policy_test_server.h", |
| 991 | ] |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 992 | public_deps += [ |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 993 | "//components/policy:policy_component_test_support", |
| 994 | "//components/policy:test_support", |
| 995 | ] |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 996 | } |
| 997 | |
| 998 | if (safe_browsing_mode == 1) { |
| 999 | sources += [ |
| 1000 | "extensions/fake_safe_browsing_database_manager.cc", |
| 1001 | "extensions/fake_safe_browsing_database_manager.h", |
| 1002 | ] |
| 1003 | } |
| 1004 | |
| 1005 | if (enable_extensions) { |
| 1006 | sources += [ |
| 1007 | "drive/dummy_drive_service.cc", |
| 1008 | "drive/dummy_drive_service.h", |
| 1009 | "drive/fake_drive_service.cc", |
| 1010 | "drive/fake_drive_service.h", |
| 1011 | "drive/test_util.cc", |
| 1012 | "drive/test_util.h", |
| 1013 | "extensions/api/messaging/native_messaging_test_util.cc", |
| 1014 | "extensions/api/messaging/native_messaging_test_util.h", |
| 1015 | "extensions/extension_notification_observer.cc", |
| 1016 | "extensions/extension_notification_observer.h", |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1017 | "extensions/mock_extension_special_storage_policy.cc", |
| 1018 | "extensions/mock_extension_special_storage_policy.h", |
| 1019 | "extensions/test_blacklist.cc", |
| 1020 | "extensions/test_blacklist.h", |
| 1021 | "extensions/test_blacklist_state_fetcher.cc", |
| 1022 | "extensions/test_blacklist_state_fetcher.h", |
| 1023 | "extensions/test_extension_environment.cc", |
| 1024 | "extensions/test_extension_environment.h", |
| 1025 | "extensions/test_extension_prefs.cc", |
| 1026 | "extensions/test_extension_prefs.h", |
| 1027 | "extensions/test_extension_service.cc", |
| 1028 | "extensions/test_extension_service.h", |
| 1029 | "extensions/test_extension_system.cc", |
| 1030 | "extensions/test_extension_system.h", |
| 1031 | "media_galleries/media_galleries_test_util.cc", |
| 1032 | "media_galleries/media_galleries_test_util.h", |
| 1033 | ] |
scottmg | a266f95 | 2014-12-03 20:47:10 | [diff] [blame] | 1034 | deps += [ "//components/storage_monitor:test_support" ] |
Brett Wilson | 052ce13 | 2014-09-12 19:46:29 | [diff] [blame] | 1035 | } |
| 1036 | |
| 1037 | if (enable_mdns) { |
| 1038 | sources += [ |
| 1039 | "local_discovery/test_service_discovery_client.cc", |
| 1040 | "local_discovery/test_service_discovery_client.h", |
| 1041 | ] |
| 1042 | } |
| 1043 | |
| 1044 | if (enable_app_list) { |
| 1045 | sources += [ |
| 1046 | "ui/app_list/test/chrome_app_list_test_support.cc", |
| 1047 | "ui/app_list/test/chrome_app_list_test_support.h", |
| 1048 | ] |
| 1049 | } |
| 1050 | |
| 1051 | if (enable_wifi_bootstrapping) { |
| 1052 | sources += [ |
| 1053 | "local_discovery/wifi/mock_wifi_manager.cc", |
| 1054 | "local_discovery/wifi/mock_wifi_manager.h", |
| 1055 | ] |
| 1056 | } |
| 1057 | } |