summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMole Shang <[email protected]>2023-08-08 00:03:23 +0800
committerMole Shang <[email protected]>2023-08-08 00:09:32 +0800
commit835352cffe91b137127e506cfcb851bd3c53a8e2 (patch)
treefea15f37389975924f5e819583cbe9080739a2f8
parent787e9a060b53316c00011c91ed254d2243484ba7 (diff)
downloadhinata-835352cffe91b137127e506cfcb851bd3c53a8e2.tar.gz
hinata-835352cffe91b137127e506cfcb851bd3c53a8e2.tar.bz2
hinata-835352cffe91b137127e506cfcb851bd3c53a8e2.zip
xmake: use msvc on Windows to link shared ffmpeg library
-rw-r--r--xmake.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/xmake.lua b/xmake.lua
index 2483c15..9b9883d 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -2,7 +2,7 @@ add_rules("mode.debug", "mode.release", "mode.releasedbg", "mode.minsizerel")
add_requires("nuklear", "nuklear_glfw_gl3", "nuklear_fonts", "glew", "glfw", "tinyfiledialogs",
"c11threads", "pcre2",
- "cjson", "tomlc99")
+ "cjson", "ffmpeg", "tomlc99")
add_requires("libcurl", { configs = { zlib = true } })
if is_plat("linux") then
@@ -10,8 +10,9 @@ if is_plat("linux") then
end
if is_plat("windows") then
- set_arch("x86")
- set_toolchains("llvm")
+ set_runtimes("MD")
+ set_toolchains("msvc")
+ set_toolset("cc", "clang-cl")
end
target("hinata")