1DOLLY 72PACKAGE imgui-x113REQUIRES HOST runtime@04REQUIRES HOST sockets@056# Dear ImGui's SDL2 example as an X client: SDL2 from the sdl2 package's7# sources, configured where X's libraries are, with upstream's X11 video8# driver in place of Dolly's, so it draws on the server DISPLAY names. ImGui9# and the example are the imgui package's sources, unchanged.10FROM /v0.1.4/demos/x11/Dollyfile-x11-build ff3eec2e743dc9930c83702df4b879c7f164bd9ad362d82f37a233a45819caa811REQUIRES HEADER libc12REQUIRES HEADER cpp13REQUIRES TOOL c++14REQUIRES TOOL cmake15REQUIRES TOOL make16REQUIRES TOOL mkdir17REQUIRES TOOL cp18REQUIRES TOOL rm19REQUIRES TOOL tar2021SOURCE /v0.1.4/dist/static/sdl2/source.tar fcd2ae74c5a7324eacd403d8cd4d719092268df8b470e3e552df5aebf54f3ce0 /tmp/sdl2/source.tar22SLOP tar -xf /tmp/sdl2/source.tar -C /23# As the sdl2 package configures it, with X's libraries. They are static, so24# CMake's link probes name what libX11 links (pkg-config --static --libs x11).25# Without XFixes (clipboard tracking, pointer barriers): SDL declares26# XFixesSelectSelectionInput to return Status, libXfixes returns void, and27# WebAssembly traps on the call.28SLOP cmake -S /tmp/sdl2/source -B /tmp/sdl2/build \29  -DCMAKE_SYSTEM_NAME=Dolly -DCMAKE_SYSTEM_PROCESSOR=wasm64 \30  -DCMAKE_INSTALL_PREFIX=/tmp/sdl2/install -DCMAKE_INSTALL_LIBDIR=lib \31  -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS_RELEASE=-O1 \32  -DSDL_SHARED=OFF -DSDL_STATIC=ON -DSDL_TEST=OFF -DSDL_TESTS=OFF \33  -DSDL_AUDIO=OFF -DSDL_HAPTIC=OFF -DSDL_SENSOR=OFF \34  -DSDL_THREADS=OFF -DSDL_LOADSO=OFF -DSDL_POWER=OFF -DSDL_HIDAPI=OFF \35  -DSDL_ASSEMBLY=OFF -DSDL_GCC_ATOMICS=ON -DSDL_SYSTEM_ICONV=OFF \36  -DSDL_OPENGL=OFF -DSDL_OPENGLES=OFF -DSDL_VULKAN=OFF -DSDL_RENDER_METAL=OFF \37  -DSDL_X11=ON -DSDL_X11_SHARED=OFF -DCMAKE_EXE_LINKER_FLAGS='-lxcb -lXau -ldolly-sockets' \38  -DSDL_X11_XFIXES=OFF -DSDL_DOLLY_VIDEO=OFF39SLOP cmake --build /tmp/sdl2/build40SLOP cmake --install /tmp/sdl2/build4142SOURCE /v0.1.4/dist/static/imgui/source.tar b2e714273ba9e28e383dcfcde11630181c5aff0dbd196c4efe4d99b0b71186f2 /tmp/imgui.tar43SLOP tar -xf /tmp/imgui.tar -C /44SLOP CWD /tmp/imgui/source c++ -O2 -I. -Ibackends -I/tmp/sdl2/install/include/SDL2 \45  imgui.cpp imgui_draw.cpp imgui_tables.cpp imgui_widgets.cpp imgui_demo.cpp \46  backends/imgui_impl_sdl2.cpp backends/imgui_impl_sdlrenderer2.cpp examples/example_sdl2_sdlrenderer2/main.cpp \47  -L/tmp/sdl2/install/lib -lSDL2 -lXi -lXfixes -lXrender -lXext -lX11 -lxcb -lXau -ldolly-sockets -lm -o /usr/bin/imgui-x1148SLOP mkdir -p /usr/share/licenses/imgui-x1149SLOP cp /tmp/sdl2/source/LICENSE.txt /usr/share/licenses/imgui-x11/SDL2-LICENSE.txt50SLOP cp /usr/share/licenses/imgui/LICENSE.txt /usr/share/licenses/imgui-x11/imgui-LICENSE.txt51SLOP rm -rf /tmp/sdl2 /tmp/imgui /tmp/imgui.tar5253EXPORTS TOOL imgui-x1154# Upstream's example asks for an accelerated renderer; SDL's software one is55# the renderer here.56EXPORTS ENV SDL_RENDER_DRIVER software57FILE /usr/share/licenses/imgui-x11/SDL2-LICENSE.txt58FILE /usr/share/licenses/imgui-x11/imgui-LICENSE.txt59FOLDER /usr/share/licenses/libXi60FOLDER /usr/share/licenses/libXfixes61FOLDER /usr/share/licenses/libXrender62FOLDER /usr/share/licenses/libXext63FOLDER /usr/share/licenses/libX1164FOLDER /usr/share/licenses/libxcb65FOLDER /usr/share/licenses/libXau66FILE /usr/share/man/cat1/imgui-x11.167    imgui-x11: Dear ImGui's demo window (upstream's example_sdl2_sdlrenderer2)68    as an X client. Run it where DISPLAY names an X server.69