|
1 | 1 | # SPDX-License-Identifier: BSD-3-Clause
|
2 | 2 | # Copyright(c) 2017-2019 Intel Corporation
|
3 | 3 |
|
4 |
| -if is_ms_compiler |
5 |
| - subdir_done() |
6 |
| -endif |
7 |
| - |
8 | 4 | # Defines the order of dependencies evaluation
|
9 | 5 | subdirs = [
|
10 | 6 | 'common',
|
@@ -233,20 +229,22 @@ foreach subpath:subdirs
|
233 | 229 | dpdk_includes += include_directories(drv_path)
|
234 | 230 | endif
|
235 | 231 |
|
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]) |
250 | 248 |
|
251 | 249 | # now build the static driver
|
252 | 250 | static_lib = static_library(lib_name,
|
|
0 commit comments