| # 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", |
| ] |
| } |