diff --git a/CMakeLists.txt b/CMakeLists.txt index d60c6ec..a74d66a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,15 @@ project(MMP_SAMPLE DESCRIPTION "MMP(Multi Media Plugin) Sample") set(MMP_SAMPLE_SRCS) set(MMP_SAMPLE_INCS) -set(TMP_SAMPLE_LIBS) + +# Linux 下使用, 主要用于排查内存问题 +# if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") +# set(ASAN_FLAGS "-fsanitize=address -fno-omit-frame-pointer") +# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ASAN_FLAGS}") +# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ASAN_FLAGS}") +# set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${ASAN_FLAGS}") +# set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${ASAN_FLAGS}") +# endif() list(APPEND MMP_SAMPLE_INCS ${CMAKE_CURRENT_SOURCE_DIR}/Core @@ -43,4 +51,4 @@ target_include_directories(test_gl_transition PUBLIC ${MMP_SAMPLE_INCS}) add_executable(test_decoder ${MMP_SAMPLE_SRCS} ${CMAKE_CURRENT_SOURCE_DIR}/test_decoder.cpp) target_link_libraries(test_decoder ${MMP_SAMPLE_LIBS}) -target_include_directories(test_decoder PUBLIC ${MMP_SAMPLE_INCS}) +target_include_directories(test_decoder PUBLIC ${MMP_SAMPLE_INCS}) \ No newline at end of file diff --git a/Core b/Core index d74ee80..5efd889 160000 --- a/Core +++ b/Core @@ -1 +1 @@ -Subproject commit d74ee80bb6ac8e33ee358a82d44d18744566b6bb +Subproject commit 5efd889817b76e431617e8692ff79b910e81ef9b