Files
ppsspp/ext/basis_universal/CMakeLists.txt
Henrik RydgårdandClaude Sonnet 5 e8f85f7804 Fix missing zstd include/link deps in Common and basis_universal
Common and basis_universal call zstd functions directly but never
declared the dependency after being split into their own
CMakeLists.txt files, relying on directory-scope include_directories()
that no longer reached them. Worked on Linux via system zstd.h, but
broke the Android NDK build which has no such fallback.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XMv4XdM5dThs9Avr5FPXRv
2026-07-24 20:49:29 +02:00

29 lines
933 B
CMake

add_library(basis_universal STATIC
basisu.h
basisu_containers.h
basisu_containers_impl.h
basisu_file_headers.h
basisu_transcoder.cpp
basisu_transcoder.h
basisu_transcoder_internal.h
basisu_transcoder_tables_astc.inc
basisu_transcoder_tables_astc_0_255.inc
basisu_transcoder_tables_atc_55.inc
basisu_transcoder_tables_atc_56.inc
basisu_transcoder_tables_bc7_m5_alpha.inc
basisu_transcoder_tables_bc7_m5_color.inc
basisu_transcoder_tables_dxt1_5.inc
basisu_transcoder_tables_dxt1_6.inc
basisu_transcoder_tables_pvrtc2_45.inc
basisu_transcoder_tables_pvrtc2_alpha_33.inc
basisu_transcoder_uastc.h
)
# basisu_transcoder.cpp calls ZSTD_decompress()/ZSTD_isError() directly for KTX2 supercompression.
if(USE_SYSTEM_ZSTD)
target_include_directories(basis_universal PRIVATE ${ZSTD_INCLUDE_DIR})
target_link_libraries(basis_universal ${ZSTD_LIBRARY})
else()
target_link_libraries(basis_universal libzstd_static)
endif()