代码拉取完成,页面将自动刷新
同步操作将从 HiHope-RK3588/rk3588-librga 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
project(
'librga',
'cpp',
version : '2.1.0',
meson_version : '>=0.47.0',
default_options : ['warning_level=3', 'cpp_std=c++14']
)
pkgconfig = import('pkgconfig')
libdrm_dep = dependency('', required : false)
libdrm_option = get_option('libdrm')
if libdrm_option != 'false'
libdrm_dep = dependency('libdrm', version : '>= 2.4.0')
if libdrm_option == 'true' and not libdrm_dep.found()
error('libdrm requested, but not found.')
endif
endif
if libdrm_dep.found()
message('Building with libdrm.')
add_project_arguments('-DLIBDRM=1', language : 'cpp')
else
message('Building without libdrm.')
endif
libthreads_dep = dependency('threads')
add_project_arguments('-DLINUX=1', language : 'cpp')
librga_srcs = [
'core/utils/android_utils/src/android_utils.cpp',
'core/utils/drm_utils/src/drm_utils.cpp',
'core/utils/utils.cpp',
'core/GrallocOps.cpp',
'core/NormalRgaApi.cpp',
'core/NormalRga.cpp',
'core/RgaUtils.cpp',
'core/RockchipRga.cpp',
'core/RgaApi.cpp',
'core/rga_sync.cpp',
'im2d_api/src/im2d_log.cpp',
'im2d_api/src/im2d_impl.cpp',
'im2d_api/src/im2d.cpp',
]
incdir = include_directories('include', 'im2d_api', 'core/hardware', 'core/utils', 'core/3rdparty/libdrm/include/drm')
librga = shared_library(
'rga',
librga_srcs,
dependencies : [libdrm_dep, libthreads_dep],
include_directories : incdir,
version : meson.project_version(),
install : true,
)
install_headers(
'include/rga.h',
'include/drmrga.h',
'include/GrallocOps.h',
'include/RockchipRga.h',
'include/RgaMutex.h',
'include/RgaSingleton.h',
'include/RgaUtils.h',
'include/RgaApi.h',
'im2d_api/im2d.h',
'im2d_api/im2d.hpp',
'im2d_api/im2d_type.h',
'im2d_api/im2d_version.h',
'im2d_api/im2d_buffer.h',
'im2d_api/im2d_common.h',
'im2d_api/im2d_single.h',
'im2d_api/im2d_task.h',
'im2d_api/im2d_mpi.h',
'im2d_api/im2d_expand.h',
subdir : 'rga',
)
pkgconfig.generate(
libraries : librga,
filebase : 'librga',
name : 'librga',
version : meson.project_version(),
description : 'Userspace interface to Rockchip RGA 2D accelerator',
)
librga_demo_option = get_option('librga_demo')
if librga_demo_option != 'false'
demo_src = [
'samples/im2d_api_demo/rgaImDemo.cpp',
'samples/im2d_api_demo/args.cpp'
]
demo_incdir = include_directories('include', 'im2d_api')
librga_dep = dependency('librga')
executable(
'rgaImDemo',
demo_src,
include_directories : demo_incdir,
dependencies : librga_dep,
cpp_args : ['-Wno-pedantic'],
install : true,
)
endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。