qtdemux: Don't use invalid values from failed trex parsing
[platform/upstream/gstreamer.git] / meson.build
index 0543316..3967832 100644 (file)
@@ -48,6 +48,20 @@ if build_system == 'windows' and meson.version().version_compare('<0.60.0')
   endif
 endif
 
+# On macOS, you have to run "Install Certificates.command" otherwise Python
+# doesn't have access to the latest SSL CA Certificates, and Meson will fail to
+# download wrap files from websites that use, for example, Let's Encrypt.
+# We already recommend this in the README, but add a warning here as well.
+# Can't make this an error because the user might be using XCode's Python
+# 3 which doesn't have this script.
+if build_system == 'darwin'
+  python3_cacert_file = python3.get_path('data') / 'etc/openssl/cert.pem'
+  install_cert_cmd = '/Applications/Python @0@/Install Certificates.command'.format(python3.language_version())
+  if not fs.is_symlink(python3_cacert_file) and fs.is_file(install_cert_cmd)
+    warning('Please run "@0@" so that Python has access to the latest SSL certificates. Meson might fail to download some wraps without it.'.format(install_cert_cmd))
+  endif
+endif
+
 documented_projects = ''
 # Make it possible to use msys2 built zlib which fails
 # when not using the mingw toolchain as it uses unistd.h
@@ -162,7 +176,9 @@ foreach sp : subprojects
     plugins = subproj.get_variable('plugins', [])
     all_plugins += plugins
     all_libraries += subproj.get_variable('libraries', [])
-    all_tools += subproj.get_variable('gst_tools', {})
+    if not get_option('tools').disabled()
+      all_tools += subproj.get_variable('gst_tools', {})
+    endif
 
     orc_update_targets += subproj.get_variable('orc_update_targets', [])
 
@@ -434,6 +450,8 @@ devenv_cmd = [setenv, '--builddir=@0@'.format(meson.global_build_root()),
               '--srcdir=@0@'.format(meson.global_source_root())]
 
 subdir('tests')
+subdir('ci/fuzzing')
+
 if meson.can_run_host_binaries() and build_machine.system() == 'linux' and host_machine.system() == 'windows'
   # FIXME: Ideally we could get the wrapper directly from meson
   devenv_cmd += ['--wine', host_machine.cpu_family() == 'x86_64' ? 'wine64' : 'wine32']
@@ -450,6 +468,28 @@ if orc_subproject.found() and orc_update_targets.length() > 0
   alias_target('update-orc-dist', orc_update_targets)
 endif
 
+dotnet_format = find_program('dotnet-format', required: false)
+if dotnet_format.found()
+    run_target('csharp_format_check',
+        command: [join_paths(meson.current_source_dir(), 'scripts', 'format-csharp'),
+            '--check'
+        ],
+    )
+    run_target('csharp_format_apply',
+        command: [join_paths(meson.current_source_dir(), 'scripts', 'format-csharp'),
+        ],
+    )
+endif
+
 summary({
-  'gstreamer-full': building_full,
+  'gstreamer-full library': building_full,
 }, section: 'Build options', bool_yn: true, list_sep: '  ')
+
+gst_tools = []
+foreach tool, data: all_tools
+  gst_tools += tool
+endforeach
+
+summary({
+    'Tools': gst_tools,
+}, section: 'Build options', list_sep: ', ')