Files
LCUI/tests/previews/xmake.lua
T
Liu 90dbba2cdd feat(widgets): migrate textinput editing to the stb_textedit kernel
- vendor stb_textedit and add the textedit core with canonical text
- map edit indices to pd_text layout for caret, selection and hit testing
- support caret movement, selection, clipboard, undo/redo, password,
  read-only and multiline editing
- render selections with the accent color and configurable text color
- fix caret scaling, input-group repaint and zero-size reflow regressions
- add integration tests, a preview page and internals notes
2026-11-22 20:11:20 +08:00

43 lines
1.1 KiB
Lua

local previews = {
"flex_layout",
"block_layout",
"widget_opacity",
"spinner",
"spinner_perf",
"shimmer",
"scrollbar",
"cursor",
"breadcrumb"
}
for _, topic in ipairs(previews) do
target("preview-" .. topic:gsub("_", "-"))
set_default(false)
set_kind("binary")
set_group("previews")
set_rundir("../fixtures")
add_includedirs("../helpers")
add_files("preview_" .. topic .. ".c",
"../scenes/" .. topic .. "_scene.c")
add_deps("lcui")
end
target("preview-textinput-edit")
set_default(false)
set_kind("binary")
set_group("previews")
set_rundir("../fixtures")
add_includedirs("../helpers")
add_files("preview_textinput_edit.c")
add_deps("lcui")
target("preview-flex-layout-percentage-wrap") set_default(false)
set_kind("binary")
set_group("previews")
set_rundir("../fixtures")
add_includedirs("../helpers")
add_defines("LCUI_FLEX_LAYOUT_PERCENTAGE_WRAP_PREVIEW")
add_files("preview_flex_layout_percentage_wrap.c",
"../integration/test_flex_layout_percentage_wrap.c")
add_deps("lcui")