diff options
author | Mole Shang <[email protected]> | 2023-08-08 00:03:23 +0800 |
---|---|---|
committer | Mole Shang <[email protected]> | 2023-08-08 00:09:32 +0800 |
commit | 835352cffe91b137127e506cfcb851bd3c53a8e2 (patch) | |
tree | fea15f37389975924f5e819583cbe9080739a2f8 | |
parent | 787e9a060b53316c00011c91ed254d2243484ba7 (diff) | |
download | hinata-835352cffe91b137127e506cfcb851bd3c53a8e2.tar.gz hinata-835352cffe91b137127e506cfcb851bd3c53a8e2.tar.bz2 hinata-835352cffe91b137127e506cfcb851bd3c53a8e2.zip |
xmake: use msvc on Windows to link shared ffmpeg library
-rw-r--r-- | xmake.lua | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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") |