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_arc") { | 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 which contains source files with ARC enabled in |
| 24 # //ios/web_view. |
| 25 static_library("web_view_arc_incomplete") { |
| 26 visibility = [ ":*" ] |
10 | 27 |
11 sources = [ | 28 sources = [ |
12 "criwv_web_view_configuration.mm", | 29 "criwv_web_view_configuration.mm", |
13 "criwv_website_data_store.mm", | 30 "criwv_website_data_store.mm", |
14 "criwv_website_data_store_internal.h", | 31 "criwv_website_data_store_internal.h", |
15 ] | 32 ] |
16 | 33 |
17 deps = [ | 34 deps = _deps |
18 "//ios/web/public/app", | |
19 "//ios/web_view/public", | |
20 ] | |
21 | 35 |
22 configs += [ "//build/config/compiler:enable_arc" ] | 36 configs += [ "//build/config/compiler:enable_arc" ] |
23 } | 37 } |
24 | 38 |
25 source_set("internal") { | 39 # An incomplete static library which contains source files with ARC disabled in |
26 visibility = [ | 40 # //ios/web_view. |
27 "//ios/web_view", | 41 # |
28 "//ios/web_view/internal/*", | 42 # TODO(crbug.com/690755): Move files in :web_view_non_arch_incomplete to |
29 ] | 43 # :web_view_arch_incomplete and delete :web_view_non_arch_incomplete. |
| 44 static_library("web_view_non_arc_incomplete") { |
| 45 visibility = [ ":*" ] |
30 | 46 |
31 sources = [ | 47 sources = [ |
32 "criwv.mm", | 48 "criwv.mm", |
33 "criwv_browser_state.h", | 49 "criwv_browser_state.h", |
34 "criwv_browser_state.mm", | 50 "criwv_browser_state.mm", |
35 "criwv_network_delegate.cc", | 51 "criwv_network_delegate.cc", |
36 "criwv_network_delegate.h", | 52 "criwv_network_delegate.h", |
37 "criwv_url_request_context_getter.h", | 53 "criwv_url_request_context_getter.h", |
38 "criwv_url_request_context_getter.mm", | 54 "criwv_url_request_context_getter.mm", |
39 "criwv_web_client.h", | 55 "criwv_web_client.h", |
40 "criwv_web_client.mm", | 56 "criwv_web_client.mm", |
41 "criwv_web_main_delegate.h", | 57 "criwv_web_main_delegate.h", |
42 "criwv_web_main_delegate.mm", | 58 "criwv_web_main_delegate.mm", |
43 "criwv_web_main_parts.h", | 59 "criwv_web_main_parts.h", |
44 "criwv_web_main_parts.mm", | 60 "criwv_web_main_parts.mm", |
45 "criwv_web_view.mm", | 61 "criwv_web_view.mm", |
46 "pref_names.cc", | 62 "pref_names.cc", |
47 "pref_names.h", | 63 "pref_names.h", |
48 ] | 64 ] |
| 65 |
| 66 deps = _deps |
| 67 |
| 68 allow_circular_includes_from = [ "//ios/web_view/internal/translate" ] |
| 69 } |
| 70 |
| 71 # A static library which contains all dependencies of :web_view_arc_incomplete |
| 72 # and :web_view_non_arc_incomplete. |
| 73 static_library("deps_complete") { |
| 74 visibility = [ ":*" ] |
| 75 complete_static_lib = true |
| 76 deps = _deps |
| 77 } |
| 78 |
| 79 # See the comment of //ios/web_view, which is a public alias of this library. |
| 80 # |
| 81 # TODO(crbug.com/689755): Support building a universal binary. |
| 82 action("lib_web_view") { |
| 83 visibility = [ |
| 84 "//ios/web_view", |
| 85 "//ios/web_view/internal/*", |
| 86 ] |
| 87 script = "hide_symbols.py" |
49 deps = [ | 88 deps = [ |
50 "//base", | 89 ":deps_complete", |
51 "//components/pref_registry", | 90 ":web_view_arc_incomplete", |
52 "//components/prefs", | 91 ":web_view_non_arc_incomplete", |
53 "//components/translate/core/browser", | |
54 "//components/translate/core/common", | |
55 "//ios/net", | |
56 "//ios/web", | |
57 "//ios/web:user_agent", | |
58 "//ios/web/public/app", | |
59 "//ios/web_view/internal/translate", | |
60 "//ios/web_view/public", | |
61 "//net", | |
62 "//net:extras", | |
63 "//ui/base", | |
64 "//url", | |
65 ] | 92 ] |
66 | 93 outputs = [ |
67 public_deps = [ | 94 "$target_out_dir/libweb_view.a", |
68 ":internal_arc", | 95 "$target_out_dir/libweb_view.o", |
69 ] | 96 ] |
70 | 97 args = [ |
71 allow_circular_includes_from = [ | 98 "--input_libs", |
72 ":internal_arc", | 99 rebase_path("$target_out_dir/libweb_view_arc_incomplete.a", |
73 "//ios/web_view/internal/translate", | 100 root_build_dir) + "," + |
| 101 rebase_path("$target_out_dir/libweb_view_non_arc_incomplete.a", |
| 102 root_build_dir), |
| 103 "--deps_lib", |
| 104 rebase_path("$target_out_dir/libdeps_complete.a", root_build_dir), |
| 105 "--output_obj", |
| 106 rebase_path("$target_out_dir/libweb_view.o", root_build_dir), |
| 107 "--output_lib", |
| 108 rebase_path("$target_out_dir/libweb_view.a", root_build_dir), |
| 109 "--current_cpu", |
| 110 current_cpu, |
74 ] | 111 ] |
75 } | 112 } |
OLD | NEW |