modules: fix one more broken meson rule for directx on Windows.

Fixes:

> ../modules/meson.build:87:2: ERROR: '-lrpcrt4' is not a target.
This commit is contained in:
Jehan 2022-03-30 21:43:13 +02:00
parent b27dd3ddaa
commit 5703b89735
1 changed files with 4 additions and 1 deletions

View File

@ -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',
)