summaryrefslogtreecommitdiff
path: root/ext/gl/meson.build
blob: 7f474e938e8fbd46a5ff9d8941087f633f7f9116 (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
33
34
35
36
opengl_sources = [
  'gstopengl.c',
  'gstglbasemixer.c',
  'gstglmixerbin.c',
  'gstglmixer.c',
  'gstglvideomixer.c',
  'gstglstereomix.c',
  'gstglutils.c',
]

if build_gstgl and gstgl_dep.found()
  optional_deps = []
  opengl_defines = ['-DGST_USE_UNSTABLE_API'] # for videoaggregator

  if gst_gl_have_api_gl # have desktop GL
    opengl_sources += [
      'gstglmosaic.c',
    ]
  endif

  if x11_dep.found()
    # for XInitThreads()
    optional_deps += x11_dep
  endif

  gstopenglmixers = library('gstopenglmixers',
    opengl_sources,
    c_args : gst_plugins_bad_args + opengl_defines,
    link_args : noseh_link_args,
    include_directories : [configinc],
    dependencies : [gstbadvideo_dep, gstgl_dep, gstvideo_dep,
                    gstbase_dep, gstcontroller_dep, libm] + optional_deps,
    install : true,
    install_dir : plugins_install_dir,
  )
endif