Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: remoting/ios/app/remoting_ios_tmpl.gni

Issue 2934593002: [CRD iOS] Define template for the CRD iOS target (Closed)
Patch Set: Add the target_name prefix Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/ios/app/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_source_set") {
14 source_set(target_name) {
15 _sources = [
16 "app_delegate.h",
17 "app_delegate.mm",
18 "client_connection_view_controller.h",
19 "client_connection_view_controller.mm",
20 "host_collection_header_view.h",
21 "host_collection_header_view.mm",
22 "host_collection_view_cell.h",
23 "host_collection_view_cell.mm",
24 "host_collection_view_controller.h",
25 "host_collection_view_controller.mm",
26 "host_view_controller.h",
27 "host_view_controller.mm",
28 "main.mm",
29 "pin_entry_view.h",
30 "pin_entry_view.mm",
31 "remoting_settings_view_controller.h",
32 "remoting_settings_view_controller.mm",
33 "remoting_theme.h",
34 "remoting_theme.mm",
35 "remoting_view_controller.h",
36 "remoting_view_controller.mm",
37 ]
38 sources = rebase_path(_sources, ".", remoting_ios_app_source_dir)
39
40 if (defined(invoker.sources)) {
41 sources += invoker.sources
42 }
43
44 deps = [
45 "//base",
46 "//google_apis",
47 "//remoting/base",
48 "//remoting/client",
49 "//remoting/client/input",
50 "//remoting/ios:ios_core",
51 "//remoting/protocol",
52 "//ui/base",
53 "//ui/gfx",
54 "//ui/resources",
55 ]
56
57 if (defined(invoker.deps)) {
58 deps += invoker.deps
59 }
60
61 public_deps = [
62 "//ios/third_party/material_components_ios",
63 ]
64
65 configs += [ "//build/config/compiler:enable_arc" ]
66 }
67 }
68
69 template("ios_remoting_app_tmpl") {
70 info_plist_target_name = "${target_name}_tweak_info_plist"
71 tweak_info_plist(info_plist_target_name) {
72 info_plist = "//remoting/ios/app/resources/Info.plist"
73 args = [ "--platform=ios" ]
74 }
75
76 launchscreen_storyboard_target_name = "${target_name}_launchscreen_storyboard"
77 bundle_data_ib_file(launchscreen_storyboard_target_name) {
78 # TODO(yuweih): Need different launch screen for official build?
nicholss 2017/06/09 21:36:54 The launch screens stays the same and the images i
Yuwei 2017/06/09 21:53:19 Okay... Removed it for now.
79 source = rebase_path("resources/LaunchScreen.storyboard",
80 ".",
81 remoting_ios_app_source_dir)
82 }
83
84 ios_app_bundle(target_name) {
85 output_name = invoker.output_name
86
87 entitlements_path = invoker.entitlements_path
88 info_plist_target = ":$info_plist_target_name"
89
90 extra_substitutions = [
91 "BUNDLE_IDENTIFIER=$remoting_ios_bundle_id",
92 "DISPLAY_NAME=$remoting_ios_display_name",
93 "EXECUTABLE_NAME=$remoting_ios_executable_name",
94 "MINIMUM_OS_VERSION=7.0",
95 "PRODUCT_NAME=$remoting_ios_product_name",
96 "VERSION_FULL=$remoting_version_full",
97 "VERSION_SHORT=$remoting_version_short",
98 ]
99
100 libs = [
101 "Accelerate.framework",
102 "AudioToolbox.framework",
103 "CoreAudio.framework",
104 "CoreData.framework",
105 "CoreMIDI.framework",
106 "CoreVideo.framework",
107 "GLKit.framework",
108 "OpenGLES.framework",
109 "Webkit.framework",
110 "SafariServices.framework",
111 "SystemConfiguration.framework",
112 ]
113
114 deps = [
115 "//base",
116 "//remoting/ios/app/resources:assets",
117 "//remoting/ios/app/resources:launchscreen_assets",
118 "//remoting/ios/app/resources:remoting_icons",
119 "//remoting/ios/display",
120 ]
121
122 deps += [ invoker.remoting_source_set ]
123
124 bundle_deps = [ ":$launchscreen_storyboard_target_name" ]
125 }
126 }
OLDNEW
« no previous file with comments | « remoting/ios/app/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698