• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1if get_option('qt5').disabled()
2  subdir_done()
3endif
4
5if x11_dep.found()
6  if gtk_x11_dep.found()
7    executable('gtk-videooverlay', 'gtk-videooverlay.c',
8      c_args : gst_plugins_base_args,
9      include_directories: [configinc, libsinc],
10      dependencies : [glib_deps, gst_dep, video_dep, libm, x11_dep, gtk_x11_dep],
11      install: false)
12  endif
13
14  if have_cxx                                      # check for C++ support
15    qt5_mod = import('qt5')
16    qt5widgets_dep = dependency('qt5', modules : ['Core', 'Gui', 'Widgets'],
17                                required: get_option('examples'))
18
19    # FIXME Add a way to get that information out of the qt5 module
20    moc = find_program('moc-qt5', required : get_option('examples'))
21    if qt5widgets_dep.found() and moc.found()
22      executable('qt-videooverlay', 'qt-videooverlay.cpp',
23        cpp_args : gst_plugins_base_args,
24        include_directories: [configinc, libsinc],
25        dependencies : [glib_deps, gst_dep, video_dep, libm, x11_dep, qt5widgets_dep],
26        install: false)
27
28      # FIXME: this doesn't work properly yet, no moc_qtgv-videooverlay.cpp generated
29      moc_files = qt5_mod.preprocess(moc_headers : 'qtgv-videooverlay.h')#moc_sources : 'qtgv-videooverlay.cpp')
30      executable('qtgv-videooverlay', 'qtgv-videooverlay.cpp', moc_files,
31        cpp_args : gst_plugins_base_args,
32        include_directories: [configinc, libsinc],
33        dependencies : [glib_deps, gst_dep, video_dep, libm, x11_dep, qt5widgets_dep],
34        install: false)
35    endif
36  endif
37endif
38
39if host_system == 'windows'
40  executable('win32-videooverlay', 'win32-videooverlay.c',
41    c_args : gst_plugins_base_args,
42    include_directories : [configinc, libsinc],
43    dependencies : [gst_dep, video_dep],
44    install: false,
45  )
46
47  executable('win32-videooverlay-playbin', 'win32-videooverlay-playbin.c',
48    c_args : gst_plugins_base_args,
49    include_directories : [configinc, libsinc],
50    dependencies : [gst_dep, video_dep],
51    install: false,
52  )
53endif
54