libamdgpu_addrlib = static_library(
'addrlib',
files_addrlib,
- include_directories : include_directories(
- 'core', 'inc/chip/gfx9', 'inc/chip/r800', 'gfx9/chip', 'r800/chip',
- '../common', '../../'),
+ include_directories : [
+ include_directories(
+ 'core', 'inc/chip/gfx9', 'inc/chip/r800', 'gfx9/chip', 'r800/chip',
+ '../common', '../../',
+ ),
+ ],
cpp_args : cpp_vis_args,
)
libamd_common = static_library(
'amd_common',
[amd_common_files, sid_tables_h, nir_opcodes_h],
- include_directories : [inc_common, inc_compiler, inc_nir, inc_mesa, inc_mapi,
- inc_amd],
- dependencies : [dep_llvm, dep_thread, dep_elf, dep_libdrm_amdgpu,
- dep_valgrind],
+ include_directories : [
+ inc_common, inc_compiler, inc_nir, inc_mesa, inc_mapi, inc_amd,
+ ],
+ dependencies : [
+ dep_llvm, dep_thread, dep_elf, dep_libdrm_amdgpu, dep_valgrind,
+ ],
c_args : [c_vis_args],
cpp_args : [cpp_vis_args],
)
'radv_entrypoints.[ch]',
input : ['radv_entrypoints_gen.py', vk_api_xml],
output : ['radv_entrypoints.h', 'radv_entrypoints.c'],
- command : [prog_python2, '@INPUT0@', '--xml', '@INPUT1@',
- '--outdir', meson.current_build_dir()],
+ command : [
+ prog_python2, '@INPUT0@', '--xml', '@INPUT1@', '--outdir',
+ meson.current_build_dir()
+ ],
depend_files : files('radv_extensions.py'),
)
'radv_extensions.c',
input : ['radv_extensions.py', vk_api_xml],
output : ['radv_extensions.c'],
- command : [prog_python2, '@INPUT0@', '--xml', '@INPUT1@',
- '--out', '@OUTPUT@'],
+ command : [
+ prog_python2, '@INPUT0@', '--xml', '@INPUT1@', '--out', '@OUTPUT@',
+ ],
)
vk_format_table_c = custom_target(
libvulkan_radeon = shared_library(
'vulkan_radeon',
- [libradv_files, radv_entrypoints, radv_extensions_c, nir_opcodes_h, vk_format_table_c],
- include_directories : [inc_common, inc_amd, inc_amd_common, inc_compiler,
- inc_vulkan_util, inc_vulkan_wsi],
- link_with : [libamd_common, libamdgpu_addrlib, libvulkan_util,
- libvulkan_wsi, libnir, libmesa_util],
- dependencies : [dep_llvm, dep_libdrm_amdgpu, dep_thread, dep_elf, dep_dl,
- dep_m, dep_valgrind],
+ [libradv_files, radv_entrypoints, radv_extensions_c, nir_opcodes_h,
+ vk_format_table_c],
+ include_directories : [
+ inc_common, inc_amd, inc_amd_common, inc_compiler, inc_vulkan_util,
+ inc_vulkan_wsi,
+ ],
+ link_with : [
+ libamd_common, libamdgpu_addrlib, libvulkan_util, libvulkan_wsi, libnir,
+ libmesa_util,
+ ],
+ dependencies : [
+ dep_llvm, dep_libdrm_amdgpu, dep_thread, dep_elf, dep_dl, dep_m,
+ dep_valgrind,
+ ],
c_args : [c_vis_args, no_override_init_args, radv_flags],
link_args : [ld_args_bsymbolic, ld_args_gc_sections],
install : true,
libbroadcom_vc5 = static_library(
'libbroadcom_vc5',
[
- files(
- 'common/v3d_debug.c',
- 'clif/clif_dump.c',
- ),
+ files('common/v3d_debug.c', 'clif/clif_dump.c'),
v3d_xml_pack,
],
include_directories : [inc_common, inc_broadcom, inc_src],
'glcpp-parse.[ch]',
input : 'glcpp-parse.y',
output : ['glcpp-parse.c', 'glcpp-parse.h'],
- command : [prog_bison, '-o', '@OUTPUT0@', '-p', 'glcpp_parser_',
- '--defines=@OUTPUT1@', '@INPUT@'],
+ command : [
+ prog_bison, '-o', '@OUTPUT0@', '-p', 'glcpp_parser_',
+ '--defines=@OUTPUT1@', '@INPUT@',
+ ],
)
glcpp_lex = custom_target(
'glsl_parser',
input : 'glsl_parser.yy',
output : ['glsl_parser.cpp', 'glsl_parser.h'],
- command : [prog_bison, '-o', '@OUTPUT0@', '-p', '_mesa_glsl_',
- '--defines=@OUTPUT1@', '@INPUT@'],
+ command : [
+ prog_bison, '-o', '@OUTPUT0@', '-p', '_mesa_glsl_', '--defines=@OUTPUT1@',
+ '@INPUT@',
+ ],
)
glsl_lexer_cpp = custom_target(
'ir3_nir_trig.c',
input : 'ir3/ir3_nir_trig.py',
output : 'ir3_nir_trig.c',
- command : [prog_python2, '@INPUT@', '-p',
- join_paths(meson.source_root(), 'src/compiler/nir/')],
+ command : [
+ prog_python2, '@INPUT@',
+ '-p', join_paths(meson.source_root(), 'src/compiler/nir/'),
+ ],
capture : true,
depend_files : nir_algebraic_py,
)
c_vis_args, gl_lib_cargs,
'-DGL_LIB_NAME="lib@0@.so.@1@"'.format(gl_lib_name, gl_lib_version.split('.')[0]),
],
- link_with : [libloader, libloader_dri3_helper, libmesa_util, libxmlconfig, extra_libs_libglx],
+ link_with : [
+ libloader, libloader_dri3_helper, libmesa_util, libxmlconfig,
+ extra_libs_libglx,
+ ],
dependencies : [dep_libdrm, dep_dri2proto, dep_glproto, dep_x11, dep_glvnd],
build_by_default : false,
)
'brw_nir_trig_workarounds.c',
input : 'brw_nir_trig_workarounds.py',
output : 'brw_nir_trig_workarounds.c',
- command : [prog_python2, '@INPUT@', '-p',
- join_paths(meson.source_root(), 'src/compiler/nir/')],
+ command : [
+ prog_python2, '@INPUT@',
+ '-p', join_paths(meson.source_root(), 'src/compiler/nir/'),
+ ],
depend_files : nir_algebraic_py,
capture : true,
)
'anv_entrypoints.[ch]',
input : ['anv_entrypoints_gen.py', vk_api_xml, vk_android_native_buffer_xml],
output : ['anv_entrypoints.h', 'anv_entrypoints.c'],
- command : [prog_python2, '@INPUT0@', '--xml', '@INPUT1@',
- '--xml', '@INPUT2@', '--outdir', meson.current_build_dir()],
+ command : [
+ prog_python2, '@INPUT0@', '--xml', '@INPUT1@', '--xml', '@INPUT2@',
+ '--outdir', meson.current_build_dir(),
+ ],
depend_files : files('anv_extensions.py'),
)
'anv_extensions.c',
input : ['anv_extensions.py', vk_api_xml, vk_android_native_buffer_xml],
output : 'anv_extensions.c',
- command : [prog_python2, '@INPUT0@', '--xml', '@INPUT1@',
- '--xml', '@INPUT2@', '--out', '@OUTPUT@'],
+ command : [
+ prog_python2, '@INPUT0@', '--xml', '@INPUT1@', '--xml', '@INPUT2@',
+ '--out', '@OUTPUT@',
+ ],
)
intel_icd = custom_target(
'intel_icd',
input : 'anv_icd.py',
output : 'intel_icd.@0@.json'.format(host_machine.cpu()),
- command : [prog_python2, '@INPUT@',
- '--lib-path', join_paths(get_option('prefix'), get_option('libdir')),
- '--out', '@OUTPUT@'],
+ command : [
+ prog_python2, '@INPUT@',
+ '--lib-path', join_paths(get_option('prefix'), get_option('libdir')),
+ '--out', '@OUTPUT@',
+ ],
depend_files : files('anv_extensions.py'),
build_by_default : true,
install_dir : with_vulkan_icd_dir,
'dev_icd',
input : 'anv_icd.py',
output : 'dev_icd.@0@.json'.format(host_machine.cpu()),
- command : [prog_python2, '@INPUT@',
- '--lib-path', meson.current_build_dir(),
- '--out', '@OUTPUT@'],
+ command : [
+ prog_python2, '@INPUT@', '--lib-path', meson.current_build_dir(),
+ '--out', '@OUTPUT@'
+ ],
depend_files : files('anv_extensions.py'),
build_by_default : true,
install : false,
_files = g[1]
_lib = static_library(
'libanv_gen@0@'.format(_gen),
- [anv_gen_files, _files, block_entrypoints, nir_opcodes_h],
- include_directories : [inc_common, inc_compiler, inc_drm_uapi, inc_intel,
- inc_vulkan_util, inc_vulkan_wsi],
- c_args : [c_vis_args, no_override_init_args, '-msse2',
- '-DGEN_VERSIONx10=@0@'.format(_gen)],
+ [anv_gen_files, _files, block_entrypoints],
+ include_directories : [
+ inc_common, inc_compiler, inc_drm_uapi, inc_intel, inc_vulkan_util,
+ inc_vulkan_wsi,
+ ],
+ c_args : [
+ c_vis_args, no_override_init_args, '-msse2',
+ '-DGEN_VERSIONx10=@0@'.format(_gen),
+ ],
dependencies : [dep_libdrm, dep_valgrind],
)
libanv_gen_libs += _lib
libanv_common = static_library(
'anv_common',
[libanv_files, anv_entrypoints, anv_extensions_c, nir_opcodes_h],
- include_directories : [inc_common, inc_intel, inc_compiler, inc_drm_uapi,
- inc_vulkan_util, inc_vulkan_wsi],
+ include_directories : [
+ inc_common, inc_intel, inc_compiler, inc_drm_uapi, inc_vulkan_util,
+ inc_vulkan_wsi,
+ ],
c_args : [c_vis_args, no_override_init_args, '-msse2', anv_flags],
dependencies : [dep_valgrind, anv_deps, dep_libdrm],
)
libvulkan_intel = shared_library(
'vulkan_intel',
[files('anv_gem.c'), block_entrypoints],
- include_directories : [inc_common, inc_intel, inc_compiler, inc_drm_uapi,
- inc_vulkan_util, inc_vulkan_wsi],
+ include_directories : [
+ inc_common, inc_intel, inc_compiler, inc_drm_uapi, inc_vulkan_util,
+ inc_vulkan_wsi,
+ ],
link_whole : [libanv_common, libanv_gen_libs],
- link_with : [libintel_compiler, libintel_common, libisl, libblorp,
- libvulkan_util, libvulkan_wsi, libnir, libmesa_util],
+ link_with : [
+ libintel_compiler, libintel_common, libisl, libblorp, libvulkan_util,
+ libvulkan_wsi, libnir, libmesa_util,
+ ],
dependencies : [dep_libdrm, dep_thread, dep_dl, dep_m, anv_deps, dep_valgrind],
c_args : [c_vis_args, no_override_init_args, '-msse2', anv_flags],
link_args : ['-Wl,--build-id=sha1', ld_args_bsymbolic, ld_args_gc_sections],
libvulkan_intel_test = static_library(
'vulkan_intel_test',
[files('anv_gem_stubs.c'), block_entrypoints],
- include_directories : [inc_common, inc_intel, inc_compiler, inc_drm_uapi,
- inc_vulkan_util, inc_vulkan_wsi],
+ include_directories : [
+ inc_common, inc_intel, inc_compiler, inc_drm_uapi, inc_vulkan_util,
+ inc_vulkan_wsi,
+ ],
link_whole : libanv_common,
- link_with : [libanv_gen_libs, libintel_compiler, libintel_common,
- libisl, libblorp, libvulkan_util, libvulkan_wsi,
- libnir, libmesa_util],
- dependencies : [dep_libdrm, dep_thread, dep_dl, dep_m, anv_deps,
- dep_valgrind],
+ link_with : [
+ libanv_gen_libs, libintel_compiler, libintel_common, libisl, libblorp,
+ libvulkan_util, libvulkan_wsi, libnir, libmesa_util,
+ ],
+ dependencies : [
+ dep_libdrm, dep_thread, dep_dl, dep_m, anv_deps, dep_valgrind,
+ ],
c_args : [c_vis_args, no_override_init_args, '-msse2', anv_flags],
)
['tests/@0@.c'.format(t), dummy_cpp, block_entrypoints],
link_with : libvulkan_intel_test,
dependencies : [dep_libdrm, dep_thread, dep_m, dep_valgrind],
- include_directories : [inc_common, inc_intel, inc_compiler,
- inc_vulkan_util, inc_vulkan_wsi],
+ include_directories : [
+ inc_common, inc_intel, inc_compiler, inc_vulkan_util, inc_vulkan_wsi,
+ ],
)
test('anv_@0@'.format(t), _exe)
endforeach
libglesv1_cm = shared_library(
'GLESv1_CM',
['../entry.c', es1_glapi_mapi_tmp_h],
- c_args : [c_msvc_compat_args, c_vis_args, '-DMAPI_MODE_BRIDGE',
- '-DMAPI_ABI_HEADER="@0@"'.format(es1_glapi_mapi_tmp_h.full_path())],
+ c_args : [
+ c_msvc_compat_args, c_vis_args, '-DMAPI_MODE_BRIDGE',
+ '-DMAPI_ABI_HEADER="@0@"'.format(es1_glapi_mapi_tmp_h.full_path()),
+ ],
link_args : [ld_args_gc_sections],
include_directories : [inc_src, inc_include, inc_mapi],
link_with : libglapi,
libgles2 = shared_library(
'GLESv2',
['../entry.c', es2_glapi_mapi_tmp_h],
- c_args : [c_msvc_compat_args, c_vis_args, '-DMAPI_MODE_BRIDGE',
- '-DMAPI_ABI_HEADER="@0@"'.format(es2_glapi_mapi_tmp_h.full_path())],
+ c_args : [
+ c_msvc_compat_args, c_vis_args, '-DMAPI_MODE_BRIDGE',
+ '-DMAPI_ABI_HEADER="@0@"'.format(es2_glapi_mapi_tmp_h.full_path()),
+ ],
link_args : [ld_args_gc_sections],
include_directories : [inc_src, inc_include, inc_mapi],
link_with : libglapi,
libglapi = shared_library(
'glapi',
[files_mapi_glapi, files_mapi_util, shared_glapi_mapi_tmp_h],
- c_args : [c_msvc_compat_args, '-DMAPI_MODE_GLAPI',
- '-DMAPI_ABI_HEADER="@0@"'.format(shared_glapi_mapi_tmp_h.full_path())],
+ c_args : [
+ c_msvc_compat_args, '-DMAPI_MODE_GLAPI',
+ '-DMAPI_ABI_HEADER="@0@"'.format(shared_glapi_mapi_tmp_h.full_path()),
+ ],
link_args : [ld_args_gc_sections],
include_directories : [inc_src, inc_include, inc_mapi],
dependencies : [dep_thread, dep_selinux],
'libi965_gen@0@'.format(v),
['genX_blorp_exec.c', 'genX_state_upload.c', nir_opcodes_h, gen_xml_pack],
include_directories : [inc_common, inc_intel, inc_dri_common],
- c_args : [c_vis_args, no_override_init_args, '-msse2',
- '-DGEN_VERSIONx10=@0@'.format(v)],
+ c_args : [
+ c_vis_args, no_override_init_args, '-msse2',
+ '-DGEN_VERSIONx10=@0@'.format(v),
+ ],
dependencies : [dep_libdrm],
)
i965_gen_libs += _lib
oa_generator = generator(
prog_python2,
- arguments : ['@CURRENT_SOURCE_DIR@/brw_oa.py', '@INPUT@',
- '--chipset', '@EXTRA_ARGS@', '--code', '@OUTPUT0@',
- '--header', '@OUTPUT1@'],
+ arguments : [
+ '@CURRENT_SOURCE_DIR@/brw_oa.py', '@INPUT@', '--chipset', '@EXTRA_ARGS@',
+ '--code', '@OUTPUT0@', '--header', '@OUTPUT1@',
+ ],
output : ['@BASENAME@.c', '@BASENAME@.h'],
)
'i965',
[files_i965, i965_oa_sources, nir_opcodes_h, ir_expression_operation_h,
xmlpool_options_h],
- include_directories : [inc_common, inc_intel, inc_dri_common, inc_util,
- inc_drm_uapi, inc_nir],
+ include_directories : [
+ inc_common, inc_intel, inc_dri_common, inc_util, inc_drm_uapi, inc_nir,
+ ],
c_args : [c_vis_args, no_override_init_args, '-msse2'],
cpp_args : [cpp_vis_args, '-msse2'],
- link_with : [i965_gen_libs, libintel_common, libisl, libintel_compiler,
- libblorp],
+ link_with : [
+ i965_gen_libs, libintel_common, libisl, libintel_compiler, libblorp,
+ ],
dependencies : [dep_libdrm, dep_valgrind],
)
'mesa_dri_drivers',
dummy_cpp, # see meson #2180
link_whole : dri_drivers,
- link_with : [libmegadriver_stub, libdricommon, libxmlconfig, libglapi,
- libmesa_util, libnir, libmesa_classic],
- dependencies : [dep_selinux, dep_libdrm, dep_expat, dep_m, dep_thread,
- dep_dl],
+ link_with : [
+ libmegadriver_stub, libdricommon, libxmlconfig, libglapi, libmesa_util,
+ libnir, libmesa_classic,
+ ],
+ dependencies : [
+ dep_selinux, dep_libdrm, dep_expat, dep_m, dep_thread, dep_dl,
+ ],
link_args : ['-Wl,--build-id=sha1', ld_args_bsymbolic, ld_args_gc_sections],
)
libglsl_util = static_library(
'glsl_util',
- files('mesa/main/extensions_table.c', 'mesa/main/imports.c',
- 'mesa/program/prog_parameter.c', 'mesa/program/symbol_table.c',
- 'mesa/program/dummy_errors.c'),
+ files(
+ 'mesa/main/extensions_table.c', 'mesa/main/imports.c',
+ 'mesa/program/prog_parameter.c', 'mesa/program/symbol_table.c',
+ 'mesa/program/dummy_errors.c',
+ ),
include_directories : [inc_common],
c_args : [c_vis_args],
build_by_default : false,
'vk_enum_to_str',
input : ['gen_enum_to_str.py', vk_api_xml[0]],
output : ['vk_enum_to_str.c', 'vk_enum_to_str.h'],
- command : [prog_python2, '@INPUT0@', '--xml', '@INPUT1@',
- '--outdir', meson.current_build_dir()],
+ command : [
+ prog_python2, '@INPUT0@', '--xml', '@INPUT1@', '--outdir',
+ meson.current_build_dir()
+ ],
)
libvulkan_util = static_library(