Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(824)

Side by Side Diff: ios/web/BUILD.gn

Issue 1411183010: Make MB aware of iOS bot configs and get iOS working. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rework to read GYP_DEFINES/gn_args from bot configs in MB Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # GN build of //ios/web only supports building with the web implementation of
6 # WebThread as opposed to GYP build that allow using a shim implementation based
7 # on top of BrowserThread.
8 #
9 # See ios/web/ios_web.gyp for more information on how gyp supports this. The
10 # gn targets will fold the target selection in the gyp "incomplete" targets.
11
5 import("//testing/test.gni") 12 import("//testing/test.gni")
6 import("//ios/web/js_compile.gni") 13 import("//ios/web/js_compile.gni")
7 14
8 config("config") { 15 config("config") {
9 visibility = [ ":web" ] 16 visibility = [ ":web" ]
10 17
11 # The WebKit framework is only available since iOS 8.0 but Chrome on iOS do 18 # The WebKit framework is only available since iOS 8.0 but Chrome on iOS do
12 # supports iOS 7.0 so need to use weak linking. 19 # supports iOS 7.0 so need to use weak linking.
13 # TODO(crbug.com/541549): change to regular linking once support for iOS 7 is 20 # TODO(crbug.com/541549): change to regular linking once support for iOS 7 is
14 # dropped. 21 # dropped.
15 ldflags = [ 22 ldflags = [
16 "-weak_framework", 23 "-weak_framework",
17 "WebKit", 24 "WebKit",
18 ] 25 ]
19 } 26 }
20 27
21 source_set("web") { 28 source_set("web") {
22 deps = [ 29 deps = [
30 ":core",
31 ":js_resources",
32 ":user_agent",
23 "//base", 33 "//base",
24 "//components/url_formatter", 34 "//components/url_formatter",
25 "//ios/net", 35 "//ios/net",
26 "//ios/third_party/blink:html_tokenizer", 36 "//ios/third_party/blink:html_tokenizer",
27 "//net", 37 "//net",
28 "//ui/base", 38 "//ui/base",
29 "//ui/gfx", 39 "//ui/gfx",
30 "//ui/gfx/geometry:geometry", 40 "//ui/gfx/geometry:geometry",
31 "//ui/resources", 41 "//ui/resources",
32 "//url", 42 "//url",
33 ":core",
34 ":js_resources",
35 ":user_agent",
36 ] 43 ]
37 44
38 sources = [ 45 sources = [
39 "active_state_manager_impl.h", 46 "active_state_manager_impl.h",
40 "active_state_manager_impl.mm", 47 "active_state_manager_impl.mm",
41 "alloc_with_zone_interceptor.h", 48 "alloc_with_zone_interceptor.h",
42 "alloc_with_zone_interceptor.mm", 49 "alloc_with_zone_interceptor.mm",
43 "browser_state.mm", 50 "browser_state.mm",
44 "browser_url_rewriter_impl.cc", 51 "browser_url_rewriter_impl.cc",
45 "browser_url_rewriter_impl.h", 52 "browser_url_rewriter_impl.h",
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 } 329 }
323 330
324 source_set("test_support") { 331 source_set("test_support") {
325 testonly = true 332 testonly = true
326 333
327 deps = [ 334 deps = [
328 "//ios/testing:ocmock_support", 335 "//ios/testing:ocmock_support",
329 "//ios/third_party/gcdwebserver", 336 "//ios/third_party/gcdwebserver",
330 "//testing/gmock", 337 "//testing/gmock",
331 "//testing/gtest", 338 "//testing/gtest",
339 "//third_party/google_toolbox_for_mac",
332 "//third_party/ocmock", 340 "//third_party/ocmock",
333 ":web", 341 ":web",
334 ] 342 ]
335 343
336 sources = [ 344 sources = [
337 "public/test/crw_test_js_injection_receiver.h", 345 "public/test/crw_test_js_injection_receiver.h",
338 "public/test/crw_test_js_injection_receiver.mm", 346 "public/test/crw_test_js_injection_receiver.mm",
339 "public/test/http_server.h", 347 "public/test/http_server.h",
340 "public/test/http_server.mm", 348 "public/test/http_server.mm",
341 "public/test/js_test_util.h", 349 "public/test/js_test_util.h",
(...skipping 27 matching lines...) Expand all
369 "test/web_test_suite.h", 377 "test/web_test_suite.h",
370 "test/wk_web_view_crash_utils.h", 378 "test/wk_web_view_crash_utils.h",
371 "test/wk_web_view_crash_utils.mm", 379 "test/wk_web_view_crash_utils.mm",
372 ] 380 ]
373 } 381 }
374 382
375 test("ios_web_unittests") { 383 test("ios_web_unittests") {
376 deps = [ 384 deps = [
377 "//base", 385 "//base",
378 "//base/test:test_support", 386 "//base/test:test_support",
379 "//ios/testing:ocmock_support",
380 "//net:test_support", 387 "//net:test_support",
381 "//testing/gmock", 388 "//testing/gmock",
382 "//testing/gtest", 389 "//testing/gtest",
390 "//third_party/google_toolbox_for_mac",
383 "//third_party/ocmock", 391 "//third_party/ocmock",
384 "//ui/base:test_support", 392 "//ui/base:test_support",
393 "//ios/testing:ocmock_support",
394 ":web",
385 ":test_support", 395 ":test_support",
386 ":web",
387 ] 396 ]
388 397
389 sources = [ 398 sources = [
390 "active_state_manager_impl_unittest.mm", 399 "active_state_manager_impl_unittest.mm",
391 "alloc_with_zone_interceptor_unittest.mm", 400 "alloc_with_zone_interceptor_unittest.mm",
392 "browser_state_unittest.cc", 401 "browser_state_unittest.cc",
393 "browsing_data_partition_impl_unittest.mm", 402 "browsing_data_partition_impl_unittest.mm",
394 "crw_browsing_data_store_unittest.mm", 403 "crw_browsing_data_store_unittest.mm",
395 "crw_network_activity_indicator_manager_unittest.mm", 404 "crw_network_activity_indicator_manager_unittest.mm",
396 "history_state_util_unittest.mm", 405 "history_state_util_unittest.mm",
397 "navigation/crw_session_controller_unittest.mm", 406 "navigation/crw_session_controller_unittest.mm",
398 "navigation/crw_session_entry_unittest.mm", 407 "navigation/crw_session_entry_unittest.mm",
399 "navigation/navigation_item_impl_unittest.mm", 408 "navigation/navigation_item_impl_unittest.mm",
400 "navigation/navigation_manager_impl_unittest.mm", 409 "navigation/navigation_manager_impl_unittest.mm",
401 "navigation/nscoder_util_unittest.mm", 410 "navigation/nscoder_util_unittest.mm",
402 "net/cert_host_pair_unittest.cc",
403 "net/cert_policy_unittest.cc", 411 "net/cert_policy_unittest.cc",
404 "net/cert_verifier_block_adapter_unittest.cc", 412 "net/cert_verifier_block_adapter_unittest.cc",
405 "net/clients/crw_csp_network_client_unittest.mm", 413 "net/clients/crw_csp_network_client_unittest.mm",
406 "net/clients/crw_js_injection_network_client_unittest.mm", 414 "net/clients/crw_js_injection_network_client_unittest.mm",
407 "net/clients/crw_passkit_network_client_unittest.mm", 415 "net/clients/crw_passkit_network_client_unittest.mm",
408 "net/crw_cert_verification_controller_unittest.mm", 416 "net/crw_cert_verification_controller_unittest.mm",
409 "net/crw_url_verifying_protocol_handler_unittest.mm", 417 "net/crw_url_verifying_protocol_handler_unittest.mm",
410 "net/request_group_util_unittest.mm", 418 "net/request_group_util_unittest.mm",
411 "net/request_tracker_impl_unittest.mm", 419 "net/request_tracker_impl_unittest.mm",
412 "net/web_http_protocol_handler_delegate_unittest.mm", 420 "net/web_http_protocol_handler_delegate_unittest.mm",
413 "public/referrer_util_unittest.cc", 421 "public/referrer_util_unittest.cc",
422 "public/test/http_server_unittest.mm",
414 "string_util_unittest.cc", 423 "string_util_unittest.cc",
415 "test/crw_fake_web_controller_observer_unittest.mm", 424 "test/crw_fake_web_controller_observer_unittest.mm",
416 "test/run_all_unittests.cc", 425 "test/run_all_unittests.cc",
417 "ui_web_view_util_unittest.mm", 426 "ui_web_view_util_unittest.mm",
418 "url_scheme_util_unittest.mm", 427 "url_scheme_util_unittest.mm",
419 "url_util_unittest.cc", 428 "url_util_unittest.cc",
420 "weak_nsobject_counter_unittest.mm", 429 "weak_nsobject_counter_unittest.mm",
421 "web_state/crw_web_view_scroll_view_proxy_unittest.mm", 430 "web_state/crw_web_view_scroll_view_proxy_unittest.mm",
422 "web_state/js/common_js_unittest.mm", 431 "web_state/js/common_js_unittest.mm",
423 "web_state/js/core_js_unittest.mm", 432 "web_state/js/core_js_unittest.mm",
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 ":web_bundle_ui", 498 ":web_bundle_ui",
490 ":web_bundle_wk", 499 ":web_bundle_wk",
491 ] 500 ]
492 501
493 sources = [ 502 sources = [
494 "web_state/js/resources/plugin_placeholder.js", 503 "web_state/js/resources/plugin_placeholder.js",
495 "web_state/js/resources/window_id.js", 504 "web_state/js/resources/window_id.js",
496 "webui/resources/web_ui.js", 505 "webui/resources/web_ui.js",
497 ] 506 ]
498 } 507 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698