summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-08-25 11:03:05 +0800
committerGitHub <[email protected]>2025-08-25 11:03:05 +0800
commit57a0f0e067544e6d4767a4fa37102ce949d465e3 (patch)
treecae4506870f21edd43a7652ecdbb61ccb7e78f41
parent7c08a859433be31e67aa4ef4a7968060a1e57ca5 (diff)
parent1f5c24e5bc885f51cb35e4ad54bf62d125af51d1 (diff)
Merge pull request #6738 from xmake-io/protobuf
fix protobuf for target deps #6701
-rw-r--r--xmake/rules/protobuf/xmake.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/xmake/rules/protobuf/xmake.lua b/xmake/rules/protobuf/xmake.lua
index a3e6d6732..6aa60d53c 100644
--- a/xmake/rules/protobuf/xmake.lua
+++ b/xmake/rules/protobuf/xmake.lua
@@ -25,8 +25,7 @@ rule("protobuf.cpp")
after_load(function(target)
import("proto").load(target, "cxx")
end)
- -- generate build commands
- before_buildcmd_file(function(target, batchcmds, sourcefile_proto, opt)
+ on_preparecmd_file(function(target, batchcmds, sourcefile_proto, opt)
import("proto").buildcmd_pfile(target, batchcmds, sourcefile_proto, "cxx", opt)
end)
on_buildcmd_file(function(target, batchcmds, sourcefile_proto, opt)
@@ -41,7 +40,7 @@ rule("protobuf.c")
after_load(function(target)
import("proto").load(target, "cc")
end)
- before_buildcmd_file(function(target, batchcmds, sourcefile_proto, opt)
+ on_preparecmd_file(function(target, batchcmds, sourcefile_proto, opt)
import("proto").buildcmd_pfile(target, batchcmds, sourcefile_proto, "cc", opt)
end)
on_buildcmd_file(function(target, batchcmds, sourcefile_proto, opt)