| 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 import("//tools/grit/repack.gni") | 5 import("//tools/grit/repack.gni") |
| 6 import("//build/config/ios/rules.gni") | 6 import("//build/config/ios/rules.gni") |
| 7 | 7 |
| 8 ios_app_bundle("ios_web_view_shell") { | 8 ios_app_bundle("ios_web_view_shell") { |
| 9 configs += [ "//build/config/compiler:enable_arc" ] | 9 info_plist = "Info.plist" |
| 10 |
| 10 deps = [ | 11 deps = [ |
| 11 "//base", | 12 ":shell", |
| 12 "//ios/web_view", | |
| 13 ] | 13 ] |
| 14 bundle_deps = [ | 14 bundle_deps = [ |
| 15 ":resources", | 15 ":resources", |
| 16 ":packed_resources", | 16 ":packed_resources", |
| 17 ] | 17 ] |
| 18 info_plist = "Info.plist" | 18 |
| 19 configs += [ "//build/config/compiler:enable_arc" ] |
| 20 } |
| 21 |
| 22 source_set("shell") { |
| 19 sources = [ | 23 sources = [ |
| 20 "shell_app_delegate.h", | 24 "shell_app_delegate.h", |
| 21 "shell_app_delegate.m", | 25 "shell_app_delegate.m", |
| 22 "shell_delegate.h", | 26 "shell_delegate.h", |
| 23 "shell_delegate.m", | 27 "shell_delegate.m", |
| 24 "shell_exe_main.m", | 28 "shell_exe_main.m", |
| 25 "shell_view_controller.h", | 29 "shell_view_controller.h", |
| 26 "shell_view_controller.m", | 30 "shell_view_controller.m", |
| 27 "translate_controller.h", | 31 "translate_controller.h", |
| 28 "translate_controller.m", | 32 "translate_controller.m", |
| 29 ] | 33 ] |
| 34 |
| 35 deps = [ |
| 36 "//base", |
| 37 "//ios/web_view", |
| 38 ] |
| 39 |
| 30 libs = [ | 40 libs = [ |
| 31 "CFNetwork.framework", | 41 "CFNetwork.framework", |
| 32 "CoreFoundation.framework", | 42 "CoreFoundation.framework", |
| 33 "CoreGraphics.framework", | 43 "CoreGraphics.framework", |
| 34 "CoreText.framework", | 44 "CoreText.framework", |
| 35 "Foundation.framework", | 45 "Foundation.framework", |
| 36 "ImageIO.framework", | 46 "ImageIO.framework", |
| 37 "MobileCoreServices.framework", | 47 "MobileCoreServices.framework", |
| 38 "Security.framework", | 48 "Security.framework", |
| 39 "SystemConfiguration.framework", | 49 "SystemConfiguration.framework", |
| 40 "UIKit.framework", | 50 "UIKit.framework", |
| 41 "WebKit.framework", | 51 "WebKit.framework", |
| 42 "resolv", | 52 "resolv", |
| 43 ] | 53 ] |
| 54 |
| 55 configs += [ "//build/config/compiler:enable_arc" ] |
| 44 } | 56 } |
| 45 | 57 |
| 46 bundle_data("resources") { | 58 bundle_data("resources") { |
| 47 visibility = [ ":ios_web_view_shell" ] | 59 visibility = [ ":ios_web_view_shell" ] |
| 48 sources = [ | 60 sources = [ |
| 49 "Default-568h@2x.png", | 61 "Default-568h@2x.png", |
| 50 "textfield_background@2x.png", | 62 "textfield_background@2x.png", |
| 51 "toolbar_back@2x.png", | 63 "toolbar_back@2x.png", |
| 52 "toolbar_forward@2x.png", | 64 "toolbar_forward@2x.png", |
| 53 "toolbar_stop@2x.png", | 65 "toolbar_stop@2x.png", |
| (...skipping 19 matching lines...) Expand all Loading... |
| 73 public_deps = [ | 85 public_deps = [ |
| 74 ":repack_resources", | 86 ":repack_resources", |
| 75 ] | 87 ] |
| 76 sources = [ | 88 sources = [ |
| 77 "$target_gen_dir/web_view_resources.pak", | 89 "$target_gen_dir/web_view_resources.pak", |
| 78 ] | 90 ] |
| 79 outputs = [ | 91 outputs = [ |
| 80 "{{bundle_resources_dir}}/{{source_file_part}}", | 92 "{{bundle_resources_dir}}/{{source_file_part}}", |
| 81 ] | 93 ] |
| 82 } | 94 } |
| OLD | NEW |