OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 import("//remoting/build/config/remoting_build.gni") | |
6 | |
7 group("all") { | |
8 testonly = true | |
9 | |
10 deps = [ | |
11 ":ios_core", | |
12 "./app:all", | |
13 ] | |
14 } | |
15 | |
16 group("all_test") { | |
17 testonly = true | |
18 | |
19 deps = [ | |
20 ":ios_core_unit_tests", | |
21 ] | |
22 } | |
23 | |
24 source_set("ios_core") { | |
25 sources = [ | |
26 "client_gestures.h", | |
27 "client_gestures.mm", | |
28 "host_preferences.h", | |
29 "host_preferences.mm", | |
30 "host_preferences_persistence.h", | |
31 "key_input.h", | |
32 "key_input.mm", | |
33 "key_map_us.h", | |
34 "keychain_wrapper.h", | |
35 "keychain_wrapper.mm", | |
36 ] | |
37 | |
38 if (!is_chrome_branded) { | |
39 sources += [ "host_preferences_persistence_chromium.mm" ] | |
40 } else { | |
41 # TODO(nicholss): Until we have a private implementation of this, stub it | |
42 # with the chromium version. We still want the logic of is_chrome_branded | |
43 # but to get the release builds building we will just reuse the file. | |
44 sources += [ "host_preferences_persistence_chromium.mm" ] | |
45 } | |
46 | |
47 public_deps = [ | |
48 "//remoting/client/ios/domain", | |
49 "//remoting/client/ios/facade", | |
50 "//remoting/client/ios/session", | |
51 "//third_party/webrtc/base:rtc_base", | |
52 "//third_party/webrtc/modules/desktop_capture:primitives", | |
53 ] | |
54 | |
55 deps = [ | |
56 "//base", | |
57 "//remoting/protocol", | |
58 ] | |
59 | |
60 libs = [ | |
61 "CoreGraphics.framework", | |
62 "GLKit.framework", | |
63 "OpenGLES.framework", | |
64 ] | |
65 | |
66 configs += [ "//build/config/compiler:enable_arc" ] | |
67 } | |
68 | |
69 source_set("ios_core_unit_tests") { | |
70 testonly = true | |
71 | |
72 include_dirs = [ | |
73 "$root_gen_dir", | |
74 "//third_party/protobuf/src", | |
75 ] | |
76 | |
77 sources = [ | |
78 "key_input_unittest.mm", | |
79 ] | |
80 | |
81 deps = [ | |
82 ":ios_core", | |
83 "//testing/gtest", | |
84 ] | |
85 | |
86 configs += [ "//build/config/compiler:enable_arc" ] | |
87 | |
88 data = [] | |
89 } | |
OLD | NEW |