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. |
| 24 static_library("web_view_incomplete") { |
| 25 visibility = [ ":*" ] |
10 | 26 |
11 sources = [ | 27 sources = [ |
12 "cwv.mm", | 28 "cwv.mm", |
13 "cwv_html_element.mm", | 29 "cwv_html_element.mm", |
14 "cwv_html_element_internal.h", | 30 "cwv_html_element_internal.h", |
15 "cwv_web_view.mm", | 31 "cwv_web_view.mm", |
16 "cwv_web_view_configuration.mm", | 32 "cwv_web_view_configuration.mm", |
17 "cwv_website_data_store.mm", | 33 "cwv_website_data_store.mm", |
18 "cwv_website_data_store_internal.h", | 34 "cwv_website_data_store_internal.h", |
19 "pref_names.cc", | 35 "pref_names.cc", |
20 "pref_names.h", | 36 "pref_names.h", |
21 "web_view_browser_state.h", | 37 "web_view_browser_state.h", |
22 "web_view_browser_state.mm", | 38 "web_view_browser_state.mm", |
23 "web_view_java_script_dialog_presenter.h", | 39 "web_view_java_script_dialog_presenter.h", |
24 "web_view_java_script_dialog_presenter.mm", | 40 "web_view_java_script_dialog_presenter.mm", |
25 "web_view_network_delegate.cc", | 41 "web_view_network_delegate.cc", |
26 "web_view_network_delegate.h", | 42 "web_view_network_delegate.h", |
27 "web_view_url_request_context_getter.h", | 43 "web_view_url_request_context_getter.h", |
28 "web_view_url_request_context_getter.mm", | 44 "web_view_url_request_context_getter.mm", |
29 "web_view_web_client.h", | 45 "web_view_web_client.h", |
30 "web_view_web_client.mm", | 46 "web_view_web_client.mm", |
31 "web_view_web_main_delegate.h", | 47 "web_view_web_main_delegate.h", |
32 "web_view_web_main_delegate.mm", | 48 "web_view_web_main_delegate.mm", |
33 "web_view_web_main_parts.h", | 49 "web_view_web_main_parts.h", |
34 "web_view_web_main_parts.mm", | 50 "web_view_web_main_parts.mm", |
35 ] | 51 ] |
36 deps = [ | 52 |
37 "//base", | 53 deps = _deps |
38 "//components/pref_registry", | 54 |
39 "//components/prefs", | 55 configs += [ "//build/config/compiler:enable_arc" ] |
40 "//components/translate/core/browser", | |
41 "//components/translate/core/common", | |
42 "//ios/net", | |
43 "//ios/web", | |
44 "//ios/web:user_agent", | |
45 "//ios/web/public/app", | |
46 "//ios/web_view/internal/translate", | |
47 "//ios/web_view/public", | |
48 "//net", | |
49 "//net:extras", | |
50 "//ui/base", | |
51 "//url", | |
52 ] | |
53 | 56 |
54 allow_circular_includes_from = [ "//ios/web_view/internal/translate" ] | 57 allow_circular_includes_from = [ "//ios/web_view/internal/translate" ] |
| 58 } |
55 | 59 |
56 configs += [ "//build/config/compiler:enable_arc" ] | 60 # A static library which contains all dependencies of :web_view_incomplete. |
| 61 static_library("deps_complete") { |
| 62 visibility = [ ":*" ] |
| 63 complete_static_lib = true |
| 64 deps = _deps |
57 } | 65 } |
| 66 |
| 67 # See the comment of //ios/web_view, which is a public alias of this library. |
| 68 # |
| 69 # TODO(crbug.com/689755): Support building a universal binary. |
| 70 action("lib_web_view") { |
| 71 visibility = [ |
| 72 "//ios/web_view", |
| 73 "//ios/web_view/internal/*", |
| 74 ] |
| 75 script = "hide_symbols.py" |
| 76 deps = [ |
| 77 ":deps_complete", |
| 78 ":web_view_incomplete", |
| 79 ] |
| 80 outputs = [ |
| 81 "$target_out_dir/libweb_view.a", |
| 82 "$target_out_dir/libweb_view.o", |
| 83 ] |
| 84 args = [ |
| 85 "--input_libs", |
| 86 rebase_path("$target_out_dir/libweb_view_incomplete.a", root_build_dir), |
| 87 "--deps_lib", |
| 88 rebase_path("$target_out_dir/libdeps_complete.a", root_build_dir), |
| 89 "--output_obj", |
| 90 rebase_path("$target_out_dir/libweb_view.o", root_build_dir), |
| 91 "--output_lib", |
| 92 rebase_path("$target_out_dir/libweb_view.a", root_build_dir), |
| 93 "--current_cpu", |
| 94 current_cpu, |
| 95 ] |
| 96 } |
OLD | NEW |