Add wgpu to linux packaging
This commit is contained in:
parent
7537338bdb
commit
7218730e7c
2 changed files with 16 additions and 2 deletions
|
|
@ -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 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
|
||||
COPY toolchain.cmake .
|
||||
COPY package.sh .
|
||||
COPY package.sh .
|
||||
|
|
@ -11,4 +11,10 @@ set(PSEMEK_PACKAGE_COPY_FILES
|
|||
${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"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue