| 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 "//base", |
| 7 "//components/pref_registry", |
| 8 "//components/prefs", |
| 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 static_library("internal") { |
| 6 visibility = [ | 24 visibility = [ |
| 7 "//ios/web_view", | 25 "//ios/web_view", |
| 8 "//ios/web_view/internal/*", | 26 "//ios/web_view/internal/*", |
| 9 ] | 27 ] |
| 10 | 28 |
| 11 sources = [ | 29 sources = [ |
| 12 "criwv.mm", | 30 "criwv.mm", |
| 13 "criwv_browser_state.h", | 31 "criwv_browser_state.h", |
| 14 "criwv_browser_state.mm", | 32 "criwv_browser_state.mm", |
| 15 "criwv_network_delegate.cc", | 33 "criwv_network_delegate.cc", |
| 16 "criwv_network_delegate.h", | 34 "criwv_network_delegate.h", |
| 17 "criwv_url_request_context_getter.h", | 35 "criwv_url_request_context_getter.h", |
| 18 "criwv_url_request_context_getter.mm", | 36 "criwv_url_request_context_getter.mm", |
| 19 "criwv_web_client.h", | 37 "criwv_web_client.h", |
| 20 "criwv_web_client.mm", | 38 "criwv_web_client.mm", |
| 21 "criwv_web_main_delegate.h", | 39 "criwv_web_main_delegate.h", |
| 22 "criwv_web_main_delegate.mm", | 40 "criwv_web_main_delegate.mm", |
| 23 "criwv_web_main_parts.h", | 41 "criwv_web_main_parts.h", |
| 24 "criwv_web_main_parts.mm", | 42 "criwv_web_main_parts.mm", |
| 25 "criwv_web_view_impl.h", | 43 "criwv_web_view_impl.h", |
| 26 "criwv_web_view_impl.mm", | 44 "criwv_web_view_impl.mm", |
| 27 "pref_names.cc", | 45 "pref_names.cc", |
| 28 "pref_names.h", | 46 "pref_names.h", |
| 29 ] | 47 ] |
| 30 deps = [ | 48 deps = DEPS |
| 31 "//base", | |
| 32 "//components/pref_registry", | |
| 33 "//components/prefs", | |
| 34 "//components/translate/core/browser", | |
| 35 "//components/translate/core/common", | |
| 36 "//ios/net", | |
| 37 "//ios/web", | |
| 38 "//ios/web:user_agent", | |
| 39 "//ios/web/public/app", | |
| 40 "//ios/web_view/internal/translate", | |
| 41 "//ios/web_view/public", | |
| 42 "//net", | |
| 43 "//net:extras", | |
| 44 "//ui/base", | |
| 45 "//url", | |
| 46 ] | |
| 47 allow_circular_includes_from = [ "//ios/web_view/internal/translate" ] | 49 allow_circular_includes_from = [ "//ios/web_view/internal/translate" ] |
| 48 } | 50 } |
| 51 |
| 52 # A static library which contains all dependencies of "internal". |
| 53 # Used to build "web_view_public". |
| 54 static_library("deps_complete") { |
| 55 complete_static_lib = true |
| 56 deps = DEPS |
| 57 } |
| 58 |
| 59 # A static library expected to be used by apps outside Chromium code base. |
| 60 # This is a complete static library (containing all dependencies), |
| 61 # and it doesn't expose internal symbols to reduce risk of symbol conflict. |
| 62 # |
| 63 # //ios/web_view:web_view_public is an alias of this library. |
| 64 # |
| 65 # TODO(ichikawa): Support building a universal binary. |
| 66 action("web_view_public") { |
| 67 script = "hide_symbols.py" |
| 68 deps = [ |
| 69 ":deps_complete", |
| 70 ":internal", |
| 71 ] |
| 72 outputs = [ |
| 73 "$target_out_dir/libweb_view_public.a", |
| 74 "$target_out_dir/libweb_view_public.o", |
| 75 ] |
| 76 args = [ |
| 77 "--input_lib", |
| 78 rebase_path("$target_out_dir/libinternal.a", root_build_dir), |
| 79 "--deps_lib", |
| 80 rebase_path("$target_out_dir/libdeps_complete.a", root_build_dir), |
| 81 "--output_obj", |
| 82 rebase_path("$target_out_dir/libweb_view_public.o", root_build_dir), |
| 83 "--output_lib", |
| 84 rebase_path("$target_out_dir/libweb_view_public.a", root_build_dir), |
| 85 ] |
| 86 } |
| OLD | NEW |