fix[cmake]: Remove HAVE_DRM option

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I6ce230a7e85472acca5feafc9ad84effb222f57a
This commit is contained in:
Herman Chen
2023-11-29 18:18:50 +08:00
parent 81a7d8d812
commit 318bfc1b78
3 changed files with 1 additions and 11 deletions

View File

@@ -23,6 +23,5 @@ fi
# generate Makefile # generate Makefile
cmake -DCMAKE_BUILD_TYPE=Release \ cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TOOLCHAIN_FILE=./arm.linux.cross.cmake \ -DCMAKE_TOOLCHAIN_FILE=./arm.linux.cross.cmake \
-DHAVE_DRM=ON \
-G "Unix Makefiles" \ -G "Unix Makefiles" \
${MPP_TOP} ${MPP_TOP}

1
debian/rules vendored
View File

@@ -29,5 +29,4 @@ endif
override_dh_auto_configure: override_dh_auto_configure:
dh_auto_configure -- \ dh_auto_configure -- \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DHAVE_DRM=ON \
-DARM_MIX_32_64=ON -DARM_MIX_32_64=ON

View File

@@ -10,20 +10,12 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_REENTRANT -D_GNU_SOURCE")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
if (HAVE_DRM)
add_definitions(-DHAVE_DRM)
set(DRM_FILES allocator/allocator_drm.c)
message(STATUS "compile with drm support")
else()
message(STATUS "compile without drm support")
endif()
set(MPP_ALLOCATOR set(MPP_ALLOCATOR
allocator/allocator_std.c allocator/allocator_std.c
allocator/allocator_ion.c allocator/allocator_ion.c
allocator/allocator_ext_dma.c allocator/allocator_ext_dma.c
allocator/allocator_dma_heap.c allocator/allocator_dma_heap.c
${DRM_FILES} allocator/allocator_drm.c
) )
set(MPP_DRIVER set(MPP_DRIVER