| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 source_set("internal") { | 5 _deps = [ |
| 6 visibility = [ | 6 "//base", |
| 7 "//ios/web_view", | 7 "//components/pref_registry", |
| 8 "//ios/web_view/internal/*", | 8 "//components/prefs", |
| 9 ] | 9 "//components/translate/core/browser", |
| 10 "//components/translate/core/common", |
| 11 "//ios/net", |
| 12 "//ios/web", |
| 13 "//ios/web:user_agent", |
| 14 "//ios/web/public/app", |
| 15 "//ios/web_view/internal/translate", |
| 16 "//ios/web_view/public", |
| 17 "//net", |
| 18 "//net:extras", |
| 19 "//ui/base", |
| 20 "//url", |
| 21 ] |
| 22 |
| 23 # An incomplete static library for //ios/web_view. Used as an input of |
| 24 # :lib_web_view. |
| 25 static_library("web_view_incomplete") { |
| 26 visibility = [ ":*" ] |
| 10 | 27 |
| 11 sources = [ | 28 sources = [ |
| 12 "criwv.mm", | 29 "criwv.mm", |
| 13 "criwv_browser_state.h", | 30 "criwv_browser_state.h", |
| 14 "criwv_browser_state.mm", | 31 "criwv_browser_state.mm", |
| 15 "criwv_network_delegate.cc", | 32 "criwv_network_delegate.cc", |
| 16 "criwv_network_delegate.h", | 33 "criwv_network_delegate.h", |
| 17 "criwv_url_request_context_getter.h", | 34 "criwv_url_request_context_getter.h", |
| 18 "criwv_url_request_context_getter.mm", | 35 "criwv_url_request_context_getter.mm", |
| 19 "criwv_web_client.h", | 36 "criwv_web_client.h", |
| 20 "criwv_web_client.mm", | 37 "criwv_web_client.mm", |
| 21 "criwv_web_main_delegate.h", | 38 "criwv_web_main_delegate.h", |
| 22 "criwv_web_main_delegate.mm", | 39 "criwv_web_main_delegate.mm", |
| 23 "criwv_web_main_parts.h", | 40 "criwv_web_main_parts.h", |
| 24 "criwv_web_main_parts.mm", | 41 "criwv_web_main_parts.mm", |
| 25 "criwv_web_view.mm", | 42 "criwv_web_view.mm", |
| 26 "criwv_web_view_configuration.mm", | 43 "criwv_web_view_configuration.mm", |
| 27 "criwv_website_data_store.mm", | 44 "criwv_website_data_store.mm", |
| 28 "criwv_website_data_store_internal.h", | 45 "criwv_website_data_store_internal.h", |
| 29 "pref_names.cc", | 46 "pref_names.cc", |
| 30 "pref_names.h", | 47 "pref_names.h", |
| 31 ] | 48 ] |
| 32 deps = [ | 49 |
| 33 "//base", | 50 deps = _deps |
| 34 "//components/pref_registry", | |
| 35 "//components/prefs", | |
| 36 "//components/translate/core/browser", | |
| 37 "//components/translate/core/common", | |
| 38 "//ios/net", | |
| 39 "//ios/web", | |
| 40 "//ios/web:user_agent", | |
| 41 "//ios/web/public/app", | |
| 42 "//ios/web_view/internal/translate", | |
| 43 "//ios/web_view/public", | |
| 44 "//net", | |
| 45 "//net:extras", | |
| 46 "//ui/base", | |
| 47 "//url", | |
| 48 ] | |
| 49 | 51 |
| 50 allow_circular_includes_from = [ "//ios/web_view/internal/translate" ] | 52 allow_circular_includes_from = [ "//ios/web_view/internal/translate" ] |
| 51 | 53 |
| 52 configs += [ "//build/config/compiler:enable_arc" ] | 54 configs += [ "//build/config/compiler:enable_arc" ] |
| 53 } | 55 } |
| 56 |
| 57 # A static library which contains all dependencies of :web_view_incomplete. |
| 58 static_library("deps_complete") { |
| 59 visibility = [ ":*" ] |
| 60 complete_static_lib = true |
| 61 deps = _deps |
| 62 } |
| 63 |
| 64 # See the comment of //ios/web_view, which is a public alias of this library. |
| 65 # |
| 66 # TODO(crbug.com/689755): Support building a universal binary. |
| 67 action("lib_web_view") { |
| 68 visibility = [ |
| 69 "//ios/web_view", |
| 70 "//ios/web_view/internal/*", |
| 71 ] |
| 72 script = "hide_symbols.py" |
| 73 deps = [ |
| 74 ":deps_complete", |
| 75 ":web_view_incomplete", |
| 76 ] |
| 77 outputs = [ |
| 78 "$target_out_dir/libweb_view.a", |
| 79 "$target_out_dir/libweb_view.o", |
| 80 ] |
| 81 args = [ |
| 82 "--input_lib", |
| 83 rebase_path("$target_out_dir/libweb_view_incomplete.a", root_build_dir), |
| 84 "--deps_lib", |
| 85 rebase_path("$target_out_dir/libdeps_complete.a", root_build_dir), |
| 86 "--output_obj", |
| 87 rebase_path("$target_out_dir/libweb_view.o", root_build_dir), |
| 88 "--output_lib", |
| 89 rebase_path("$target_out_dir/libweb_view.a", root_build_dir), |
| 90 "--current_cpu", |
| 91 current_cpu, |
| 92 ] |
| 93 } |
| OLD | NEW |