Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: ios/web_view/internal/BUILD.gn

Issue 2665333002: Add a BUILD target and a script to build a public static library for ios/web_view. (Closed)
Patch Set: Apply review comments. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/web_view/BUILD.gn ('k') | ios/web_view/internal/hide_symbols.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 = [
sdefresne 2017/02/06 14:22:44 nit: I would name this "_deps" to mark that this i
Hiroshi Ichikawa 2017/02/07 03:40:34 Done.
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.mm", 43 "criwv_web_view.mm",
26 "criwv_web_view_internal.h", 44 "criwv_web_view_internal.h",
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".
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("lib_web_view") {
67 script = "hide_symbols.py"
68 deps = [
69 ":deps_complete",
70 ":internal",
71 ]
72 outputs = [
73 "$target_out_dir/libweb_view.a",
74 "$target_out_dir/libweb_view.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.o", root_build_dir),
83 "--output_lib",
84 rebase_path("$target_out_dir/libweb_view.a", root_build_dir),
85 "--current_cpu",
86 current_cpu,
87 ]
88 }
OLDNEW
« no previous file with comments | « ios/web_view/BUILD.gn ('k') | ios/web_view/internal/hide_symbols.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698