From ef99de52cdba31eec636256da37be6c468637dd0 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 13 Feb 2025 23:41:34 +0800 Subject: update harmony sdk --- xmake/modules/detect/sdks/find_hdk.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xmake/modules/detect/sdks/find_hdk.lua b/xmake/modules/detect/sdks/find_hdk.lua index 99a9ad60b..18acc73c1 100644 --- a/xmake/modules/detect/sdks/find_hdk.lua +++ b/xmake/modules/detect/sdks/find_hdk.lua @@ -32,7 +32,11 @@ function _find_hdkdir(sdkdir) if not sdkdir then if not sdkdir then if is_host("macosx") then - sdkdir = find_directory("native", "~/Library/Huawei/Sdk/*/*") + local paths = { + "~/Library/OpenHarmony/Sdk/*", + "~/Library/Huawei/Sdk/*/*" -- for old version, deprecated + } + sdkdir = find_directory("native", paths) elseif is_host("windows") then sdkdir = find_directory("native", "~/Huawei/Sdk/*/*") end -- cgit v1.3.1