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