summaryrefslogtreecommitdiff
path: root/sys/shm/meson.build
blob: 7ae72f3536bade7c5006b32fb7f0cf19966cb38e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
shm_sources = [
  'shmpipe.c',
  'shmalloc.c',
  'gstshm.c',
  'gstshmsrc.c',
  'gstshmsink.c',
]

shm_enabled = false
shm_deps = []
rt_dep = cc.find_library ('rt', required: false)

if cc.has_header ('sys/socket.h') and (host_system == 'osx' or
    host_system == 'bsd' or rt_dep.found())

  shm_enabled = true
  shm_deps = [gstbase_dep]

  if rt_dep.found()
    shm_deps += [rt_dep]
  endif
  
  gstshm = library('gstshm',
    shm_sources,
    c_args : gst_plugins_bad_args + ['-DSHM_PIPE_USE_GLIB'],
    include_directories : [configinc],
    dependencies : shm_deps,
    install : true,
    install_dir : plugins_install_dir,
  )
  pkgconfig.generate(gstshm, install_dir : plugins_pkgconfig_install_dir)
endif