-
i copied libcoreclr.dylib to ./build/macosx/arm64/debug, but not work add_rules("mode.debug")
local MonoSDK = "E:/Code/MonoSDK"
--if macos then set MonoSDK to user Documents dir
if is_plat("macosx") then
MonoSDK = os.getenv("HOME") .. "/Documents/Code/MonoSDK"
end
print('MonoSDK: ' .. MonoSDK)
target("MonoDemo")
set_kind("binary")
add_files("src/*.cpp")
add_includedirs(MonoSDK .. "/include")
add_linkdirs(MonoSDK .. "/lib")
add_links(
"coreclr",
"mono-component-debugger-static",
"mono-component-debugger-stub-static",
"mono-component-diagnostics_tracing-static",
"mono-component-diagnostics_tracing-stub-static",
"mono-component-hot_reload-static",
"mono-component-hot_reload-stub-static",
"mono-component-marshal-ilgen-static",
"mono-component-marshal-ilgen-stub-static"
)
if (is_plat('windows')) then
add_links(
"mono-profiler-aot",
"monosgen-2.0"
)
end
|
Beta Was this translation helpful? Give feedback.
Answered by
waruqi
Nov 24, 2025
Replies: 1 comment
-
|
use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Unreal-3D
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
use
xmake runorexport DYLD_LIBRARY_PATH=oradd_rpathdirs