We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec24d8c commit ca95aa5Copy full SHA for ca95aa5
1 file changed
src/gui/xmake.lua
@@ -2,7 +2,7 @@ if not has_config("lc_glfw_use_xrepo") then
2
target("glfw")
3
set_basename("luisa-ext-glfw")
4
_config_project({
5
- project_kind = "static"
+ project_kind = "shared"
6
})
7
8
on_load(function(target)
@@ -20,6 +20,10 @@ if not has_config("lc_glfw_use_xrepo") then
20
elseif target:is_plat("windows") then
21
target:add("defines", "_GLFW_WIN32")
22
target:add("syslinks", "User32", "Gdi32", "Shell32")
23
+ target:add('defines', '_GLFW_BUILD_DLL')
24
+ target:add('defines', 'GLFW_DLL', {
25
+ interface = true
26
+ })
27
elseif target:is_plat("macosx") then
28
target:add("files", path.normalize(path.join(os.scriptdir(), "../ext/glfw/src/*.m")))
29
target:add("mflags", "-fno-objc-arc")
0 commit comments