[cmake]: make h264e and jpege removable

Change-Id: If3f726313e9b7d98bbcbe014ba6a12ac0447ce46
Signed-off-by: hertz.wang <wangh@rock-chips.com>
This commit is contained in:
hertz.wang
2018-05-25 19:25:00 +08:00
committed by Herman Chen
parent 83ff127132
commit 347aeedbe8
2 changed files with 10 additions and 1 deletions

View File

@@ -2,6 +2,11 @@
add_subdirectory(dummy) add_subdirectory(dummy)
if(HAVE_H264E)
add_subdirectory(h264) add_subdirectory(h264)
endif()
if(HAVE_JPEGE)
add_subdirectory(jpeg)
endif()
add_subdirectory(jpeg)

View File

@@ -71,8 +71,12 @@ static const MppHalApi *hw_apis[] = {
#if HAVE_JPEGD #if HAVE_JPEGD
&hal_api_jpegd, &hal_api_jpegd,
#endif #endif
#if HAVE_H264E
&hal_api_h264e, &hal_api_h264e,
#endif
#if HAVE_JPEGE
&hal_api_jpege, &hal_api_jpege,
#endif
&hal_api_dummy_dec, &hal_api_dummy_dec,
&hal_api_dummy_enc, &hal_api_dummy_enc,
}; };