From ef55a67e4ffd4685f4bb7458bb970721055dc330 Mon Sep 17 00:00:00 2001 From: haoruiwang <1905811497@qq.com> Date: Sun, 22 Sep 2024 11:50:53 +0800 Subject: [PATCH] =?UTF-8?q?[what]=20=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 12 ++++++++++-- Core | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) 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