imgui-filebrowser: add package (#5472)

pull/2458/merge
star9029 2 months ago committed by GitHub
parent df6221e9c2
commit 6c2e0c7d4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 25
      packages/i/imgui-filebrowser/xmake.lua

@ -0,0 +1,25 @@
package("imgui-filebrowser")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/AirGuanZ/imgui-filebrowser")
set_description("File browser implementation for dear-imgui. C++17 is required.")
set_license("MIT")
add_urls("https://github.com/AirGuanZ/imgui-filebrowser.git")
add_versions("2024.10.07", "60d4e09ab1270d94d0115ad8ec40f939e801e105")
add_deps("imgui")
on_install("macosx", "linux", "windows", "mingw", "android", "iphoneos", function (package)
os.cp("imfilebrowser.h", package:installdir("include"))
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include <imgui.h>
#include <imfilebrowser.h>
void test() {
ImGui::FileBrowser fileDialog;
}
]]}, {configs = {languages = "c++17"}}))
end)
Loading…
Cancel
Save