]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_distributor/meson.build
eventdev: use custom element size rings
[dpdk.git] / lib / librte_distributor / meson.build
index e9caf867556e99f60f8f4f560ebc235770da55a7..50b91887b5d9a734a302eb8c0c53861742f5a9e1 100644 (file)
@@ -1,11 +1,17 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-sources = files('rte_distributor.c', 'rte_distributor_v20.c')
+sources = files('rte_distributor.c', 'rte_distributor_single.c')
 if arch_subdir == 'x86'
        sources += files('rte_distributor_match_sse.c')
 else
        sources += files('rte_distributor_match_generic.c')
 endif
 headers = files('rte_distributor.h')
 if arch_subdir == 'x86'
        sources += files('rte_distributor_match_sse.c')
 else
        sources += files('rte_distributor_match_generic.c')
 endif
 headers = files('rte_distributor.h')
-deps += ['mbuf', 'compat']
+deps += ['mbuf']
+use_function_versioning = true
+
+# for clang 32-bit compiles we need libatomic for 64-bit atomic ops
+if cc.get_id() == 'clang' and dpdk_conf.get('RTE_ARCH_64') == false
+       ext_deps += cc.find_library('atomic')
+endif