diff options
| author | ruki <[email protected]> | 2025-08-23 00:57:15 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-08-23 00:57:15 +0800 |
| commit | c10e76fd359799670b1bd5b62a3ae4572fbd4349 (patch) | |
| tree | 2f3d26e0e4b9bb32097fbd7333a7de132ff0b466 | |
| parent | c28b80c6c6ddb1ec816841d7104870869a9210b0 (diff) | |
fix protobuf for target deps #6701
| -rw-r--r-- | xmake/modules/core/project/depend.lua | 2 | ||||
| -rw-r--r-- | xmake/rules/protobuf/xmake.lua | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/xmake/modules/core/project/depend.lua b/xmake/modules/core/project/depend.lua index ca05dc2f4..1369796bb 100644 --- a/xmake/modules/core/project/depend.lua +++ b/xmake/modules/core/project/depend.lua @@ -70,7 +70,7 @@ end -- show diagnosis info? function _is_show_diagnosis_info() - local show = _g.is_show_diagnosis_info + local show = true-- _g.is_show_diagnosis_info if show == nil then if project.policy("diagnosis.check_build_deps") then show = true 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) |
