From: Dylan Baker Date: Tue, 23 Oct 2018 17:40:15 +0000 (-0700) Subject: meson: fix formatting and add extra_files to i965 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43b0d5fa04cec45ab61b654bfa25f6a1b1af027f;p=mesa.git meson: fix formatting and add extra_files to i965 extra_files is just a nice way to to tell certain IDEs (and those reading the file) that this file is also a dependency. Meson will use the .d file generated by the compiler to figure out what the target actually depends on. Reviewed-by: Tapani Pälli Reviewed-by: Juan A. Suarez --- diff --git a/src/mesa/drivers/dri/i965/meson.build b/src/mesa/drivers/dri/i965/meson.build index bf366a6c157..24172955e9b 100644 --- a/src/mesa/drivers/dri/i965/meson.build +++ b/src/mesa/drivers/dri/i965/meson.build @@ -191,20 +191,22 @@ intel_tiled_memcpy = static_library( inc_common, inc_intel, inc_dri_common, inc_drm_uapi, ], c_args : [c_vis_args, no_override_init_args, '-msse2'], + extra_files : ['intel_tiled_memcpy.c'] ) if with_sse41 -intel_tiled_memcpy_sse41 = static_library( - 'intel_tiled_memcpy_sse41', - [files_intel_tiled_memcpy_sse41], - include_directories : [ - inc_common, inc_intel, inc_dri_common, inc_drm_uapi, - ], - link_args : [ '-Wl,--exclude-libs=ALL' ], - c_args : [c_vis_args, no_override_init_args, '-Wl,--exclude-libs=ALL', '-msse2', sse41_args], -) + intel_tiled_memcpy_sse41 = static_library( + 'intel_tiled_memcpy_sse41', + [files_intel_tiled_memcpy_sse41], + include_directories : [ + inc_common, inc_intel, inc_dri_common, inc_drm_uapi, + ], + link_args : ['-Wl,--exclude-libs=ALL'], + c_args : [c_vis_args, no_override_init_args, '-Wl,--exclude-libs=ALL', '-msse2', sse41_args], + extra_files : ['intel_tiled_memcpy.c'] + ) else -intel_tiled_memcpy_sse41 = [] + intel_tiled_memcpy_sse41 = [] endif