meson: strip rpath from megadrivers
authorEric Engestrom <eric.engestrom@intel.com>
Tue, 26 Mar 2019 11:21:09 +0000 (11:21 +0000)
committerEric Engestrom <eric@engestrom.ch>
Mon, 1 Apr 2019 07:04:13 +0000 (07:04 +0000)
More specifically, use the library file that has been post-processed by Meson
when creating the hardlinks.

Bugs: https://bugs.freedesktop.org/show_bug.cgi?id=108766
Fixes: 3218056e0eb375eeda47 "meson: Build i965 and dri stack"
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
bin/install_megadrivers.py
src/gallium/targets/dri/meson.build
src/gallium/targets/va/meson.build
src/gallium/targets/vdpau/meson.build
src/gallium/targets/xvmc/meson.build
src/mesa/drivers/dri/meson.build

index ca543e5ce308ec2968276816a161b6493969b685..c9ab99a283302e47f8ae699891b5358f4a5c3f3f 100644 (file)
@@ -49,7 +49,6 @@ def main():
         if os.path.lexists(to):
             os.unlink(to)
         os.makedirs(to)
-    shutil.copy(args.megadriver, master)
 
     for driver in args.drivers:
         abs_driver = os.path.join(to, driver)
index 045b8111592fd3e8c0e792777b7a14b04ea4df74..b3d3cd09c5bca5c3ae46c85e6e93f13bab413431 100644 (file)
@@ -60,6 +60,9 @@ libgallium_dri = shared_library(
     driver_tegra, driver_i915, driver_svga, driver_virgl,
     driver_swr, driver_panfrost, driver_iris
   ],
+  # Will be deleted during installation, see install_megadrivers.py
+  install : true,
+  install_dir : dri_drivers_path,
 )
 
 foreach d : [[with_gallium_kmsro, [
index 8786c80b8106b980bb0fa7ec59b6565af6fb96e5..827cfb8d829fc7fc753fc2a37448366f64adca51 100644 (file)
@@ -49,6 +49,7 @@ libva_gallium = shared_library(
     dep_libdrm, dep_thread, driver_r600, driver_radeonsi, driver_nouveau,
   ],
   link_depends : va_link_depends,
+  # Will be deleted during installation, see install_megadrivers.py
   install : true,
   install_dir : va_drivers_path,
 )
index b53a4c232e932677ebd952ea9241ae91101b7c83..3017721bda0992a519650e244dfda28291ea6520 100644 (file)
@@ -55,6 +55,9 @@ libvdpau_gallium = shared_library(
   ],
   link_depends : vdpau_link_depends,
   soversion : '@0@.@1@.0'.format(VDPAU_MAJOR, VDPAU_MINOR),
+  # Will be deleted during installation, see install_megadrivers.py
+  install : true,
+  install_dir : vdpau_drivers_path,
 )
 foreach d : [[with_gallium_r300, 'r300'],
              [with_gallium_r600, 'r600'],
index f91ac4e8c0c220e7fb588600be16a8607d309b0d..845f3a421b778fde4e02bdd0f01c4c109406d237 100644 (file)
@@ -47,6 +47,9 @@ libxvmc_gallium = shared_library(
   ],
   dependencies : [dep_thread, driver_r600, driver_nouveau],
   link_depends : xvmc_link_depends,
+  # Will be deleted during installation, see install_megadrivers.py
+  install : true,
+  install_dir : xvmc_drivers_path,
 )
 
 foreach d : [[with_gallium_r600, 'r600'], [with_gallium_nouveau, 'nouveau']]
index 0410a5a12ec63e0baef22536890c515cb3936cfb..a0f47bbecee847c5548de4e187d95e4588ba3865 100644 (file)
@@ -54,6 +54,9 @@ if dri_drivers != []
       dep_selinux, dep_libdrm, dep_expat, dep_m, dep_thread, dep_dl, idep_nir,
     ],
     link_args : [ld_args_build_id, ld_args_bsymbolic, ld_args_gc_sections],
+    # Will be deleted during installation, see install_megadrivers.py
+    install : true,
+    install_dir : dri_drivers_path,
   )
 
   meson.add_install_script(