1# Copyright 2019 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
5if (is_android) {
6  import("//build/config/android/config.gni")
7  import("//build/config/android/rules.gni")
8  import("//third_party/protobuf/proto_library.gni")
9}
10
11source_set("cc") {
12  deps = [
13    "//base",
14    "//cc",
15    "//chrome/browser/image_decoder",
16    "//chrome/common",
17    "//chrome/services/media_gallery_util/public/cpp",
18    "//chrome/services/media_gallery_util/public/mojom",
19    "//content/public/browser",
20    "//media",
21    "//mojo/public/cpp/bindings",
22    "//skia",
23    "//ui/gfx",
24  ]
25
26  sources = [
27    "scoped_ptr_expiring_cache.h",
28    "thumbnail.cc",
29    "thumbnail.h",
30    "thumbnail_cache.cc",
31    "thumbnail_cache.h",
32  ]
33
34  if (is_android) {
35    deps += [
36      "//third_party/android_opengl/etc1",
37      "//ui/android",
38    ]
39  }
40}
41
42source_set("unit_tests") {
43  testonly = true
44
45  deps = [
46    ":cc",
47    "//base",
48    "//testing/gmock",
49    "//testing/gtest",
50  ]
51
52  sources = [ "scoped_ptr_expiring_cache_unittest.cc" ]
53}
54