build: enable pmdinfogen for Windows
authorDmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Fri, 8 Jan 2021 02:47:23 +0000 (05:47 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 25 Jan 2021 22:24:38 +0000 (23:24 +0100)
Remove platform restriction when building drivers.

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Tested-by: Jie Zhou <jizh@microsoft.com>
drivers/meson.build

index ff5cdb9..fdf7612 100644 (file)
@@ -120,20 +120,18 @@ foreach subpath:subdirs
                        # lib and then running pmdinfogen on the contents of
                        # that lib. The final lib reuses the object files and
                        # adds in the new source file.
-                       if not is_windows
-                               out_filename = lib_name + '.pmd.c'
-                               tmp_lib = static_library('tmp_' + lib_name,
-                                               sources,
-                                               include_directories: includes,
-                                               dependencies: static_deps,
-                                               c_args: cflags)
-                               objs += tmp_lib.extract_all_objects()
-                               sources = custom_target(out_filename,
-                                               command: [pmdinfo, tmp_lib.full_path(),
-                                                       '@OUTPUT@', pmdinfogen],
-                                               output: out_filename,
-                                               depends: [tmp_lib])
-                       endif
+                       out_filename = lib_name + '.pmd.c'
+                       tmp_lib = static_library('tmp_' + lib_name,
+                                       sources,
+                                       include_directories: includes,
+                                       dependencies: static_deps,
+                                       c_args: cflags)
+                       objs += tmp_lib.extract_all_objects()
+                       sources = custom_target(out_filename,
+                                       command: [pmdinfo, tmp_lib.full_path(),
+                                               '@OUTPUT@', pmdinfogen],
+                                       output: out_filename,
+                                       depends: [tmp_lib])
 
                        # now build the static driver
                        static_lib = static_library(lib_name,