usertools: fix pmdinfo parsing
[dpdk.git] / lib / meson.build
index 283ee6c..ed00f89 100644 (file)
@@ -38,9 +38,13 @@ libraries = [
 if is_windows
        libraries = [
                'kvargs',
+               'telemetry',
                'eal',
                'ring',
-               'mempool', 'mbuf', 'net', 'pci',
+               'rcu',
+               'mempool', 'mbuf', 'net', 'meter', 'ethdev', 'pci',
+               'cmdline',
+               'hash',
        ] # only supported libraries for windows
 endif
 
@@ -71,7 +75,7 @@ foreach l:libraries
        ext_deps = []
        deps = []
        # eal is standard dependency once built
-       if dpdk_conf.has('RTE_LIBRTE_EAL')
+       if dpdk_conf.has('RTE_LIB_EAL')
                deps += ['eal']
        endif
 
@@ -96,7 +100,8 @@ foreach l:libraries
                set_variable(name.underscorify() + '_disable_reason', reason)
        else
                enabled_libs += name
-               dpdk_conf.set('RTE_LIBRTE_' + name.to_upper(), 1)
+               dpdk_conf.set('RTE_LIBRTE_' + name.to_upper(), 1) #old macro
+               dpdk_conf.set('RTE_LIB_' + name.to_upper(), 1) # new macro
                install_headers(headers)
 
                libname = 'rte_' + name
@@ -137,8 +142,8 @@ foreach l:libraries
                                # RTE_BUILD_SHARED_LIB defined
                                cflags += '-DRTE_BUILD_SHARED_LIB'
                        endif
-                       version_map = '@0@/@1@/rte_@2@_version.map'.format(
-                                       meson.current_source_dir(), dir_name, name)
+                       version_map = '@0@/@1@/version.map'.format(
+                                       meson.current_source_dir(), dir_name)
                        implib = dir_name + '.dll.a'
 
                        def_file = custom_target(libname + '_def',
@@ -152,8 +157,10 @@ foreach l:libraries
                                output: '@0@_mingw.map'.format(libname))
 
                        if is_ms_linker
-                               lk_args = ['-Wl,/def:' + def_file.full_path(),
-                                       '-Wl,/implib:lib\\' + implib]
+                               lk_args = ['-Wl,/def:' + def_file.full_path()]
+                               if meson.version().version_compare('<0.54.0')
+                                       lk_args += ['-Wl,/implib:lib\\' + implib]
+                               endif
                        else
                                if is_windows
                                        lk_args = ['-Wl,--version-script=' + mingw_map.full_path()]