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 <contact@emersion.fr> Signed-off-by: Fang Tan <tanfang@uniontech.com>main
parent
7d6a175990
commit
52f05d3d89
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
datadir_amdgpu = join_paths(get_option('prefix'), get_option('datadir'), 'libdrm')
|
datadir_amdgpu = join_paths(get_option('prefix'), get_option('datadir'), 'libdrm')
|
||||||
|
|
||||||
libdrm_amdgpu = shared_library(
|
libdrm_amdgpu = library(
|
||||||
'drm_amdgpu',
|
'drm_amdgpu',
|
||||||
[
|
[
|
||||||
files(
|
files(
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
libdrm_etnaviv = shared_library(
|
libdrm_etnaviv = library(
|
||||||
'drm_etnaviv',
|
'drm_etnaviv',
|
||||||
[
|
[
|
||||||
files(
|
files(
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
|
|
||||||
libdrm_exynos = shared_library(
|
libdrm_exynos = library(
|
||||||
'drm_exynos',
|
'drm_exynos',
|
||||||
[files('exynos_drm.c', 'exynos_fimg2d.c'), config_file],
|
[files('exynos_drm.c', 'exynos_fimg2d.c'), config_file],
|
||||||
c_args : libdrm_c_args,
|
c_args : libdrm_c_args,
|
||||||
|
|
|
@ -39,7 +39,7 @@ if with_freedreno_kgsl
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
libdrm_freedreno = shared_library(
|
libdrm_freedreno = library(
|
||||||
'drm_freedreno',
|
'drm_freedreno',
|
||||||
[files_freedreno, config_file],
|
[files_freedreno, config_file],
|
||||||
c_args : libdrm_c_args,
|
c_args : libdrm_c_args,
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
|
|
||||||
libdrm_intel = shared_library(
|
libdrm_intel = library(
|
||||||
'drm_intel',
|
'drm_intel',
|
||||||
[
|
[
|
||||||
files(
|
files(
|
||||||
|
|
|
@ -41,7 +41,7 @@ if with_exynos
|
||||||
libkms_include += include_directories('../exynos')
|
libkms_include += include_directories('../exynos')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
libkms = shared_library(
|
libkms = library(
|
||||||
'kms',
|
'kms',
|
||||||
[files_libkms, config_file],
|
[files_libkms, config_file],
|
||||||
c_args : libdrm_c_args,
|
c_args : libdrm_c_args,
|
||||||
|
|
|
@ -294,7 +294,7 @@ add_project_arguments('-include', '@0@'.format(config_file), language : 'c')
|
||||||
inc_root = include_directories('.')
|
inc_root = include_directories('.')
|
||||||
inc_drm = include_directories('include/drm')
|
inc_drm = include_directories('include/drm')
|
||||||
|
|
||||||
libdrm = shared_library(
|
libdrm = library(
|
||||||
'drm',
|
'drm',
|
||||||
[files(
|
[files(
|
||||||
'xf86drm.c', 'xf86drmHash.c', 'xf86drmRandom.c', 'xf86drmSL.c',
|
'xf86drm.c', 'xf86drmHash.c', 'xf86drmRandom.c', 'xf86drmSL.c',
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
libdrm_nouveau = shared_library(
|
libdrm_nouveau = library(
|
||||||
'drm_nouveau',
|
'drm_nouveau',
|
||||||
[files( 'nouveau.c', 'pushbuf.c', 'bufctx.c', 'abi16.c'), config_file],
|
[files( 'nouveau.c', 'pushbuf.c', 'bufctx.c', 'abi16.c'), config_file],
|
||||||
c_args : libdrm_c_args,
|
c_args : libdrm_c_args,
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
|
|
||||||
libdrm_omap = shared_library(
|
libdrm_omap = library(
|
||||||
'drm_omap',
|
'drm_omap',
|
||||||
[files('omap_drm.c'), config_file],
|
[files('omap_drm.c'), config_file],
|
||||||
include_directories : [inc_root, inc_drm],
|
include_directories : [inc_root, inc_drm],
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
libdrm_radeon = shared_library(
|
libdrm_radeon = library(
|
||||||
'drm_radeon',
|
'drm_radeon',
|
||||||
[
|
[
|
||||||
files(
|
files(
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
|
|
||||||
libdrm_tegra = shared_library(
|
libdrm_tegra = library(
|
||||||
'drm_tegra',
|
'drm_tegra',
|
||||||
[files('tegra.c'), config_file],
|
[files('tegra.c'), config_file],
|
||||||
include_directories : [inc_root, inc_drm],
|
include_directories : [inc_root, inc_drm],
|
||||||
|
|
Loading…
Reference in New Issue