From 8a47dc9742d63bf3d24b44480b443c785a70b18b Mon Sep 17 00:00:00 2001 From: Herman Chen Date: Thu, 9 Jan 2020 17:55:25 +0800 Subject: [PATCH] [hal_common]: Enable hal common module Change-Id: I2110295a7a3c947e987706bda1402b695924a96a Signed-off-by: Herman Chen --- mpp/hal/common/CMakeLists.txt | 10 ++++++++++ mpp/hal/rkenc/h264e/CMakeLists.txt | 2 +- mpp/hal/rkenc/h265e/CMakeLists.txt | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/mpp/hal/common/CMakeLists.txt b/mpp/hal/common/CMakeLists.txt index 5ee17a7b..9763a134 100644 --- a/mpp/hal/common/CMakeLists.txt +++ b/mpp/hal/common/CMakeLists.txt @@ -1,5 +1,15 @@ # vim: syntax=cmake include_directories(.) +# ---------------------------------------------------------------------------- +# add hal common file +# ---------------------------------------------------------------------------- +add_library(hal_common STATIC + hal_bufs.c + ) + +target_link_libraries(hal_common mpp_base) +set_target_properties(hal_common PROPERTIES FOLDER "mpp/hal/common") + add_subdirectory(h264) add_subdirectory(h265) diff --git a/mpp/hal/rkenc/h264e/CMakeLists.txt b/mpp/hal/rkenc/h264e/CMakeLists.txt index 6f82fc0a..e3a5d00a 100644 --- a/mpp/hal/rkenc/h264e/CMakeLists.txt +++ b/mpp/hal/rkenc/h264e/CMakeLists.txt @@ -26,5 +26,5 @@ add_library(hal_h264e_rkv STATIC ${HAL_H264E_SRC} ) -target_link_libraries(hal_h264e_rkv hal_h264e) +target_link_libraries(hal_h264e_rkv hal_h264e hal_common) set_target_properties(hal_h264e_rkv PROPERTIES FOLDER "mpp/hal") diff --git a/mpp/hal/rkenc/h265e/CMakeLists.txt b/mpp/hal/rkenc/h265e/CMakeLists.txt index 1298ff27..c37a7671 100644 --- a/mpp/hal/rkenc/h265e/CMakeLists.txt +++ b/mpp/hal/rkenc/h265e/CMakeLists.txt @@ -18,5 +18,5 @@ add_library(hal_h265e_rkv STATIC ${HAL_H265E_SRC} ) -target_link_libraries(hal_h265e_rkv hal_h265e) +target_link_libraries(hal_h265e_rkv hal_h265e hal_common) set_target_properties(hal_h265e_rkv PROPERTIES FOLDER "mpp/hal")