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
|
# 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.
assert(is_mac)
import("//testing/test.gni")
component("metal_util") {
output_name = "metal"
defines = [ "METAL_UTIL_IMPLEMENTATION" ]
sources = [
"device.h",
"device.mm",
"device_removal.h",
"device_removal.mm",
"hdr_copier_layer.h",
"hdr_copier_layer.mm",
"metal_util_export.h",
"switches.cc",
"switches.h",
"test_shader.h",
"test_shader.mm",
"types.h",
]
deps = [
"//base",
"//components/crash/core/common:crash_key",
"//skia:skcms",
"//ui/gfx",
]
frameworks = [
"Cocoa.framework",
"IOSurface.framework",
"QuartzCore.framework",
]
weak_frameworks = [
"Metal.framework",
"MetalKit.framework",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "test_shader_unittest.cc" ]
deps = [
":metal_util",
"//base",
"//testing/gtest",
]
}
|