X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Ftargets%2Fxvmc%2Fmeson.build;h=9fa0f659c17b037630996e9583e4552ae2873ba8;hb=de352f58c3817ed5b399d211a1b2603510716e85;hp=07d6c729c9a51fb5b050148db1c2565d2248d76b;hpb=7023b373ec76a2ea25b1bd0a7501276de9007047;p=mesa.git diff --git a/src/gallium/targets/xvmc/meson.build b/src/gallium/targets/xvmc/meson.build index 07d6c729c9a..9fa0f659c17 100644 --- a/src/gallium/targets/xvmc/meson.build +++ b/src/gallium/targets/xvmc/meson.build @@ -1,4 +1,4 @@ -# Copyright © 2017 Intel Corporation +# Copyright © 2017-2018 Intel Corporation # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -34,28 +34,33 @@ endif libxvmc_gallium = shared_library( 'XvMCgallium', 'target.c', - c_args : c_vis_args, - cpp_args : cpp_vis_args, + gnu_symbol_visibility : 'hidden', link_args : [xvmc_link_args, ld_args_gc_sections], include_directories : [ - inc_common, inc_util, inc_gallium_winsys, inc_gallium_drivers, + inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_util, inc_gallium_winsys, inc_gallium_drivers, ], + link_whole : [libxvmc_st], link_with : [ - libxvmc_st, libgalliumvlwinsys, libgalliumvl, libgallium, libmesa_util, - libpipe_loader_static, libws_null, libwsw, + libgalliumvlwinsys, libgalliumvl, libgallium, + libpipe_loader_static, libws_null, libwsw, libswdri, libswkmsdri, ], - dependencies : [dep_thread, driver_r600, driver_nouveau], + dependencies : [idep_mesautil, 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, + name_suffix : 'so', + version : '@0@.@1@.0'.format(XVMC_MAJOR, XVMC_MINOR), ) foreach d : [[with_gallium_r600, 'r600'], [with_gallium_nouveau, 'nouveau']] if d[0] - xvmc_drivers += 'libXvMC@0@.so'.format(d[1]) + xvmc_drivers += 'libXvMC@0@.so.@1@.@2@.0'.format(d[1], XVMC_MAJOR, XVMC_MINOR) endif endforeach meson.add_install_script( - join_paths(meson.source_root(), 'bin/install_megadrivers.py'), + install_megadrivers_py.path(), libxvmc_gallium.full_path(), xvmc_drivers_path, xvmc_drivers,