From 835352cffe91b137127e506cfcb851bd3c53a8e2 Mon Sep 17 00:00:00 2001 From: Mole Shang <135e2@135e2.dev> Date: Tue, 8 Aug 2023 00:03:23 +0800 Subject: xmake: use msvc on Windows to link shared ffmpeg library --- xmake.lua | 7 ++++--- 1 file 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") -- cgit v1.2.3