summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2017-12-11 15:56:08 -0800
committerDylan Baker <[email protected]>2018-01-11 15:40:02 -0800
commitfbf192a67ed2e3d4f614b49fe008c980c5f7c9a2 (patch)
treed0320f703e9b2ffc4096720db4784cf10ea882ef /src/mesa/drivers/dri
parentc3d802d68e222bf4030ab4e487501dfbcb34608d (diff)
meson: Use consistent style
Currently the meosn build has a mix of two styles: arg : [foo, ... bar], and arg : [ foo, ..., bar, ] For consistency let's pick one. I've picked the later style, which I think is more readable, and is more common in the mesa code base. v2: - fix commit message Acked-by: Eric Engestrom <[email protected]> Signed-off-by: Dylan Baker <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/meson.build23
-rw-r--r--src/mesa/drivers/dri/meson.build11
2 files changed, 21 insertions, 13 deletions
diff --git a/src/mesa/drivers/dri/i965/meson.build b/src/mesa/drivers/dri/i965/meson.build
index 0a214a0d8be..e3bf9cc51bb 100644
--- a/src/mesa/drivers/dri/i965/meson.build
+++ b/src/mesa/drivers/dri/i965/meson.build
@@ -140,8 +140,10 @@ foreach v : ['40', '45', '50', '60', '70', '75', '80', '90', '100']
'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
@@ -149,9 +151,10 @@ endforeach
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@',
+ ],
)
@@ -166,12 +169,14 @@ libi965 = static_library(
'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],
)
diff --git a/src/mesa/drivers/dri/meson.build b/src/mesa/drivers/dri/meson.build
index 4ec2f343df2..e73ee39381e 100644
--- a/src/mesa/drivers/dri/meson.build
+++ b/src/mesa/drivers/dri/meson.build
@@ -46,10 +46,13 @@ if dri_drivers != []
'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],
)