OLD | NEW |
(Empty) | |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//build/config/chrome_build.gni") |
| 6 import("//build/config/ios/rules.gni") |
| 7 import("//build/mac/tweak_info_plist.gni") |
| 8 import("//build/util/process_version.gni") |
| 9 import("//remoting/build/config/remoting_build.gni") |
| 10 |
| 11 remoting_ios_app_source_dir = get_path_info("./", "abspath") |
| 12 |
| 13 template("ios_remoting_app_tmpl") { |
| 14 info_plist_target_name = "${target_name}_tweak_info_plist" |
| 15 tweak_info_plist(info_plist_target_name) { |
| 16 info_plist = "//remoting/ios/app/resources/Info.plist" |
| 17 args = [ "--platform=ios" ] |
| 18 } |
| 19 |
| 20 launchscreen_storyboard_target_name = "${target_name}_launchscreen_storyboard" |
| 21 bundle_data_ib_file(launchscreen_storyboard_target_name) { |
| 22 source = rebase_path("resources/LaunchScreen.storyboard", |
| 23 ".", |
| 24 remoting_ios_app_source_dir) |
| 25 } |
| 26 |
| 27 ios_app_bundle(target_name) { |
| 28 output_name = invoker.output_name |
| 29 |
| 30 entitlements_path = invoker.entitlements_path |
| 31 info_plist_target = ":$info_plist_target_name" |
| 32 |
| 33 extra_substitutions = [ |
| 34 "BUNDLE_IDENTIFIER=$remoting_ios_bundle_id", |
| 35 "DISPLAY_NAME=$remoting_ios_display_name", |
| 36 "EXECUTABLE_NAME=$remoting_ios_executable_name", |
| 37 "MINIMUM_OS_VERSION=7.0", |
| 38 "PRODUCT_NAME=$remoting_ios_product_name", |
| 39 "VERSION_FULL=$remoting_version_full", |
| 40 "VERSION_SHORT=$remoting_version_short", |
| 41 ] |
| 42 |
| 43 libs = [ |
| 44 "Accelerate.framework", |
| 45 "AudioToolbox.framework", |
| 46 "CoreAudio.framework", |
| 47 "CoreData.framework", |
| 48 "CoreMIDI.framework", |
| 49 "CoreVideo.framework", |
| 50 "GLKit.framework", |
| 51 "OpenGLES.framework", |
| 52 "Webkit.framework", |
| 53 "SafariServices.framework", |
| 54 "SystemConfiguration.framework", |
| 55 ] |
| 56 |
| 57 deps = [ |
| 58 "//base", |
| 59 "//remoting/ios/app/resources:assets", |
| 60 "//remoting/ios/app/resources:launchscreen_assets", |
| 61 "//remoting/ios/app/resources:remoting_icons", |
| 62 "//remoting/ios/display", |
| 63 ] |
| 64 |
| 65 deps += [ invoker.remoting_source_set ] |
| 66 |
| 67 bundle_deps = [ ":$launchscreen_storyboard_target_name" ] |
| 68 } |
| 69 } |
OLD | NEW |