Add wgpu to linux packaging

This commit is contained in:
Nikita Lisitsa 2024-06-18 12:35:22 +03:00
parent 7537338bdb
commit 7218730e7c
2 changed files with 16 additions and 2 deletions

View file

@ -54,6 +54,14 @@ RUN mv libpng.so `objdump -p libpng.so | grep SONAME | awk '{print $2}'`
RUN cp `readlink -f /usr/lib/x86_64-linux-gnu/libmpg123.so` libmpg123.so RUN cp `readlink -f /usr/lib/x86_64-linux-gnu/libmpg123.so` libmpg123.so
RUN mv libmpg123.so `objdump -p libmpg123.so | grep SONAME | awk '{print $2}'` RUN mv libmpg123.so `objdump -p libmpg123.so | grep SONAME | awk '{print $2}'`
# Install wgpu-native
RUN wget https://github.com/gfx-rs/wgpu-native/releases/download/v0.19.4.1/wgpu-linux-x86_64-release.zip
RUN mkdir -p wgpu-native
RUN unzip wgpu-*.zip -d wgpu-native
RUN rm wgpu-*.zip
RUN mkdir -p wgpu-native/install
RUN mv wgpu-native/libwgpu_native.a wgpu-native/install
# Install toolchain file & main packaging script # Install toolchain file & main packaging script
COPY toolchain.cmake . COPY toolchain.cmake .
COPY package.sh . COPY package.sh .

View file

@ -11,4 +11,10 @@ set(PSEMEK_PACKAGE_COPY_FILES
${PSEMEK_PACKAGE_ROOT}/sdl2/install/lib/libSDL2-2.0.so.0 ${PSEMEK_PACKAGE_ROOT}/sdl2/install/lib/libSDL2-2.0.so.0
) )
list(APPEND CMAKE_PREFIX_PATH "${PSEMEK_PACKAGE_ROOT}/sdl2/install") list(APPEND CMAKE_PREFIX_PATH
"${PSEMEK_PACKAGE_ROOT}/sdl2/install"
)
set(WGPU_NATIVE_ROOT
"${PSEMEK_PACKAGE_ROOT}/wgpu-native/install"
)