summaryrefslogtreecommitdiff
path: root/chromium/ios/web/public/deprecated/BUILD.gn
blob: 076ea3e3f44441842dd2a2ce13d8da58bd7d55f1 (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
63
64
# Copyright 2019 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("//ios/build/config.gni")

source_set("deprecated") {
  configs += [ "//build/config/compiler:enable_arc" ]

  deps = [
    "//base",
    "//ios/web/public:web_state_observer",
    "//url",
  ]
  sources = [
    "crw_js_injection_evaluator.h",
    "crw_js_injection_manager.h",
    "crw_js_injection_receiver.h",
    "global_web_state_observer.h",
    "url_verification_constants.h",
  ]
}

# A separate target is needed for util to prevent cyclic dependency, as
# "web_state:web_state_impl_header" depends on ":deprecated" target.
source_set("deprecated_web_util") {
  configs += [ "//build/config/compiler:enable_arc" ]

  deps = [
    ":deprecated",
    "//ios/web/public",
    "//ios/web/web_state:web_state_impl_header",
    "//ios/web/web_state/ui",
  ]
  sources = [
    "crw_web_controller_util.h",
    "crw_web_controller_util.mm",
  ]
}

source_set("deprecated_navigation_util") {
  configs += [ "//build/config/compiler:enable_arc" ]

  sources = [
    "navigation_item_list.h",
    "navigation_item_list.mm",
  ]
}

source_set("test_doubles") {
  configs += [ "//build/config/compiler:enable_arc" ]

  deps = [
    ":deprecated",
    "//ios/web/js_messaging",
    "//ios/web/public",
    "//url",
  ]

  sources = [
    "crw_test_js_injection_receiver.h",
    "crw_test_js_injection_receiver.mm",
  ]
}