diff options
author | Adam Jackson <ajax@redhat.com> | 2019-08-27 15:54:42 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2019-08-27 17:38:59 -0400 |
commit | 7d0e660e0e2808e098ab9d4de843e9b31c64af21 (patch) | |
tree | 58929e75456b962b36f89f1db69b5f5b75ea4126 /dix | |
parent | e0e051a3920e3e2731d35807e00d30ba9ef7f122 (diff) |
meson: Add dtrace support
Diffstat (limited to 'dix')
-rw-r--r-- | dix/meson.build | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/dix/meson.build b/dix/meson.build index 0ed4f8210..ddc5cc392 100644 --- a/dix/meson.build +++ b/dix/meson.build @@ -33,10 +33,22 @@ srcs_dix = [ 'window.c', ] +dtrace_src = [] +if with_dtrace + dtrace_object = generator(dtrace, + output: '@BASENAME@.o', + arguments: ['-G', '-s', '@INPUT@', '-o', '@OUTPUT@'] + ) + + dtrace_src += dtrace_object.process(dtrace_tmpl) +endif + +dtrace_dep = declare_dependency(sources: [dtrace_src, dtrace_hdr]) + libxserver_dix = static_library('libxserver_dix', srcs_dix, include_directories: inc, - dependencies: common_dep, + dependencies: [ dtrace_dep, common_dep, ] ) libxserver_main = static_library('libxserver_main', |