Skip to content

Commit a846ae8

Browse files
committed
fix(eui-neo): bridge platform header for generated TU
1 parent cdacb42 commit a846ae8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pkgs/e/compat.eui-neo.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ package = {
137137
-- `*/include` carries the umbrella `eui_neo.h` and `eui/*.h`; `*` is the
138138
-- verdir root, which is what makes the `"components/…"`, `"core/…"` and
139139
-- `"3rd/stb_image.h"` quoted includes resolve. Upstream marks both PUBLIC.
140-
include_dirs = { "*/include", "*", "mcpp_generated" },
140+
include_dirs = { "*/include", "*", "mcpp_generated", "mcpp_generated/.." },
141141

142142
-- mcpp#233/#240: every package in a link emits its objects into ONE
143143
-- flat obj/ dir keyed by source basename. Upstream's
@@ -171,6 +171,10 @@ package = {
171171
#if defined(MCPP_FEATURE_SDL2)
172172
# define EUI_WINDOW_BACKEND_SDL2 1
173173
#endif
174+
]==],
175+
["mcpp_generated/core/platform/platform.h"] = [==[
176+
/* Forward the upstream quoted include through the generated include root. */
177+
#include "../../../core/platform/platform.h"
174178
]==],
175179
["mcpp_generated/eui_neo_platform_tu.cpp"] = [==[
176180
/* Uniquely named forwarding TU — see the mcpp#233 note in the descriptor. */

0 commit comments

Comments
 (0)