summaryrefslogtreecommitdiff
path: root/xmake/core/project/project.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-09-27 22:43:20 +0800
committerruki <[email protected]>2022-09-27 22:43:20 +0800
commit25e9a13d183e4639e258d31b73e4281b1242081f (patch)
tree6ca43eafa047f0a803c2a2825879560ca2f8af66 /xmake/core/project/project.lua
parentac1ae70b7226b32ff62d19b54465c42ecd70e99c (diff)
rewrite build rule deps
Diffstat (limited to 'xmake/core/project/project.lua')
-rw-r--r--xmake/core/project/project.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua
index 62f1f2398..989dc0302 100644
--- a/xmake/core/project/project.lua
+++ b/xmake/core/project/project.lua
@@ -50,8 +50,10 @@ local language = require("language/language")
local sandbox_os = require("sandbox/modules/os")
local sandbox_module = require("sandbox/modules/import/core/sandbox/module")
--- register project to platform
+-- register project to platform, rule and target
platform._PROJECT = project
+target._PROJECT = project
+rule._PROJECT = project
-- the current os is belong to the given os?
function project._api_is_os(interp, ...)