fix pak with fontfiles(we cant compress fontfiles)

This commit is contained in:
houzh 2023-09-18 14:44:14 +08:00
parent 80f90d0ee0
commit a70fc30002
2 changed files with 5 additions and 3 deletions

View File

@ -13,8 +13,10 @@ TOOLCHAINS["D211"]=${TOPDIR}/cmake/riscv64-d211-toolchain.cmake
TOOLCHAINS["HI3536"]=${TOPDIR}/cmake/hisiv500-toolchain.cmake
declare -A DEPLIBS #key/value dict,key is platform,value is deplibs dir in vcpkg,key must be uppercase
VCPKGROOT=/opt/vcpkg
#VCPKGROOT=${HOME}/vcpkg
#VCPKGROOT=/opt/vcpkg
VCPKGROOT=${HOME}/vcpkg
DEPLIBS["X64"]=${VCPKGROOT}/installed/x64-linux-dynamic
DEPLIBS["SIGMA"]=${VCPKGROOT}/installed/arm-linux-dynamic
DEPLIBS["RISCVD211"]=${VCPKGROOT}/installed/riscv64-linux-dynamic

View File

@ -27,7 +27,7 @@ function(CreatePAK project ResourceDIR PakPath rhpath)
add_custom_target(${project}_assets
COMMAND ${Python_EXECUTABLE} ${CMAKE_SOURCE_DIR}/scripts/idgen.py ${project} ${ResourceDIR} ${rhpath}
COMMAND zip -q -r -D -1 ${PakPath} ./ -x "*.swp" ".*" "*.png" "*.jpg" "*.jpeg"
COMMAND zip -q -r -D -0 ${PakPath} ./ -i "*.png" "*.jpg" "*.jpeg"
COMMAND zip -q -r -D -0 ${PakPath} ./ -i "*.png" "*.jpg" "*.jpeg" "*.ttf" "*.otf" "*.ttc"
WORKING_DIRECTORY ${ResourceDIR}
COMMENT "Pckage Assets from ${ResourceDIR} to:${PakPath}")
add_dependencies(${project} ${project}_assets)