summaryrefslogtreecommitdiff
path: root/tests/examples/gl/qt/qglwtextureshare/meson.build
blob: 9de84f60a15a180f15f953c34e5d8ddb5693a642 (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
sources = [
  'main.cpp',
  'gstthread.cpp',
  'pipeline.cpp',
  'qglrenderer.cpp',
]

moc_headers = [
  'gstthread.h',
  'pipeline.h',
  'qglrenderer.h',
]

qtwinsys_deps = []
if enabled_gl_winsys.contains('x11') and enabled_gl_platforms.contains('glx')
  qt5x11extras = dependency('qt5', modules : ['X11Extras'], required : false)
  if qt5x11extras.found()
    qtwinsys_deps += [qt5x11extras, glx_dep]
  else
    subdir_done()
  endif
endif

moc_files = qt5_mod.preprocess(moc_headers : moc_headers)
executable('qglwtextureshare', sources, moc_files,
  cpp_args : [gst_plugins_base_args] + qt_cxx_warn_less,
  include_directories: [configinc, libsinc],
  dependencies : [qt5core_dep, qt5gui_dep, qt5opengl_dep, qtwinsys_deps, gst_dep, video_dep, gstgl_dep, gstglproto_dep],
  install: false)