OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import("//build/config/ios/rules.gni") | 5 import("//build/config/ios/rules.gni") |
6 | 6 |
7 app("ios_web_shell") { | 7 app("ios_web_shell") { |
8 info_plist = "Info.plist" | 8 info_plist = "Info.plist" |
9 app_name = "ios_web_shell" | 9 app_name = "ios_web_shell" |
10 entitlements_path = "" | 10 entitlements_path = "" |
11 code_signing_identity = "" | 11 code_signing_identity = "" |
12 | 12 |
13 sources = [ | 13 sources = [ |
14 "web_exe_main.mm", | 14 "web_exe_main.mm", |
15 ] | 15 ] |
16 | 16 |
17 deps = [ | 17 deps = [ |
18 ":shell", | 18 ":shell", |
19 ] | 19 ] |
20 | 20 |
21 ldflags = [ | 21 ldflags = [ |
22 "-Xlinker", | 22 "-Xlinker", |
23 "-objc_abi_version", | 23 "-objc_abi_version", |
24 "-Xlinker", | 24 "-Xlinker", |
25 "2", | 25 "2", |
26 ] | 26 ] |
| 27 } |
27 | 28 |
28 # TODO(crbug.com/546283): once gn supports bundle resources, add support for | 29 bundle_data_xib("main_view_bundle_data") { |
29 # the following gyp code: | 30 visibility = [ ":shell" ] |
30 # | 31 source = "MainView.xib" |
31 # 'mac_bundle_resources': [ | 32 } |
32 # 'shell/Default.png', | 33 |
33 # 'shell/MainView.xib', | 34 bundle_data("shell_bundle_data") { |
34 # 'shell/textfield_background@2x.png', | 35 visibility = [ ":shell" ] |
35 # 'shell/toolbar_back@2x.png', | 36 sources = [ |
36 # 'shell/toolbar_forward@2x.png', | 37 "Default.png", |
37 # ], | 38 "textfield_background@2x.png", |
| 39 "toolbar_back@2x.png", |
| 40 "toolbar_forward@2x.png", |
| 41 ] |
| 42 outputs = [ |
| 43 "{{bundle_resources_dir}}/{{source_file_part}}", |
| 44 ] |
38 } | 45 } |
39 | 46 |
40 source_set("shell") { | 47 source_set("shell") { |
41 sources = [ | 48 sources = [ |
42 "app_delegate.h", | 49 "app_delegate.h", |
43 "app_delegate.mm", | 50 "app_delegate.mm", |
44 "shell_browser_state.h", | 51 "shell_browser_state.h", |
45 "shell_browser_state.mm", | 52 "shell_browser_state.mm", |
46 "shell_main_delegate.h", | 53 "shell_main_delegate.h", |
47 "shell_main_delegate.mm", | 54 "shell_main_delegate.mm", |
48 "shell_network_delegate.cc", | 55 "shell_network_delegate.cc", |
49 "shell_network_delegate.h", | 56 "shell_network_delegate.h", |
50 "shell_url_request_context_getter.h", | 57 "shell_url_request_context_getter.h", |
51 "shell_url_request_context_getter.mm", | 58 "shell_url_request_context_getter.mm", |
52 "shell_web_client.h", | 59 "shell_web_client.h", |
53 "shell_web_client.mm", | 60 "shell_web_client.mm", |
54 "shell_web_main_parts.h", | 61 "shell_web_main_parts.h", |
55 "shell_web_main_parts.mm", | 62 "shell_web_main_parts.mm", |
56 "view_controller.h", | 63 "view_controller.h", |
57 "view_controller.mm", | 64 "view_controller.mm", |
58 ] | 65 ] |
59 | 66 |
60 deps = [ | 67 deps = [ |
| 68 ":main_view_bundle_data", |
| 69 ":shell_bundle_data", |
61 "//base", | 70 "//base", |
62 "//ios/web", | 71 "//ios/web", |
63 "//ios/web/public/app", | 72 "//ios/web/public/app", |
64 "//net", | 73 "//net", |
65 "//net:extras", | 74 "//net:extras", |
66 "//ui/base", | 75 "//ui/base", |
67 | 76 |
68 # All shared libraries must have the sanitizer deps to properly link in | 77 # All shared libraries must have the sanitizer deps to properly link in |
69 # asan mode (this target will be empty in other cases). | 78 # asan mode (this target will be empty in other cases). |
70 "//build/config/sanitizers:deps", | 79 "//build/config/sanitizers:deps", |
71 ] | 80 ] |
72 | 81 |
73 libs = [ | 82 libs = [ |
74 "CoreGraphics.framework", | 83 "CoreGraphics.framework", |
75 "CoreFoundation.framework", | 84 "CoreFoundation.framework", |
76 "Foundation.framework", | 85 "Foundation.framework", |
77 "UIKit.framework", | 86 "UIKit.framework", |
78 ] | 87 ] |
79 } | 88 } |
OLD | NEW |