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,24 +229,28 @@ 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
+ driver_sources = sources
233
+
234
+ if not is_ms_compiler
235
+ # generate pmdinfo sources by building a temporary
236
+ # lib and then running pmdinfogen on the contents of
237
+ # that lib. The final lib reuses the object files and
238
+ # adds in the new source file.
239
+ out_filename = lib_name + ' .pmd.c'
240
+ tmp_lib = static_library (' tmp_' + lib_name, sources,
241
+ include_directories : includes,
242
+ dependencies : static_deps,
243
+ c_args : cflags)
244
+ objs += tmp_lib.extract_all_objects(recursive : true )
245
+ sources = custom_target (out_filename,
246
+ command : [pmdinfo, tmp_lib.full_path(), ' @OUTPUT@' , pmdinfogen],
247
+ output : out_filename,
248
+ depends : [tmp_lib])
249
+ endif
250
250
251
251
# now build the static driver
252
252
static_lib = static_library (lib_name,
253
- sources_pmd_info ,
253
+ sources ,
254
254
objects : objs,
255
255
include_directories : includes,
256
256
dependencies : static_deps,
@@ -267,7 +267,7 @@ foreach subpath:subdirs
267
267
endif
268
268
version_map = custom_target (lib_name + ' _map' ,
269
269
command : [gen_version_map, link_mode, abi_version_file, ' @OUTPUT@' , ' @INPUT@' ],
270
- input : sources ,
270
+ input : driver_sources ,
271
271
output : ' lib@0@_exports.map' .format(lib_name))
272
272
lk_deps = [version_map]
273
273
@@ -293,7 +293,7 @@ foreach subpath:subdirs
293
293
depends : [version_map])
294
294
endif
295
295
296
- shared_lib = shared_library (lib_name, sources_pmd_info ,
296
+ shared_lib = shared_library (lib_name, sources ,
297
297
objects : objs,
298
298
include_directories : includes,
299
299
dependencies : shared_deps,
0 commit comments