summaryrefslogtreecommitdiff
path: root/chromium/remoting/ios/facade/BUILD.gn
blob: f80665afbb6973112d4bcdf2f97c3701179ac045 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright 2017 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("//build/config/chrome_build.gni")
import("//build/config/ios/rules.gni")
import("//remoting/build/config/remoting_build.gni")

source_set("facade") {
  sources = [
    "directory_client.cc",
    "directory_client.h",
    "host_list_service.h",
    "host_list_service.mm",
    "ios_client_runtime_delegate.h",
    "ios_client_runtime_delegate.mm",
    "ios_oauth_token_getter.h",
    "ios_oauth_token_getter.mm",
    "remoting_authentication.h",
    "remoting_oauth_authentication.h",
    "remoting_oauth_authentication.mm",
    "remoting_service.h",
    "remoting_service.mm",
  ]

  deps = [
    "//base",
    "//ios/third_party/material_components_ios",
    "//remoting/base:authorization",
    "//remoting/client",
    "//remoting/ios/domain",
    "//remoting/ios/persistence",
    "//remoting/proto/remoting/v1:directory_grpc_library",
    "//remoting/resources",
    "//remoting/signaling",
    "//ui/base",
  ]

  libs = [ "CoreFoundation.framework" ]

  public_deps = [
    "//remoting/base",
    "//remoting/proto/remoting/v1:directory_proto",
  ]

  configs += [ "//build/config/compiler:enable_arc" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [ "host_list_service_unittest.mm" ]
  deps = [
    ":facade",
    "//remoting/base/grpc_test_support",
    "//remoting/proto/remoting/v1:directory_grpc_library",
    "//testing/gmock",
    "//testing/gtest",
    "//third_party/ocmock",
  ]

  configs += [ "//build/config/compiler:enable_arc" ]
}