imgui-filebrowser: add package (#5472)
parent
df6221e9c2
commit
6c2e0c7d4c
1 changed files with 25 additions and 0 deletions
@ -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…
Reference in new issue