improve imguiemo (#1305)

pull/1308/head
ruki 3 years ago committed by GitHub
parent 2f1a8a8eab
commit abe8473b28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      packages/i/imguizmo/xmake.lua

@ -4,24 +4,28 @@ package("imguizmo")
set_description("Immediate mode 3D gizmo for scene editing and other controls based on Dear Imgui")
add_urls("https://github.com/CedricGuillemet/ImGuizmo.git")
add_versions("1.83", "14a91c16e40b585fd96314826fa6d506311dbe5c")
add_deps("imgui")
on_install("macosx", "linux", "windows", "mingw", "android", "iphoneos", function (package)
local xmake_lua = [[
local imgui = package:dep("imgui")
local configs = imgui:requireinfo().configs
if configs then
configs = string.serialize(configs, {strip = true, indent = false})
end
local xmake_lua = ([[
add_rules("mode.debug", "mode.release")
set_languages("c++14")
add_requires("imgui v1.83-docking")
add_requires("imgui %s", {configs = %s})
target("imguizmo")
set_kind("static")
add_files("*.cpp")
add_headerfiles("*.h")
add_packages("imgui")
]]
]]):format(imgui:version_str(), configs)
io.writefile("xmake.lua", xmake_lua)
import("package.tools.xmake").install(package)
end)

Loading…
Cancel
Save