| # 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 = [ |
| "$magma_build_root/src/libmagma_virt", |
| ] |
| |
| cflags_c = [ "-Wno-strict-prototypes" ] |
| } |
| |
| shared_library("gbm") { |
| public_deps = [ "//third_party/mesa/include:gbm-header" ] |
| deps = [ ":gbm_src" ] |
| } |