summaryrefslogtreecommitdiff
path: root/tests/projects
diff options
context:
space:
mode:
authorruki <[email protected]>2018-06-14 22:38:41 +0800
committerruki <[email protected]>2018-06-14 09:52:09 +0800
commitec8068f4d052e4c4536fd485f9c9eb815e451397 (patch)
tree22944defd9f3f91ccf16a1d277be151d0df164e9 /tests/projects
parent16b501fbc388f1b207faf1475602388b9e09983e (diff)
add before_load and after_load for rule
Diffstat (limited to 'tests/projects')
-rw-r--r--tests/projects/wdk/wdm/msdsm/xmake.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/projects/wdk/wdm/msdsm/xmake.lua b/tests/projects/wdk/wdm/msdsm/xmake.lua
index 069f69767..d7a8804c6 100644
--- a/tests/projects/wdk/wdm/msdsm/xmake.lua
+++ b/tests/projects/wdk/wdm/msdsm/xmake.lua
@@ -25,3 +25,10 @@ target("sampledsm")
-- add links
add_links("mpio")
+ on_load(function (target)
+
+ import("core.project.config")
+ print(target:values("wdk.env.winver") or config.get("wdk_winver"))
+ local ntddi_version = import("os.winver").ntddi_version(target:values("wdk.env.winver") or config.get("wdk_winver"))
+ print(ntddi_version)
+ end)