| # Copyright 2019 The Fuchsia 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("../gn/testing.gni") |
| |
| config("common_public_config") { |
| # Unlike the sources, clients use "common/..." to include the headers here. |
| include_dirs = [ ".." ] |
| } |
| |
| source_set("common") { |
| public = [ |
| "file_utils.h", |
| "macros.h", |
| "util.h", |
| ] |
| sources = [ |
| "file_utils.c", |
| "file_utils.h", |
| "macros.h", |
| "util.c", |
| "util.h", |
| ] |
| public_configs = [ ":common_public_config" ] |
| } |
| |
| graphics_compute_unittests("common_unittests") { |
| sources = [ |
| "file_utils_unittest.cc", |
| "util_unittests.cc", |
| ] |
| deps = [ |
| ":common", |
| ] |
| } |