Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 34 additions & 2 deletions pkgs/e/compat.eui-neo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
-- genuinely vendored single-file headers live at its root (stb_image,
-- nanosvg, nanosvgrast) and the sources include them as `"3rd/stb_image.h"`.
--
-- The build recipe below tracks upstream `CMakeLists.txt` (v0.5.7): CORE_SOURCES
-- The build recipe below tracks upstream `CMakeLists.txt` (v0.5.8): CORE_SOURCES
-- plus the OpenGL backend and, for the glfw window backend, `ime_bridge.c`.
-- 0.5.5 grew a Shadertoy subsystem: render_backend.h and include/eui/types.h now
-- include core/render/shadertoy.h unconditionally, and opengl_backend.cpp calls
Expand All @@ -37,8 +37,19 @@
-- as before, and the x11_*.cpp / tray-gio pieces are not in CORE_SOURCES.
-- The new `EUI_ENABLE_TRAY` option does not affect this package either.
--
-- 0.5.8: CORE_SOURCES gains exactly one TU — `core/render/image_stream.cpp`,
-- the new dynamic-texture (CPU-side pixel upload, e.g. decoded video frames)
-- surface. It is self-contained (its own header plus the STL), and the rest of
-- the release is backend internals for it (opengl/vulkan image/upload paths,
-- both backends' shaders), a new `EUI_APP_RUNNER` umbrella-main variant aimed
-- at the xmake-repo packaging (off by default, irrelevant here), and an
-- FFmpeg-based EXAMPLE behind `EUI_BUILD_FFMPEG_VIDEO_EXAMPLE` — app-level,
-- not part of the lib. `3rd/`, the tray bridge, the window/input backends and
-- both app-main TUs' source lists are unchanged, so deps/features/flags all
-- carry over.
--
-- All `mcpp` paths are GLOBS relative to the verdir; the leading `*/` absorbs
-- the GitHub tarball's `EUI-NEO-0.5.7/` wrap layer.
-- the GitHub tarball's `EUI-NEO-0.5.8/` wrap layer.
package = {
spec = "1",
namespace = "compat",
Expand Down Expand Up @@ -113,6 +124,14 @@ package = {
CN = "https://gitcode.com/mcpp-res/eui-neo/releases/download/0.5.7/eui-neo-0.5.7.tar.gz" },
sha256 = "2d3ec0a36e34b98d13dbdaf67afa4fe178cb4b52841eb17529517cb48be43551",
},
-- 0.5.8 has no CN mirror yet (never published to mcpp-res), so it
-- is a plain-string GLOBAL url — check_mirror_urls.lua exempts
-- plain strings, and the maintainer flips it to { GLOBAL, CN }
-- when the mirror lands. sha256 stays the same.
["0.5.8"] = {
url = "https://github.com/sudoevolve/EUI-NEO/archive/refs/tags/v0.5.8.tar.gz",
sha256 = "004d46f34d986030b1351080b381bcc48053eb24ebbdf52602b78364f285cd38",
},
},
macosx = {
["0.5.3"] = {
Expand All @@ -138,6 +157,11 @@ package = {
CN = "https://gitcode.com/mcpp-res/eui-neo/releases/download/0.5.7/eui-neo-0.5.7.tar.gz" },
sha256 = "2d3ec0a36e34b98d13dbdaf67afa4fe178cb4b52841eb17529517cb48be43551",
},
-- 0.5.8: see the linux block — plain-string GLOBAL, no CN mirror.
["0.5.8"] = {
url = "https://github.com/sudoevolve/EUI-NEO/archive/refs/tags/v0.5.8.tar.gz",
sha256 = "004d46f34d986030b1351080b381bcc48053eb24ebbdf52602b78364f285cd38",
},
},
windows = {
["0.5.3"] = {
Expand All @@ -163,6 +187,11 @@ package = {
CN = "https://gitcode.com/mcpp-res/eui-neo/releases/download/0.5.7/eui-neo-0.5.7.tar.gz" },
sha256 = "2d3ec0a36e34b98d13dbdaf67afa4fe178cb4b52841eb17529517cb48be43551",
},
-- 0.5.8: see the linux block — plain-string GLOBAL, no CN mirror.
["0.5.8"] = {
url = "https://github.com/sudoevolve/EUI-NEO/archive/refs/tags/v0.5.8.tar.gz",
sha256 = "004d46f34d986030b1351080b381bcc48053eb24ebbdf52602b78364f285cd38",
},
},
},

Expand Down Expand Up @@ -229,6 +258,9 @@ package = {
"*/core/platform/tray_bridge.c",
-- Render layer (backend-agnostic)
"*/core/render/image.cpp",
-- 0.5.8: the dynamic-texture surface (CPU-side pixel upload). Self-
-- contained — its own header plus the STL; no new dep.
"*/core/render/image_stream.cpp",
"*/core/render/image_facade.cpp",
"*/core/render/image_source.cpp",
"*/core/render/primitive.cpp",
Expand Down
2 changes: 1 addition & 1 deletion tests/examples/eui-neo-app-main/mcpp.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ name = "eui-neo-app-main-tests"
version = "0.1.0"

[dependencies.compat]
eui-neo = { version = "0.5.7", features = ["app-main"] }
eui-neo = { version = "0.5.8", features = ["app-main"] }
2 changes: 1 addition & 1 deletion tests/examples/eui-neo-markdown/mcpp.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ version = "0.1.0"
# what switches components/markdown.h from its fallback to the real parser.

[dependencies.compat]
eui-neo = { version = "0.5.7", features = ["markdown"] }
eui-neo = { version = "0.5.8", features = ["markdown"] }
2 changes: 1 addition & 1 deletion tests/examples/eui-neo-sdl2/mcpp.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ version = "0.1.0"
# into a real libcurl-backed implementation. The render backend stays OpenGL,
# unnamed — naming a feature no longer costs you the defaults.
[dependencies.compat]
eui-neo = { version = "0.5.7", features = ["sdl2", "network"] }
eui-neo = { version = "0.5.8", features = ["sdl2", "network"] }
2 changes: 1 addition & 1 deletion tests/examples/eui-neo-tray/mcpp.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ name = "eui-neo-tray-tests"
version = "0.1.0"

[dependencies.compat]
eui-neo = "0.5.7"
eui-neo = "0.5.8"
2 changes: 1 addition & 1 deletion tests/examples/eui-neo-vulkan/mcpp.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version = "0.1.0"
# package resolves the exclusive choice in its own preprocessor from the
# MCPP_FEATURE_* flags. The window backend stays GLFW, unnamed.
[dependencies.compat]
eui-neo = { version = "0.5.7", features = ["vulkan"] }
eui-neo = { version = "0.5.8", features = ["vulkan"] }

[build]
cxxflags = ["-DHAVE_EUI_VULKAN=1"]
2 changes: 1 addition & 1 deletion tests/examples/eui-neo-window/mcpp.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ name = "eui-neo-window-tests"
version = "0.1.0"

[dependencies.compat]
eui-neo = "0.5.7"
eui-neo = "0.5.8"
2 changes: 1 addition & 1 deletion tests/examples/eui-neo/mcpp.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ name = "eui-neo-tests"
version = "0.1.0"

[dependencies.compat]
eui-neo = "0.5.7"
eui-neo = "0.5.8"
Loading