update pvmp3dec cmake , support windows

This commit is contained in:
oahcy 2022-05-24 16:57:32 +08:00
parent a8555aadda
commit 1254471cc2
2 changed files with 8 additions and 3 deletions

View File

@ -62,9 +62,16 @@ if(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h "#pragma once\n#define OSCL_UNUSED_ARG(x) (void)(x)")
endif()
if(WINDOWS OR NX_WINDOWS)
target_compile_options(pvmp3dec PRIVATE
#-fsanitize=signed-integer-overflow
/FI ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h
#
)
else()
target_compile_options(pvmp3dec PRIVATE
#-fsanitize=signed-integer-overflow
-include ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h
#
)
endif()

View File

@ -139,9 +139,7 @@
uint16 pvmp3_decode_huff_cw_tab0(tmp3Bits *pMainData)
{
#if (CC_PLATFORM != CC_PLATFORM_NX_WINDOWS)
OSCL_UNUSED_ARG(pMainData);
#endif
return(0);
}