1# Copyright 2024 Google, LLC 2# 3# Permission is hereby granted, free of charge, to any person obtaining a 4# copy of this software and associated documentation files (the "Software"), 5# to deal in the Software without restriction, including without limitation 6# the rights to use, copy, modify, merge, publish, distribute, sublicense, 7# and/or sell copies of the Software, and to permit persons to whom the 8# Software is furnished to do so, subject to the following conditions: 9# 10# The above copyright notice and this permission notice (including the next 11# paragraph) shall be included in all copies or substantial portions of the 12# Software. 13# 14# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 20# IN THE SOFTWARE. 21 22import("../../mesa.gni") 23 24util = "$mesa_source_root/src/util" 25 26config("util_public_config") { 27 include_dirs = [ 28 "$mesa_source_root/src", 29 "$mesa_source_root/src/util", 30 ] 31} 32 33mesa_source_set("util") { 34 public_configs = [ ":util_public_config" ] 35 public_deps = [ 36 "$mesa_build_root/include:c_compat", 37 "format", 38 ] 39 deps = [ "$mesa_build_root/src/c11" ] 40 sources = [ 41 "$util/hash_table.c", 42 "$util/hash_table.h", 43 "$util/log.c", 44 "$util/log.h", 45 "$util/os_misc.c", 46 "$util/os_misc.h", 47 "$util/os_time.c", 48 "$util/os_time.h", 49 "$util/ralloc.c", 50 "$util/ralloc.h", 51 "$util/simple_mtx.c", 52 "$util/simple_mtx.h", 53 "$util/sparse_array.c", 54 "$util/sparse_array.h", 55 "$util/u_call_once.c", 56 "$util/u_call_once.h", 57 "$util/u_debug.c", 58 "$util/u_debug.h", 59 "$util/u_dynarray.c", 60 "$util/u_dynarray.h", 61 "$util/u_printf.c", 62 "$util/u_printf.h", 63 "$util/u_process.c", 64 "$util/u_process.h", 65 ] 66} 67