diff --git a/CMakeLists.txt b/CMakeLists.txt index 83ffe15..b748fb3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,8 +33,6 @@ add_definitions( -DWANT_RAW_DATA_SECTOR=1 -DWANT_SUBCODE=1 -DVERIFY_BLOCK_CRC=1 - -DCHDR_FLAC_BACKEND_MICROFLAC - -DMICRO_FLAC_DISABLE_OGG -DMINIZ_NO_ARCHIVE_APIS -DMINIZ_NO_DEFLATE_APIS -DMINIZ_NO_STDIO @@ -48,7 +46,6 @@ sdk_add_include_directories( . usb fpga ui core utils chd thirdparty/libchdr/include thirdparty/libchdr/src - thirdparty/micro-flac/include ) # Add source files @@ -68,29 +65,7 @@ file(GLOB LIBCHDR_SOURCES "thirdparty/libchdr/deps/zstd-1.5.7/zstddeclib.c" ) -# libchdr_flac.c is the dr_flac backend; exactly one backend is compiled, so -# it goes when micro-flac comes in. -list(REMOVE_ITEM LIBCHDR_SOURCES - "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/libchdr/src/libchdr_flac.c") - -set(LIBCHDR_MICROFLAC_SOURCES - "thirdparty/libchdr/src/libchdr_flac_microflac.cpp" - "thirdparty/micro-flac/src/flac_decoder.cpp" - "thirdparty/micro-flac/src/decorrelation.cpp" - "thirdparty/micro-flac/src/frame_header.cpp" - "thirdparty/micro-flac/src/pcm_packing.cpp" - "thirdparty/micro-flac/src/crc.cpp" - "thirdparty/micro-flac/src/lpc.cpp" -) - -# -fno-exceptions/-fno-rtti keep libstdc++'s exception and RTTI machinery out -# of a bare-metal link, -fno-threadsafe-statics drops the __cxa_guard_* -# dependency, and -fno-use-cxa-atexit is what ESP-IDF does here - newlib does -# provide __cxa_atexit, so it links either way. -set_source_files_properties(${LIBCHDR_MICROFLAC_SOURCES} PROPERTIES - COMPILE_OPTIONS "-fno-exceptions;-fno-rtti;-fno-threadsafe-statics;-fno-use-cxa-atexit") - -target_sources(app PRIVATE ${MY_SOURCES} ${LIBCHDR_SOURCES} ${LIBCHDR_MICROFLAC_SOURCES}) +target_sources(app PRIVATE ${MY_SOURCES} ${LIBCHDR_SOURCES}) sdk_set_main_file(main.cpp) project(tangcore CXX)