]> git.droids-corp.org - dpdk.git/commitdiff
build: hide debug messages in non-developer mode
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 25 Feb 2021 15:29:02 +0000 (15:29 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 9 Apr 2021 17:07:25 +0000 (19:07 +0200)
The messages about what components have what dependency names, and
information about function versioning not being supported on windows are
only of interest to developers, so hide them when building in
non-developer mode.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/meson.build
lib/meson.build

index 9c8eded697e3b319df1d6e89a7750f83c43ce28c..a5b54a50cce797eeab7a2adc409e4d6e875c0765 100644 (file)
@@ -209,8 +209,10 @@ foreach subpath:subdirs
                        set_variable('shared_@0@'.format(lib_name), shared_dep)
                        set_variable('static_@0@'.format(lib_name), static_dep)
                        dependency_name = ''.join(lib_name.split('rte_'))
-                       message('drivers/@0@: Defining dependency "@1@"'.format(
-                                       drv_path, dependency_name))
+                       if developer_mode
+                               message('drivers/@0@: Defining dependency "@1@"'.format(
+                                               drv_path, dependency_name))
+                       endif
                endif # build
        endforeach
 
index 992ebdf636eae8b8c5d3a6265d78c1ca26193dc8..c2052e6e4019f991d11f5c84319f6150dc9daca3 100644 (file)
@@ -119,9 +119,9 @@ foreach l:libraries
                        shared_dep = declare_dependency(include_directories: includes)
                        static_dep = shared_dep
                else
-                       if is_windows and use_function_versioning
+                       if is_windows and use_function_versioning and developer_mode
                                message('@0@: Function versioning is not supported by Windows.'
-                               .format(name))
+                                               .format(name))
                        endif
 
                        if use_function_versioning
@@ -210,7 +210,9 @@ foreach l:libraries
 
                set_variable('shared_rte_' + name, shared_dep)
                set_variable('static_rte_' + name, static_dep)
-               message('lib/@0@: Defining dependency "@1@"'.format(
-                               dir_name, name))
+               if developer_mode
+                       message('lib/@0@: Defining dependency "@1@"'.format(
+                                       dir_name, name))
+               endif
        endif # if build
 endforeach