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 config("web_view_config") { |
| 6 libs = [ |
| 7 "$target_out_dir/libweb_view.a", |
| 8 |
| 9 # //ios/web_view depends on sqlite3 provided by iOS. |
| 10 "sqlite3", |
| 11 ] |
| 12 } |
| 13 |
5 # Public target that should be used to depend on web_view. Only give access | 14 # Public target that should be used to depend on web_view. Only give access |
6 # to the web_view public headers while still linking with the implementation. | 15 # to the web_view public headers while still linking with the implementation. |
7 group("web_view") { | 16 # |
| 17 # This is a complete static library (containing all dependencies), and it |
| 18 # doesn't expose internal symbols to reduce risk of symbol conflict. |
| 19 copy("web_view") { |
8 public_deps = [ | 20 public_deps = [ |
9 "//ios/web_view/public", | 21 "//ios/web_view/public", |
10 ] | 22 ] |
11 deps = [ | 23 deps = [ |
12 "//ios/web_view/internal", | 24 "//ios/web_view/internal:lib_web_view", |
13 ] | 25 ] |
| 26 sources = [ |
| 27 "$target_out_dir/internal/libweb_view.a", |
| 28 ] |
| 29 outputs = [ |
| 30 "$target_out_dir/libweb_view.a", |
| 31 ] |
| 32 |
| 33 # Lets this target behave like a static_library target i.e., Lets its |
| 34 # dependents link to libweb_view.a. |
| 35 public_configs = [ ":web_view_config" ] |
14 } | 36 } |
OLD | NEW |