blob: 977b69bec3a6b8ed06958a30e65a55237084b99b [file] [log] [blame]
# 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/build_rules.gni")
config("common_public_config") {
# Unlike the sources, clients use "common/..." to include the headers here.
include_dirs = [ ".." ]
}
static_library("common") {
output_name = "compute_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" ]
configs += [
# TODO(fxb/58162): delete the below and fix compiler warnings
"//build/config:Wno-conversion",
]
}
graphics_compute_unittests("common_unittests") {
sources = [
"file_utils_unittest.cc",
"util_unittests.cc",
]
deps = [ ":common" ]
}