[gimp/wip/Jehan/meson-windows-official] modules: fix one more broken meson rule for directx on Windows.



commit a0ed12c9352d76944286e165bb7a20590f9eddcd
Author: Jehan <jehan girinstud io>
Date:   Wed Mar 30 21:43:13 2022 +0200

    modules: fix one more broken meson rule for directx on Windows.
    
    Fixes:
    
    > ../modules/meson.build:87:2: ERROR: '-lrpcrt4' is not a target.

 modules/meson.build | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/modules/meson.build b/modules/meson.build
index 9b50ae0174..ad16b63619 100644
--- a/modules/meson.build
+++ b/modules/meson.build
@@ -65,7 +65,8 @@ if directx.found()
     'name': 'controller-dx-input',
     'srcs': [ 'controller-dx-dinput.c', 'gimpinputdevicestore-dx.c', ],
     'deps': directx,
-    'link': [ controller_libs, '-lrpcrt4', ],
+    'link': [ controller_libs, ],
+    'link-args': [ '-lrpcrt4', ],
   }
 endif
 
@@ -83,12 +84,14 @@ foreach module : modules
   srcs = module.get('srcs', name + '.c')
   deps = module.get('deps', [])
   link = module.get('link', [])
+  link_args = module.get('link-args', [])
 
   library(name,
     srcs,
     include_directories: rootInclude,
     dependencies: modules_deps + [ deps ],
     link_with: link,
+    link_args: link_args,
     install: true,
     install_dir: gimpplugindir / 'modules',
   )


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]