drivers: disable OCTEON TX2 in 32-bit build
[dpdk.git] / drivers / regex / octeontx2 / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(C) 2020 Marvell International Ltd.
3 #
4
5 if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
6         build = false
7         reason = 'only supported on 64-bit Linux'
8         subdir_done()
9 endif
10
11 lib = cc.find_library('librxp_compiler', required: false)
12 if lib.found()
13         ext_deps += lib
14         ext_deps += cc.find_library('libstdc++', required: true)
15         includes += include_directories(inc_dir)
16         cflags += ['-DREE_COMPILER_SDK']
17 endif
18
19 sources = files('otx2_regexdev.c',
20                 'otx2_regexdev_hw_access.c',
21                 'otx2_regexdev_mbox.c',
22                 'otx2_regexdev_compiler.c'
23                 )
24
25 fmt_name = 'octeontx2_regex'
26 deps += ['bus_pci', 'common_octeontx2', 'regexdev']
27
28 includes += include_directories('../../common/octeontx2')