1# Copyright © 2022 Yonggang Luo 2# SPDX-License-Identifier: MIT 3 4inc_util_c11 = [include_directories('../..')] 5 6files_mesa_util_c11 = files( 7 'time.c', 8) 9 10if with_c11_threads 11 # no need implement c11 threads 12elif host_machine.system() == 'windows' 13 files_mesa_util_c11 += 'threads_win32.c' 14 files_mesa_util_c11 += 'threads_win32_tls_callback.cpp' 15else 16 files_mesa_util_c11 += 'threads_posix.c' 17endif 18 19_libmesa_util_c11 = static_library( 20 'mesa_util_c11', 21 [files_mesa_util_c11], 22 include_directories : inc_util_c11, 23 c_args : [c_msvc_compat_args], 24 gnu_symbol_visibility : 'hidden', 25 build_by_default : false 26) 27 28idep_mesautilc11 = declare_dependency( 29 link_with : _libmesa_util_c11, 30 include_directories : inc_util_c11, 31 dependencies : [dep_clock, dep_thread, dep_atomic, dep_m, dep_valgrind], 32) 33