summaryrefslogtreecommitdiff
path: root/lib/libdrm/meson.build
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2021-07-05 11:04:48 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2021-07-05 11:04:48 +0000
commit031c437b8fe1f3db2486170a73e5ab31e5a114e4 (patch)
tree41d5479a73b630619569707ce0d1de8daee01286 /lib/libdrm/meson.build
parent0483be72c30006a77a683a95694238b2b73a1887 (diff)
Import libdrm 2.4.107
Diffstat (limited to 'lib/libdrm/meson.build')
-rw-r--r--lib/libdrm/meson.build15
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/libdrm/meson.build b/lib/libdrm/meson.build
index a4d8d7074..288106bdd 100644
--- a/lib/libdrm/meson.build
+++ b/lib/libdrm/meson.build
@@ -21,9 +21,9 @@
project(
'libdrm',
['c'],
- version : '2.4.104',
+ version : '2.4.107',
license : 'MIT',
- meson_version : '>= 0.43',
+ meson_version : '>= 0.46',
default_options : ['buildtype=debugoptimized', 'c_std=gnu99'],
)
@@ -51,6 +51,11 @@ prog_nm = find_program('nm')
intel_atomics = false
lib_atomics = false
+python3 = import('python').find_installation()
+format_mod_static_table = custom_target('format_mod_static_table',
+ output : 'generated_static_table_fourcc.h', input: 'include/drm/drm_fourcc.h',
+ command : [python3, files('gen_table_fourcc.py'), '@INPUT@', '@OUTPUT@'])
+
dep_atomic_ops = dependency('atomic_ops', required : false)
if cc.links('''
int atomic_add(int *i) { return __sync_add_and_fetch (i, 1); }
@@ -261,7 +266,7 @@ else
endif
with_man_pages = get_option('man-pages')
-prog_rst2man = find_program('rst2man', required: with_man_pages == 'true')
+prog_rst2man = find_program('rst2man', 'rst2man.py', required: with_man_pages == 'true')
with_man_pages = with_man_pages != 'false' and prog_rst2man.found()
config.set10('HAVE_VISIBILITY',
@@ -294,13 +299,13 @@ 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',
'xf86drmMode.c'
),
- config_file,
+ config_file, format_mod_static_table
],
c_args : libdrm_c_args,
dependencies : [dep_valgrind, dep_rt, dep_m],