summaryrefslogtreecommitdiffstats
path: root/components/clipboard/BUILD.gn
blob: c7caccf365b3b243d14b7c0b0f6528855e804a3f (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
# Copyright 2014 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("//third_party/mojo/src/mojo/public/mojo_application.gni")

source_set("lib") {
  sources = [
    "clipboard_standalone_impl.cc",
    "clipboard_standalone_impl.h",
  ]

  deps = [
    "//components/clipboard/public/interfaces",
  ]
}

mojo_native_application("clipboard") {
  sources = [
    "main.cc",
  ]

  deps = [
    ":lib",
    "//base",
    "//mojo/application",
    "//mojo/common",
    "//mojo/environment:chromium",
    "//third_party/mojo/src/mojo/public/cpp/bindings",
    "//third_party/mojo/src/mojo/public/cpp/bindings:callback",
  ]
}

mojo_native_application("apptests") {
  output_name = "clipboard_apptests"

  testonly = true

  sources = [
    "clipboard_apptest.cc",
  ]

  deps = [
    "//base",
    "//components/clipboard/public/interfaces",
    "//mojo/application",
    "//mojo/application:test_support",
    "//mojo/common",
    "//third_party/mojo/src/mojo/public/cpp/bindings",
  ]

  data_deps = [ ":clipboard($default_toolchain)" ]
}