Skip to content

Commit c30fc52

Browse files
enable rcu and drivers for MSVC
Signed-off-by: David Marchand <[email protected]>
1 parent eab3a31 commit c30fc52

File tree

2 files changed

+16
-24
lines changed

2 files changed

+16
-24
lines changed

drivers/meson.build

+16-18
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# SPDX-License-Identifier: BSD-3-Clause
22
# Copyright(c) 2017-2019 Intel Corporation
33

4-
if is_ms_compiler
5-
subdir_done()
6-
endif
7-
84
# Defines the order of dependencies evaluation
95
subdirs = [
106
'common',
@@ -233,20 +229,22 @@ foreach subpath:subdirs
233229
dpdk_includes += include_directories(drv_path)
234230
endif
235231

236-
# generate pmdinfo sources by building a temporary
237-
# lib and then running pmdinfogen on the contents of
238-
# that lib. The final lib reuses the object files and
239-
# adds in the new source file.
240-
out_filename = lib_name + '.pmd.c'
241-
tmp_lib = static_library('tmp_' + lib_name, sources,
242-
include_directories: includes,
243-
dependencies: static_deps,
244-
c_args: cflags)
245-
objs += tmp_lib.extract_all_objects(recursive: true)
246-
sources_pmd_info = custom_target(out_filename,
247-
command: [pmdinfo, tmp_lib.full_path(), '@OUTPUT@', pmdinfogen],
248-
output: out_filename,
249-
depends: [tmp_lib])
232+
sources_pmd_info = []
233+
if not is_ms_compiler
234+
# generate pmdinfo sources by building a temporary
235+
# lib and then running pmdinfogen on the contents of
236+
# that lib. The final lib reuses the object files and
237+
# adds in the new source file.
238+
out_filename = lib_name + '.pmd.c'
239+
tmp_lib = static_library('tmp_' + lib_name, sources,
240+
include_directories: includes,
241+
dependencies: static_deps,
242+
c_args: cflags)
243+
objs += tmp_lib.extract_all_objects(recursive: true)
244+
sources_pmd_info = custom_target(out_filename,
245+
command: [pmdinfo, tmp_lib.full_path(), '@OUTPUT@', pmdinfogen],
246+
output: out_filename,
247+
depends: [tmp_lib])
250248

251249
# now build the static driver
252250
static_lib = static_library(lib_name,

lib/rcu/meson.build

-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
# SPDX-License-Identifier: BSD-3-Clause
22
# Copyright(c) 2018 Arm Limited
33

4-
if is_ms_compiler
5-
build = false
6-
reason = 'not supported building with Visual Studio Toolset'
7-
subdir_done()
8-
endif
9-
104
sources = files('rte_rcu_qsbr.c')
115
headers = files('rte_rcu_qsbr.h')
126

0 commit comments

Comments
 (0)