diff options
| author | star9029 <[email protected]> | 2025-05-06 19:48:06 +0800 |
|---|---|---|
| committer | star9029 <[email protected]> | 2025-05-06 19:48:06 +0800 |
| commit | f88aa4f41876e32987c60403831c105af54742c5 (patch) | |
| tree | 275cc4f2ca1eb411dd9b1b42438b492190d47200 | |
| parent | 7dc8bf58b37e7b3ba513b27490ee3107b29e0730 (diff) | |
Fix idl test
| -rw-r--r-- | tests/projects/windows/idl/test_rpc/xmake.lua | 2 | ||||
| -rw-r--r-- | tests/projects/windows/idl/test_rpc_noserver/xmake.lua | 2 | ||||
| -rw-r--r-- | xmake/rules/platform/windows/idl/idl.lua | 1 |
3 files changed, 2 insertions, 3 deletions
diff --git a/tests/projects/windows/idl/test_rpc/xmake.lua b/tests/projects/windows/idl/test_rpc/xmake.lua index 3eba457d6..584994678 100644 --- a/tests/projects/windows/idl/test_rpc/xmake.lua +++ b/tests/projects/windows/idl/test_rpc/xmake.lua @@ -2,6 +2,6 @@ add_rules("mode.debug", "mode.release") target("idltest_rpc") set_kind("binary") - add_files("src/*.idl" ) + add_files("src/*.idl", {client = true, server = true}) add_files("src/*.c") add_syslinks("Rpcrt4") diff --git a/tests/projects/windows/idl/test_rpc_noserver/xmake.lua b/tests/projects/windows/idl/test_rpc_noserver/xmake.lua index c44a6433b..25c43d6a2 100644 --- a/tests/projects/windows/idl/test_rpc_noserver/xmake.lua +++ b/tests/projects/windows/idl/test_rpc_noserver/xmake.lua @@ -2,6 +2,6 @@ add_rules("mode.debug", "mode.release") target("idltest_rpc_noserver") set_kind("binary") - add_files("src/*.idl", { server = false } ) + add_files("src/*.idl", {client = true, server = false}) add_files("src/*.c") add_syslinks("Rpcrt4") diff --git a/xmake/rules/platform/windows/idl/idl.lua b/xmake/rules/platform/windows/idl/idl.lua index 7e8036a3b..1014b866e 100644 --- a/xmake/rules/platform/windows/idl/idl.lua +++ b/xmake/rules/platform/windows/idl/idl.lua @@ -100,7 +100,6 @@ function generate_single(target, sourcefile, opt) path(sourcefile) }) - local dependfile = path.join(autogendir, path.basename(sourcefile) .. ".idl.d") depend.on_changed(function() progress.show(opt.progress or 0, "${color.build.object}generating.idl %s", sourcefile) os.vrunv(midl.program, flags, { envs = msvc:runenvs() }) |
