summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Rendina <[email protected]>2025-04-15 15:40:44 +0200
committerChristian Rendina <[email protected]>2025-04-15 15:40:44 +0200
commitd9d3b81f0804717fa1055c7106de72445d2b2264 (patch)
treefb58f325c4c1e9e54a18914563330fdc67d8f0c4
parent228a13777b5c0c5e8c0c09f1eefa73add81c269e (diff)
Address formatting
-rw-r--r--tests/projects/idl/test_norpc/src/test_iid.c2
-rw-r--r--tests/projects/idl/test_norpc_proxy/src/test_iid.c2
-rw-r--r--tests/projects/idl/test_rpc/src/test_iid.c2
-rw-r--r--tests/projects/idl/test_rpc_noserver/src/test_iid.c2
-rw-r--r--xmake/rules/platform/windows/idl/idl.lua8
5 files changed, 6 insertions, 10 deletions
diff --git a/tests/projects/idl/test_norpc/src/test_iid.c b/tests/projects/idl/test_norpc/src/test_iid.c
index b581c32fb..79b344b9a 100644
--- a/tests/projects/idl/test_norpc/src/test_iid.c
+++ b/tests/projects/idl/test_norpc/src/test_iid.c
@@ -1,7 +1,7 @@
#include <lockowner.h>
#include <stdio.h>
-int main() {
+int main(int argc, char** argv) {
IID g = IID_ILockOwner;
printf("GUID: %x-%x-%x-%llx", g.Data1, g.Data2, g.Data3, *(unsigned long long*)g.Data4);
return 0;
diff --git a/tests/projects/idl/test_norpc_proxy/src/test_iid.c b/tests/projects/idl/test_norpc_proxy/src/test_iid.c
index b581c32fb..79b344b9a 100644
--- a/tests/projects/idl/test_norpc_proxy/src/test_iid.c
+++ b/tests/projects/idl/test_norpc_proxy/src/test_iid.c
@@ -1,7 +1,7 @@
#include <lockowner.h>
#include <stdio.h>
-int main() {
+int main(int argc, char** argv) {
IID g = IID_ILockOwner;
printf("GUID: %x-%x-%x-%llx", g.Data1, g.Data2, g.Data3, *(unsigned long long*)g.Data4);
return 0;
diff --git a/tests/projects/idl/test_rpc/src/test_iid.c b/tests/projects/idl/test_rpc/src/test_iid.c
index b835c9fde..56e1e6e47 100644
--- a/tests/projects/idl/test_rpc/src/test_iid.c
+++ b/tests/projects/idl/test_rpc/src/test_iid.c
@@ -2,7 +2,7 @@
#include <example.h>
#include <stdio.h>
-int main() {
+int main(int argc, char** argv) {
MyInterface_v1_0_c_ifspec = (void*)1;
MyInterface_v1_0_s_ifspec = (void*)1;
printf("set ok\n");
diff --git a/tests/projects/idl/test_rpc_noserver/src/test_iid.c b/tests/projects/idl/test_rpc_noserver/src/test_iid.c
index 8edfb7807..041033894 100644
--- a/tests/projects/idl/test_rpc_noserver/src/test_iid.c
+++ b/tests/projects/idl/test_rpc_noserver/src/test_iid.c
@@ -2,7 +2,7 @@
#include <example.h>
#include <stdio.h>
-int main() {
+int main(int argc, char** argv) {
MyInterface_v1_0_c_ifspec = (void*)1;
printf("call ok\n");
return 0;
diff --git a/xmake/rules/platform/windows/idl/idl.lua b/xmake/rules/platform/windows/idl/idl.lua
index 17190be12..f44611424 100644
--- a/xmake/rules/platform/windows/idl/idl.lua
+++ b/xmake/rules/platform/windows/idl/idl.lua
@@ -36,7 +36,6 @@ function generate_single(target, sourcefile, opt)
local incs = table.wrap(target:get("includedirs") or {})
local undefs = table.wrap(target:get("undefines") or {})
-
if fileconfig then
if fileconfig.server ~= nil then
enable_server = fileconfig.server
@@ -55,7 +54,6 @@ function generate_single(target, sourcefile, opt)
end
end
-
local flags = {"/nologo"}
table.join2(flags, table.wrap(target:values("idl.flags")))
@@ -112,8 +110,6 @@ function generate_single(target, sourcefile, opt)
)
end
--- add *.idl for rc file
-
function configure(target)
local sourcebatch = target:sourcebatches()["platform.windows.idl"]
if sourcebatch then
@@ -147,6 +143,8 @@ function build_idlfiles(target, jobgraph, sourcebatch, opt)
local name = path.basename(sourcefile)
+ -- we don't have a way to detect which midl files are generated
+
addsrc(name, "_i.c")
if enable_proxy then
@@ -157,8 +155,6 @@ function build_idlfiles(target, jobgraph, sourcebatch, opt)
addsrc(name, "_s.c")
end
- -- we don't have a way to detect which midl files are generated
-
local batchcxx = {
rulename = "c.build",
sourcekind = "cc",