| OLD | NEW |
| (Empty) |
| 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 | |
| 5 import("//build/config/crypto.gni") | |
| 6 import("//build/config/ui.gni") | |
| 7 import("//tools/grit/grit_rule.gni") | |
| 8 | |
| 9 executable("chrome") { | |
| 10 sources = [ | |
| 11 "app/breakpad_field_trial_win.cc", | |
| 12 "app/breakpad_field_trial_win.h", | |
| 13 "app/breakpad_win.cc", | |
| 14 "app/breakpad_win.h", | |
| 15 "app/chrome_dll_resource.h", | |
| 16 "app/chrome_exe_main_aura.cc", | |
| 17 "app/chrome_exe_main_gtk.cc", | |
| 18 "app/chrome_exe_main_mac.cc", | |
| 19 "app/chrome_exe_main_win.cc", | |
| 20 "app/chrome_exe_resource.h", | |
| 21 "app/chrome_main.cc", | |
| 22 "app/chrome_main_delegate.cc", | |
| 23 "app/chrome_main_delegate.h", | |
| 24 "app/client_util.cc", | |
| 25 "app/client_util.h", | |
| 26 "app/hard_error_handler_win.cc", | |
| 27 "app/hard_error_handler_win.h", | |
| 28 "app/metro_driver_win.cc", | |
| 29 "app/metro_driver_win.h", | |
| 30 "../content/app/startup_helper_win.cc", | |
| 31 ] | |
| 32 | |
| 33 if (is_linux) { | |
| 34 configs += [ | |
| 35 # TODO(brettw) this is wrong, it should be picked up from deps. | |
| 36 "//build/config/linux:gtk", | |
| 37 "//build/config/linux:x11", | |
| 38 ] | |
| 39 } | |
| 40 | |
| 41 deps = [ | |
| 42 # TODO(brettw) this is right on linux? Everything is linked into the | |
| 43 # exe, but wrong on Windows, where chrome_exe and chrome_dll are separate. | |
| 44 ":browser", | |
| 45 ":common", | |
| 46 ":debugger", | |
| 47 ":plugin", | |
| 48 ":renderer", | |
| 49 ":utility", | |
| 50 "//base", | |
| 51 ] | |
| 52 | |
| 53 # TODO(brettw) this isn't right for all platforms. | |
| 54 if (!use_aura) { | |
| 55 sources -= [ "app/chrome_exe_main_aura.cc" ] | |
| 56 } | |
| 57 | |
| 58 if (!is_win) { | |
| 59 sources -= [ | |
| 60 "app/client_util.cc", | |
| 61 "app/client_util.h", | |
| 62 ] | |
| 63 } | |
| 64 } | |
| 65 | |
| 66 static_library("browser") { | |
| 67 if (is_linux) { | |
| 68 configs += [ | |
| 69 "//build/config/linux:x11", | |
| 70 ] | |
| 71 } | |
| 72 | |
| 73 deps = [ | |
| 74 "//third_party/expat", | |
| 75 ] | |
| 76 } | |
| 77 | |
| 78 static_library("common") { | |
| 79 if (!use_openssl && is_linux) { | |
| 80 # common/net uses NSS. | |
| 81 # TODO(brettw) have a better way to express this without having to do | |
| 82 # "if (use_nss)" everywhere. | |
| 83 configs += [ "//third_party/nss:nss_linux_config" ] | |
| 84 } | |
| 85 deps = [ | |
| 86 ] | |
| 87 } | |
| 88 | |
| 89 # TODO(brettw) move to browser/devtools/BUILD.gn | |
| 90 source_set("debugger") { | |
| 91 sources = [ | |
| 92 "browser/devtools/device/adb/adb_client_socket.cc", | |
| 93 "browser/devtools/device/adb/adb_client_socket.h", | |
| 94 "browser/devtools/device/adb/adb_device_info_query.h", | |
| 95 "browser/devtools/device/adb/adb_device_info_query.cc", | |
| 96 "browser/devtools/device/adb/adb_device_provider.cc", | |
| 97 "browser/devtools/device/adb/adb_device_provider.h", | |
| 98 "browser/devtools/device/android_device_manager.cc", | |
| 99 "browser/devtools/device/android_device_manager.h", | |
| 100 "browser/devtools/device/android_web_socket.cc", | |
| 101 "browser/devtools/device/devtools_android_bridge.cc", | |
| 102 "browser/devtools/device/devtools_android_bridge.h", | |
| 103 "browser/devtools/device/port_forwarding_controller.cc", | |
| 104 "browser/devtools/device/port_forwarding_controller.h", | |
| 105 "browser/devtools/device/self_device_provider.cc", | |
| 106 "browser/devtools/device/self_device_provider.h", | |
| 107 "browser/devtools/device/usb/android_rsa.cc", | |
| 108 "browser/devtools/device/usb/android_rsa.h", | |
| 109 "browser/devtools/device/usb/android_usb_device.cc", | |
| 110 "browser/devtools/device/usb/android_usb_device.h", | |
| 111 "browser/devtools/device/usb/android_usb_socket.cc", | |
| 112 "browser/devtools/device/usb/android_usb_socket.h", | |
| 113 "browser/devtools/device/usb/usb_device_provider.cc", | |
| 114 "browser/devtools/device/usb/usb_device_provider.h", | |
| 115 "browser/devtools/browser_list_tabcontents_provider.cc", | |
| 116 "browser/devtools/browser_list_tabcontents_provider.h", | |
| 117 "browser/devtools/devtools_contents_resizing_strategy.cc", | |
| 118 "browser/devtools/devtools_contents_resizing_strategy.h", | |
| 119 "browser/devtools/devtools_embedder_message_dispatcher.cc", | |
| 120 "browser/devtools/devtools_embedder_message_dispatcher.h", | |
| 121 "browser/devtools/devtools_file_helper.cc", | |
| 122 "browser/devtools/devtools_file_helper.h", | |
| 123 "browser/devtools/devtools_file_system_indexer.cc", | |
| 124 "browser/devtools/devtools_file_system_indexer.h", | |
| 125 "browser/devtools/devtools_network_controller.cpp", | |
| 126 "browser/devtools/devtools_network_controller.h", | |
| 127 "browser/devtools/devtools_network_transaction.cpp", | |
| 128 "browser/devtools/devtools_network_transaction.h", | |
| 129 "browser/devtools/devtools_network_transaction_factory.cpp", | |
| 130 "browser/devtools/devtools_network_transaction_factory.h", | |
| 131 "browser/devtools/devtools_protocol.cc", | |
| 132 "browser/devtools/devtools_protocol.h", | |
| 133 "browser/devtools/devtools_toggle_action.h", | |
| 134 "browser/devtools/devtools_window.cc", | |
| 135 "browser/devtools/devtools_window.h", | |
| 136 "browser/devtools/remote_debugging_server.cc", | |
| 137 "browser/devtools/remote_debugging_server.h", | |
| 138 ] | |
| 139 | |
| 140 deps = [ | |
| 141 # ":chrome_extra_resources", | |
| 142 # ":chrome_resources", | |
| 143 # ":chrome_strings", | |
| 144 # ":theme_resources", | |
| 145 "//base", | |
| 146 "//net", | |
| 147 "//net:http_server", | |
| 148 "//skia", | |
| 149 "//third_party/icu", | |
| 150 "//third_party/leveldatabase", | |
| 151 "//third_party/libusb", | |
| 152 ] | |
| 153 | |
| 154 if (is_android) { | |
| 155 sources -= [ | |
| 156 "browser/devtools/adb/android_rsa.cc", | |
| 157 "browser/devtools/browser_list_tabcontents_provider.cc", | |
| 158 "browser/devtools/devtools_file_system_indexer.cc", | |
| 159 "browser/devtools/devtools_window.cc", | |
| 160 "browser/devtools/remote_debugging_server.cc", | |
| 161 ] | |
| 162 deps -= [ "//third_party/libusb" ] | |
| 163 } | |
| 164 | |
| 165 # TODO implement debug_devtools | |
| 166 # if (debug_devtools) { | |
| 167 # defines = [ "DEBUG_DEVTOOLS=1" ] | |
| 168 # } | |
| 169 # TODO(brettw) this may be required on Windows: | |
| 170 # if (is_win) { | |
| 171 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
| 172 # 'msvs_disabled_warnings': [ 4267, ] | |
| 173 # } | |
| 174 | |
| 175 } | |
| 176 | |
| 177 source_set("plugin") { | |
| 178 } | |
| 179 | |
| 180 source_set("renderer") { | |
| 181 } | |
| 182 | |
| 183 source_set("utility") { | |
| 184 } | |
| 185 | |
| 186 | |
| 187 # Credits ---------------------------------------------------------------------- | |
| 188 | |
| 189 about_credits_file = "$root_gen_dir/about_credits.html" | |
| 190 build_relative_about_credits_file = | |
| 191 rebase_path(about_credits_file, root_build_dir) | |
| 192 | |
| 193 action("about_credits") { | |
| 194 script = "//tools/licenses.py" | |
| 195 outputs = [ about_credits_file ] | |
| 196 | |
| 197 # This script is impossible to write proper input dependencies for because it | |
| 198 # basically greps the source tree for third_party directories. If a directory | |
| 199 # is added or removed, it will change the result, but there is no way to | |
| 200 # express this as a build dependency. We approximate this by depending on | |
| 201 # the last change file to force an update whenever the code is updated. | |
| 202 inputs = [ "//build/util/LASTCHANGE" ] | |
| 203 | |
| 204 args = [ "credits", build_relative_about_credits_file ] | |
| 205 } | |
| 206 | |
| 207 # Resources -------------------------------------------------------------------- | |
| 208 | |
| 209 #group("chrome_resources") { | |
| 210 # deps = [ | |
| 211 # ":browser_resources", | |
| 212 # ":common_resources", | |
| 213 # ":renderer_resources", | |
| 214 # ] | |
| 215 #} | |
| 216 #grit("browser_resources") { | |
| 217 # source = "browser/browser_resources.grd" | |
| 218 # grit_flags = [ "-E", "about_credits_file=$build_relative_about_credits_file"
] | |
| 219 # deps = [ ":about_credits" ] | |
| 220 #} | |
| 221 #grit("common_resources") { | |
| 222 # source = "common/common_resources.grd" | |
| 223 #} | |
| 224 #grit("renderer_resources") { | |
| 225 # source = "renderer/resources/renderer_resources.grd" | |
| 226 #} | |
| 227 # | |
| 228 #group("chrome_strings") { | |
| 229 # deps = [ | |
| 230 # ":locale_settings", | |
| 231 # ":chromium_strings", | |
| 232 # ":generated_resources", | |
| 233 # ":google_chrome_strings", | |
| 234 # ] | |
| 235 #} | |
| 236 #grit("locale_settings") { | |
| 237 # source = "app/resources/locale_settings.grd" | |
| 238 #} | |
| 239 #grit("chromium_strings") { | |
| 240 # source = "app/chromium_strings.grd" | |
| 241 #} | |
| 242 #grit("generated_resources") { | |
| 243 # source = "app/generated_resources.grd" | |
| 244 #} | |
| 245 #grit("google_chrome_strings") { | |
| 246 # source = "app/google_chrome_strings.grd" | |
| 247 #} | |
| 248 # | |
| 249 #group("chrome_extra_resources") { | |
| 250 # deps = [ | |
| 251 # ":memory_internals_resources", | |
| 252 # ":net_internals_resources", | |
| 253 # ":signin_internals_resources", | |
| 254 # ":sync_internals_resources", | |
| 255 # ":translate_internals_resources", | |
| 256 # ] | |
| 257 # | |
| 258 # if (!is_ios) { | |
| 259 # deps += [ | |
| 260 # ":component_extension_resources", | |
| 261 # ":options_resources", | |
| 262 # ":quota_internals_resources", | |
| 263 # ":sync_file_system_internals_resources", | |
| 264 # ] | |
| 265 # } | |
| 266 #} | |
| 267 #grit("component_extension_resources") { | |
| 268 # source = "browser/resources/component_extension_resources.grd" | |
| 269 #} | |
| 270 #grit("memory_internals_resources") { | |
| 271 # source = "browser/resources/memory_internals_resources.grd" | |
| 272 #} | |
| 273 #grit("quota_internals_resources") { | |
| 274 # source = "browser/resources/quota_internals_resources.grd" | |
| 275 #} | |
| 276 #grit("net_internals_resources") { | |
| 277 # source = "browser/resources/net_internals_resources.grd" | |
| 278 #} | |
| 279 #grit("options_resources") { | |
| 280 # source = "browser/resources/options_resources.grd" | |
| 281 #} | |
| 282 #grit("signin_internals_resources") { | |
| 283 # source = "browser/resources/signin_internals_resources.grd" | |
| 284 #} | |
| 285 #grit("sync_file_system_internals_resources") { | |
| 286 # source = "browser/resources/sync_file_system_internals_resources.grd" | |
| 287 #} | |
| 288 #grit("sync_internals_resources") { | |
| 289 # source = "browser/resources/sync_internals_resources.grd" | |
| 290 #} | |
| 291 #grit("translate_internals_resources") { | |
| 292 # source = "browser/resources/translate_internals_resources.grd" | |
| 293 #} | |
| 294 # | |
| 295 ## TODO(brettw) rename "app_theme_resources" or something when we don't support | |
| 296 ## GYP any more. This name is required to match the GYP build. | |
| 297 #grit("theme_resources") { | |
| 298 # source = "app/theme/theme_resources.grd" | |
| 299 #} | |
| OLD | NEW |