blob: 0407dec7e8174c1fb7387c3ef3ddaae85017443f [file] [log] [blame]
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//tools/grit/repack.gni")
import("//build/config/ios/rules.gni")
ios_app_bundle("ios_web_view_shell") {
configs += [ "//build/config/compiler:enable_arc" ]
deps = [
"//base",
"//ios/web_view",
]
bundle_deps = [
":resources",
":packed_resources",
]
info_plist = "Info.plist"
sources = [
"shell_app_delegate.h",
"shell_app_delegate.m",
"shell_delegate.h",
"shell_delegate.m",
"shell_exe_main.m",
"shell_view_controller.h",
"shell_view_controller.m",
"translate_controller.h",
"translate_controller.m",
]
libs = [
"CFNetwork.framework",
"CoreFoundation.framework",
"CoreGraphics.framework",
"CoreText.framework",
"Foundation.framework",
"ImageIO.framework",
"MobileCoreServices.framework",
"Security.framework",
"SystemConfiguration.framework",
"UIKit.framework",
"WebKit.framework",
"resolv",
]
}
bundle_data("resources") {
visibility = [ ":ios_web_view_shell" ]
sources = [
"Default-568h@2x.png",
"textfield_background@2x.png",
"toolbar_back@2x.png",
"toolbar_forward@2x.png",
"toolbar_stop@2x.png",
]
outputs = [
"{{bundle_resources_dir}}/{{source_file_part}}",
]
}
repack("repack_resources") {
visibility = [ ":packed_resources" ]
deps = [
"//components/resources:components_resources",
]
sources = [
"$root_gen_dir/components/components_resources.pak",
]
output = "$target_gen_dir/web_view_resources.pak"
}
bundle_data("packed_resources") {
visibility = [ ":ios_web_view_shell" ]
public_deps = [
":repack_resources",
]
sources = [
"$target_gen_dir/web_view_resources.pak",
]
outputs = [
"{{bundle_resources_dir}}/{{source_file_part}}",
]
}