blob: 3b297b0784a48c59ce45c8fcfafddf3fd46bf8b0 [file] [log] [blame]
# Copyright 2021 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("../../mesa.gni")
mesa_source_set("gbm_src") {
defines = [ "USE_MAGMA=1" ]
sources = [
"backends/magma/gbm_magma.c",
"main/gbm.c",
"main/backend.c",
]
include_dirs = [
"main",
"//third_party/mesa/include",
]
deps = [
"//src/graphics/lib/magma/src/libmagma_virt",
]
cflags_c = [ "-Wno-strict-prototypes" ]
}
shared_library("gbm") {
public_deps = [ "//third_party/mesa/include:gbm-header" ]
deps = [ ":gbm_src" ]
}