summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChi Huu Huynh <[email protected]>2023-11-23 10:31:17 +0000
committerChi Huu Huynh <[email protected]>2023-11-23 10:31:17 +0000
commit18d41db2172836a010738d976c9d990c5b066449 (patch)
treeb3d5b8938db4369a6bb6a64bbf3d1aeb2b0196e4
parent874a065223ebf5e2b6716f01efc3d37dc987c6b9 (diff)
Add `includedirs`
-rw-r--r--xmake/rules/protobuf/proto.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/rules/protobuf/proto.lua b/xmake/rules/protobuf/proto.lua
index 0648d6a71..cc18c5390 100644
--- a/xmake/rules/protobuf/proto.lua
+++ b/xmake/rules/protobuf/proto.lua
@@ -306,6 +306,9 @@ function build_cxfiles(target, batchjobs, sourcebatch, opt, sourcekind)
sourcefile_cx_grpc = target:autogenfile(sourcefile_proto, {rootdir = rootdir, filename = filename_grpc})
end
+ -- add includedirs
+ target:add("includedirs", sourcefile_dir, {public = public})
+
-- add objectfile
local objectfile = target:objectfile(sourcefile_cx)
table.insert(sourcebatch_cx.sourcefiles, sourcefile_cx)