summaryrefslogtreecommitdiff
path: root/tests/amdgpu
diff options
context:
space:
mode:
authorArkadiusz Hiler <arkadiusz.hiler@intel.com>2018-08-13 13:16:22 +0300
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2018-08-13 13:59:44 +0300
commit6cc5ebf11ff6327720f41bbd0a0bd117d6b9edbf (patch)
tree2114be87f36b0e9c7626708587ac6b60761455d9 /tests/amdgpu
parent2cd4ae5ee6b385360644ded41d73e070ea81f116 (diff)
meson: Define all the rpath_dirs in one place
So they are located close to the definitions of the corresponding install_dirs and can be reused easily. Cc: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'tests/amdgpu')
-rw-r--r--tests/amdgpu/meson.build26
1 files changed, 1 insertions, 25 deletions
diff --git a/tests/amdgpu/meson.build b/tests/amdgpu/meson.build
index 15cfb2b5..566e851b 100644
--- a/tests/amdgpu/meson.build
+++ b/tests/amdgpu/meson.build
@@ -9,35 +9,11 @@ if libdrm_amdgpu.found()
amdgpu_deps += libdrm_amdgpu
endif
-amdgpudir = join_paths(libexecdir, 'amdgpu')
-
-if get_option('use_rpath')
- # Set up runpath for the test executables towards libigt.so.
- # The path should be relative to $ORIGIN so the library is
- # still found properly even if installed to a path other than
- # prefix.
-
- # libdir and libexecdir are pathnames relative to
- # prefix. meson enforces this.
-
- # Start from the executable
- amdgpu_rpathdir = '$ORIGIN'
- # Executables are installed in amdgpudir. Add a .. for each
- # directory name in it.
- foreach p : amdgpudir.split('/')
- amdgpu_rpathdir = join_paths(amdgpu_rpathdir, '..')
- endforeach
- # Add relative path to libdir
- amdgpu_rpathdir = join_paths(amdgpu_rpathdir, libdir)
-else
- amdgpu_rpathdir = ''
-endif
-
foreach prog : amdgpu_progs
test_executables += executable(prog, prog + '.c',
dependencies : amdgpu_deps,
install_dir : amdgpudir,
- install_rpath : amdgpu_rpathdir,
+ install_rpath : amdgpudir_rpathdir,
install : true)
test_progs += join_paths('amdgpu', prog)
endforeach