-
-
Notifications
You must be signed in to change notification settings - Fork 464
Open
Labels
Description
Xmake Version
xmake v3.0.0+master.262293e90
Operating System Version and Architecture
Windows 11 Professionnal Version 24H2 26100.4652
Describe Bug
I ran this:
xmake f -p windows -a x64 -m debug --toolchain=msvc
The other libraries for diligent fx built succesfully, but glslang and usd does errors.
When built in release mode, glslang and usd compiles sucesfully but diligenttools does a compile error.
Sorry the logs are in French
Expected Behavior
glslang, USD, diligenttools compiles with no error both on debug and release and i can use diligentfx
Project Configuration
I guess you can just do add_requires("diligentfx", {version = "v2.5.6"})
but heres my xmake.lua:
add_rules("mode.debug", "mode.release")
add_rules("plugin.vsxmake.autoupdate")
add_rules("plugin.compile_commands.autoupdate", {outputdir = "."})
local coreLibs = {
}
local coreLibNames = {}
for _, lib in ipairs(coreLibs) do
local name = lib[1]
local options = lib[2] or {}
add_requires(name, options)
end
local engineLibs = {
{"diligentfx", {version = "v2.5.6"}}
}
local engineLibNames = {}
for _, lib in ipairs(engineLibs) do
local name = lib[1]
local options = lib[2] or {}
add_requires(name, options)
table.insert(engineLibNames, name)
end
local exampleGameLibs = {
}
local exampleGameLibNames = {}
for _, lib in ipairs(exampleGameLibs) do
local name = lib[1]
local options = lib[2] or {}
add_requires(name, options)
table.insert(exampleGameLibNames, name)
end
target("core")
set_languages("cxx23")
set_kind("shared")
add_files("core/**.cpp")
add_headerfiles("core/**.hpp")
add_includedirs(".", {public = true})
add_rules("utils.symbols.export_all", {export_classes = true})
add_packages(coreLibNames, {public = true})
target("engine")
set_languages("cxx23")
set_kind("shared")
add_files("engine/src/**.cpp")
add_headerfiles("engine/src/**.hpp")
add_deps("core", {public = true})
add_rules("utils.symbols.export_all", {export_classes = true})
add_packages(engineLibNames, {public = true})
target("example_game")
set_languages("cxx23")
set_kind("binary")
add_files("example_game/src/**.cpp")
add_headerfiles("example_game/src/**.hpp")
add_deps("engine")
add_packages(exampleGameLibNames)