OLD | NEW |
1 # Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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/chrome_build.gni") | 5 import("//remoting/ios/app/remoting_ios_tmpl.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 | 6 |
11 group("all") { | 7 group("all") { |
12 testonly = true | 8 testonly = true |
13 | 9 |
14 deps = [ | 10 deps = [ |
15 ":ios_remoting_app", | 11 ":ios_remoting_app", |
16 ] | 12 ] |
17 } | 13 } |
18 | 14 |
19 source_set("main") { | 15 # source set to be used by both external and internal app. |
| 16 source_set("common_source_set") { |
20 sources = [ | 17 sources = [ |
21 "app_delegate.h", | 18 "app_delegate.h", |
22 "app_delegate.mm", | 19 "app_delegate.mm", |
23 "client_connection_view_controller.h", | 20 "client_connection_view_controller.h", |
24 "client_connection_view_controller.mm", | 21 "client_connection_view_controller.mm", |
25 "host_collection_header_view.h", | 22 "host_collection_header_view.h", |
26 "host_collection_header_view.mm", | 23 "host_collection_header_view.mm", |
27 "host_collection_view_cell.h", | 24 "host_collection_view_cell.h", |
28 "host_collection_view_cell.mm", | 25 "host_collection_view_cell.mm", |
29 "host_collection_view_controller.h", | 26 "host_collection_view_controller.h", |
30 "host_collection_view_controller.mm", | 27 "host_collection_view_controller.mm", |
31 "host_view_controller.h", | 28 "host_view_controller.h", |
32 "host_view_controller.mm", | 29 "host_view_controller.mm", |
33 "main.mm", | |
34 "pin_entry_view.h", | 30 "pin_entry_view.h", |
35 "pin_entry_view.mm", | 31 "pin_entry_view.mm", |
36 "remoting_settings_view_controller.h", | 32 "remoting_settings_view_controller.h", |
37 "remoting_settings_view_controller.mm", | 33 "remoting_settings_view_controller.mm", |
38 "remoting_theme.h", | 34 "remoting_theme.h", |
39 "remoting_theme.mm", | 35 "remoting_theme.mm", |
40 "remoting_view_controller.h", | 36 "remoting_view_controller.h", |
41 "remoting_view_controller.mm", | 37 "remoting_view_controller.mm", |
42 ] | 38 ] |
43 | 39 |
(...skipping 10 matching lines...) Expand all Loading... |
54 "//ui/resources", | 50 "//ui/resources", |
55 ] | 51 ] |
56 | 52 |
57 public_deps = [ | 53 public_deps = [ |
58 "//ios/third_party/material_components_ios", | 54 "//ios/third_party/material_components_ios", |
59 ] | 55 ] |
60 | 56 |
61 configs += [ "//build/config/compiler:enable_arc" ] | 57 configs += [ "//build/config/compiler:enable_arc" ] |
62 } | 58 } |
63 | 59 |
64 tweak_info_plist("tweak_info_plist") { | 60 source_set("main") { |
65 info_plist = "//remoting/ios/app/resources/Info.plist" | 61 sources = [ |
66 args = [ "--platform=ios" ] | 62 "main.mm", |
| 63 ] |
| 64 deps = [ |
| 65 ":common_source_set", |
| 66 ] |
| 67 configs += [ "//build/config/compiler:enable_arc" ] |
67 } | 68 } |
68 | 69 |
69 ios_app_bundle("ios_remoting_app") { | 70 ios_remoting_app_tmpl("ios_remoting_app") { |
70 output_name = "$remoting_ios_executable_name" | 71 output_name = "chromoting" |
71 | |
72 entitlements_path = "resources/Remoting.entitlements" | 72 entitlements_path = "resources/Remoting.entitlements" |
73 info_plist_target = ":tweak_info_plist" | 73 remoting_source_set = ":main" |
74 | |
75 extra_substitutions = [ | |
76 "BUNDLE_IDENTIFIER=$remoting_ios_bundle_id", | |
77 "DISPLAY_NAME=$remoting_ios_display_name", | |
78 "EXECUTABLE_NAME=$remoting_ios_executable_name", | |
79 "MINIMUM_OS_VERSION=7.0", | |
80 "PRODUCT_NAME=$remoting_ios_product_name", | |
81 "VERSION_FULL=$remoting_version_full", | |
82 "VERSION_SHORT=$remoting_version_short", | |
83 ] | |
84 | |
85 libs = [ | |
86 "Accelerate.framework", | |
87 "AudioToolbox.framework", | |
88 "CoreAudio.framework", | |
89 "CoreData.framework", | |
90 "CoreMIDI.framework", | |
91 "CoreVideo.framework", | |
92 "GLKit.framework", | |
93 "OpenGLES.framework", | |
94 "Webkit.framework", | |
95 "SafariServices.framework", | |
96 "SystemConfiguration.framework", | |
97 ] | |
98 | |
99 deps = [ | |
100 ":main", | |
101 "//base", | |
102 "//remoting/ios/app/resources:assets", | |
103 "//remoting/ios/app/resources:launchscreen_assets", | |
104 "//remoting/ios/app/resources:remoting_icons", | |
105 "//remoting/ios/display", | |
106 ] | |
107 | |
108 bundle_deps = [ ":launchscreen_storyboard" ] | |
109 } | 74 } |
110 | |
111 bundle_data_ib_file("launchscreen_storyboard") { | |
112 source = "resources/LaunchScreen.storyboard" | |
113 } | |
OLD | NEW |