208 lines
3.4 KiB
CMake
Executable File
208 lines
3.4 KiB
CMake
Executable File
if (CONFIG_SOC_BK7258) # CONFIG_SOC_BK7258
|
|
if (CONFIG_MEDIA)
|
|
set(incs include pipeline)
|
|
|
|
|
|
if (CONFIG_MEDIA_APP)
|
|
set(srcs
|
|
cli/media_cli.c
|
|
app/media_app.c
|
|
comm/comm_act.c
|
|
)
|
|
endif() #CONFIG_MEDIA_APP
|
|
|
|
if (CONFIG_MEDIA_APP)
|
|
list(APPEND srcs
|
|
app/aud_intf.c
|
|
app/aud_tras.c
|
|
)
|
|
endif()
|
|
|
|
if (CONFIG_MEDIA_APP AND CONFIG_AUD_INTF_TEST)
|
|
list(APPEND srcs
|
|
cli/aud_intf_demo.c
|
|
)
|
|
endif()
|
|
|
|
if (CONFIG_MEDIA_MAJOR)
|
|
set(srcs
|
|
core/media_ui.c
|
|
comm/frame_buffer.c
|
|
)
|
|
endif() #CONFIG_MEDIA_MAJOR
|
|
|
|
if (CONFIG_MEDIA_MINOR) #CONFIG_MEDIA_MINOR
|
|
set(srcs
|
|
)
|
|
endif() #CONFIG_MEDIA_MINOR
|
|
|
|
|
|
if ((CONFIG_CPU_CNT GREATER 1))
|
|
list(APPEND srcs
|
|
mb/mailbox_act.c
|
|
)
|
|
endif()
|
|
|
|
if (CONFIG_DVP_CAMERA OR CONFIG_USB_UVC)
|
|
list(APPEND incs camera)
|
|
list(APPEND srcs
|
|
camera/camera_act.c
|
|
)
|
|
|
|
if (CONFIG_DVP_CAMERA)
|
|
list(APPEND srcs
|
|
camera/dvp.c
|
|
)
|
|
endif()
|
|
|
|
if (CONFIG_USB_UVC)
|
|
list(APPEND srcs
|
|
camera/uvc.c
|
|
)
|
|
endif()
|
|
|
|
if (0)
|
|
list(APPEND srcs
|
|
camera/net_camera.c
|
|
)
|
|
endif()
|
|
|
|
endif()#(CONFIG_DVP_CAMERA OR CONFIG_USB_UVC)
|
|
|
|
if (CONFIG_WIFI_TRANSFER)
|
|
|
|
if (CONFIG_MEDIA_APP)
|
|
list(APPEND srcs
|
|
transfer/transfer_app_act.c
|
|
)
|
|
endif()
|
|
|
|
if (CONFIG_MEDIA_MAJOR)
|
|
list(APPEND srcs
|
|
transfer/transfer_major_act.c
|
|
)
|
|
endif()
|
|
|
|
endif()#CONFIG_WIFI_TRANSFER
|
|
|
|
if (CONFIG_USB_TRANSFER)
|
|
|
|
if (CONFIG_MEDIA_APP)
|
|
list(APPEND srcs
|
|
transfer/usb_app_act.c
|
|
)
|
|
endif()
|
|
|
|
if (CONFIG_MEDIA_MAJOR)
|
|
list(APPEND srcs
|
|
transfer/usb_major_act.c
|
|
)
|
|
endif()
|
|
|
|
endif()#CONFIG_WIFI_TRANSFER
|
|
|
|
if (CONFIG_IMAGE_STORAGE)
|
|
|
|
if (CONFIG_MEDIA_APP)
|
|
list(APPEND srcs
|
|
storage/storage_app_act.c
|
|
)
|
|
endif()
|
|
|
|
if (CONFIG_MEDIA_MAJOR)
|
|
list(APPEND srcs
|
|
storage/storage_major_act.c
|
|
)
|
|
endif()
|
|
|
|
endif()#CONFIG_IMAGE_STORAGE
|
|
|
|
if (CONFIG_LCD)
|
|
list(APPEND srcs
|
|
lcd/lcd_act.c
|
|
)
|
|
endif()
|
|
|
|
|
|
if (CONFIG_LCD_ROTATE OR CONFIG_LCD_HW_PFC)
|
|
list(APPEND srcs
|
|
lcd/lcd_rotate.c
|
|
lcd/lcd_calc.c
|
|
)
|
|
endif()
|
|
|
|
if (CONFIG_LCD_HW_DECODE OR CONFIG_LCD_SW_DECODE)
|
|
list(APPEND srcs
|
|
lcd/lcd_decode.c
|
|
)
|
|
endif()
|
|
|
|
if (CONFIG_MEDIA_SCALE)
|
|
list(APPEND srcs
|
|
lcd/lcd_scale.c
|
|
)
|
|
endif()
|
|
|
|
if (CONFIG_MEDIA_PIPELINE)
|
|
list(APPEND srcs
|
|
pipeline/jpeg_decode_pipeline.c
|
|
pipeline/software_decode_pipeline.c
|
|
pipeline/lcd_scale_pipeline.c
|
|
pipeline/yuv_rotate_pipeline.c
|
|
pipeline/uvc_pipeline_act.c
|
|
pipeline/jpeg_decode_list.c
|
|
pipeline/jpeg_get_pipeline.c
|
|
pipeline/h264_encode_pipeline.c
|
|
)
|
|
endif()
|
|
|
|
if (CONFIG_MEDIA_MAJOR)
|
|
list(APPEND srcs
|
|
aud/aud_tras_drv.c
|
|
)
|
|
endif()
|
|
|
|
if (CONFIG_MEDIA_MAJOR)
|
|
if (CONFIG_MEDIA_BT_AUDIO)
|
|
list(APPEND srcs
|
|
bt/bt_audio_act.c
|
|
)
|
|
endif()
|
|
endif()
|
|
|
|
|
|
if ((CONFIG_CPU_CNT GREATER 1))
|
|
list(APPEND incs mailbox)
|
|
list(APPEND srcs
|
|
mailbox/media_mailbox_list_util.c
|
|
)
|
|
|
|
if (CONFIG_MEDIA_APP)
|
|
list(APPEND srcs
|
|
mailbox/media_app_mailbox.c
|
|
#mailbox/media_app_test.c
|
|
)
|
|
endif()#CONFIG_MEDIA_APP
|
|
|
|
if (CONFIG_MEDIA_MAJOR)
|
|
list(APPEND srcs
|
|
mailbox/media_major_mailbox.c
|
|
)
|
|
endif()#CONFIG_MEDIA_MAJOR
|
|
|
|
if (CONFIG_MEDIA_MINOR)
|
|
list(APPEND srcs
|
|
mailbox/media_minor_mailbox.c
|
|
pipeline/jpeg_decode_pipeline_cp2.c
|
|
)
|
|
endif()#CONFIG_MEDIA_MINOR
|
|
|
|
endif()#(CONFIG_CPU_CNT GREATER 1)
|
|
|
|
|
|
|
|
endif()# CONFIG_MEDIA
|
|
|
|
endif() # CONFIG_SOC_BK7258
|
|
armino_component_register(SRCS "${srcs}" INCLUDE_DIRS "${incs}" PRIV_REQUIRES bk_cli lvgl net_transfer audio_pipeline avdk_libs video unity media_utils bk_draw_blend display_service )
|