From 52f05d3d896480ee5431dcd444f53bb2a8e41cce Mon Sep 17 00:00:00 2001 From: Fang Tan Date: Tue, 9 Mar 2021 16:14:36 +0800 Subject: [PATCH] meson: use library() instead of shared_library(). This allows users to select the library type (static or shared) using the Meson -Ddefault_library built-in option. Issue: https://gitlab.freedesktop.org/mesa/drm/-/issues/45 Reviewed-by: Simon Ser Signed-off-by: Fang Tan --- amdgpu/meson.build | 2 +- etnaviv/meson.build | 2 +- exynos/meson.build | 2 +- freedreno/meson.build | 2 +- intel/meson.build | 2 +- libkms/meson.build | 2 +- meson.build | 2 +- nouveau/meson.build | 2 +- omap/meson.build | 2 +- radeon/meson.build | 2 +- tegra/meson.build | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/amdgpu/meson.build b/amdgpu/meson.build index d5c5f397..3301a10e 100644 --- a/amdgpu/meson.build +++ b/amdgpu/meson.build @@ -21,7 +21,7 @@ datadir_amdgpu = join_paths(get_option('prefix'), get_option('datadir'), 'libdrm') -libdrm_amdgpu = shared_library( +libdrm_amdgpu = library( 'drm_amdgpu', [ files( diff --git a/etnaviv/meson.build b/etnaviv/meson.build index 6040cf63..8b82ed07 100644 --- a/etnaviv/meson.build +++ b/etnaviv/meson.build @@ -19,7 +19,7 @@ # SOFTWARE. -libdrm_etnaviv = shared_library( +libdrm_etnaviv = library( 'drm_etnaviv', [ files( diff --git a/exynos/meson.build b/exynos/meson.build index 40d66fc1..7d1edfea 100644 --- a/exynos/meson.build +++ b/exynos/meson.build @@ -18,7 +18,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -libdrm_exynos = shared_library( +libdrm_exynos = library( 'drm_exynos', [files('exynos_drm.c', 'exynos_fimg2d.c'), config_file], c_args : libdrm_c_args, diff --git a/freedreno/meson.build b/freedreno/meson.build index 63b84fc9..49e66593 100644 --- a/freedreno/meson.build +++ b/freedreno/meson.build @@ -39,7 +39,7 @@ if with_freedreno_kgsl ) endif -libdrm_freedreno = shared_library( +libdrm_freedreno = library( 'drm_freedreno', [files_freedreno, config_file], c_args : libdrm_c_args, diff --git a/intel/meson.build b/intel/meson.build index 4d3f1ebd..5fa06c28 100644 --- a/intel/meson.build +++ b/intel/meson.build @@ -18,7 +18,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -libdrm_intel = shared_library( +libdrm_intel = library( 'drm_intel', [ files( diff --git a/libkms/meson.build b/libkms/meson.build index 216be4df..8d17bb2e 100644 --- a/libkms/meson.build +++ b/libkms/meson.build @@ -41,7 +41,7 @@ if with_exynos libkms_include += include_directories('../exynos') endif -libkms = shared_library( +libkms = library( 'kms', [files_libkms, config_file], c_args : libdrm_c_args, diff --git a/meson.build b/meson.build index 07d2e086..5922fb61 100644 --- a/meson.build +++ b/meson.build @@ -294,7 +294,7 @@ add_project_arguments('-include', '@0@'.format(config_file), language : 'c') inc_root = include_directories('.') inc_drm = include_directories('include/drm') -libdrm = shared_library( +libdrm = library( 'drm', [files( 'xf86drm.c', 'xf86drmHash.c', 'xf86drmRandom.c', 'xf86drmSL.c', diff --git a/nouveau/meson.build b/nouveau/meson.build index 9bd58fca..af45336c 100644 --- a/nouveau/meson.build +++ b/nouveau/meson.build @@ -19,7 +19,7 @@ # SOFTWARE. -libdrm_nouveau = shared_library( +libdrm_nouveau = library( 'drm_nouveau', [files( 'nouveau.c', 'pushbuf.c', 'bufctx.c', 'abi16.c'), config_file], c_args : libdrm_c_args, diff --git a/omap/meson.build b/omap/meson.build index 53330b61..bfd59f05 100644 --- a/omap/meson.build +++ b/omap/meson.build @@ -18,7 +18,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -libdrm_omap = shared_library( +libdrm_omap = library( 'drm_omap', [files('omap_drm.c'), config_file], include_directories : [inc_root, inc_drm], diff --git a/radeon/meson.build b/radeon/meson.build index ca128329..31fe9cd0 100644 --- a/radeon/meson.build +++ b/radeon/meson.build @@ -19,7 +19,7 @@ # SOFTWARE. -libdrm_radeon = shared_library( +libdrm_radeon = library( 'drm_radeon', [ files( diff --git a/tegra/meson.build b/tegra/meson.build index 88613b9c..edddf72b 100644 --- a/tegra/meson.build +++ b/tegra/meson.build @@ -18,7 +18,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -libdrm_tegra = shared_library( +libdrm_tegra = library( 'drm_tegra', [files('tegra.c'), config_file], include_directories : [inc_root, inc_drm],