代码拉取完成,页面将自动刷新
同步操作将从 FengQiangjian/linux-rga 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
if(NOT CMAKE_BUILD_TYPE)
message("default to Release build for GCC builds")
set(CMAKE_BUILD_TYPE Release CACHE STRING
"Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel."
FORCE)
endif()
execute_process(COMMAND bash ${CMAKE_CURRENT_SOURCE_DIR}/version.sh)
if(CMAKE_BUILD_TARGET STREQUAL ndk)
message("set ndk toolchain")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error -DLOG_TAG=librga")
add_compile_options(-DLINUX)
add_compile_options(-DANDROID_VNDK)
endif()
if(CMAKE_BUILD_TARGET STREQUAL buildroot)
message("set buildroot toolchain")
set(CMAKE_TOOLCHAIN_FILE
${CMAKE_SOURCE_DIR}/buildroot.cmake)
include(${CMAKE_SOURCE_DIR}/buildroot.cmake)
add_compile_options(-DLINUX)
set(CMAKE_CXX_FLAGS "-std=c++11 -O2 -pthread")
endif()
cmake_minimum_required(VERSION 2.8)
#project name
project(librga)
include_directories(
./
./include
external/libdrm
external/libdrm/include/drm
hardware/libhardware/include/hardware
hardware/libhardware/modules/gralloc
system/core/liblog/includeNDROID_NDK_REVISION_REGEX
system/core/libion/kernel-headers
)
set(IM2D_SRCS
core/RockchipRga.cpp
core/GrallocOps.cpp
core/NormalRga.cpp
core/NormalRgaApi.cpp
core/RgaUtils.cpp
im2d_api/im2d.cpp)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUN_NEED_GL")
if(CMAKE_BUILD_TARGET STREQUAL ndk)
string(REPLACE "-DANDROID" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
endif()
add_library(rga SHARED ${IM2D_SRCS})
#build im2d test
set(IM2D_DEMO_SRCS
samples/im2d_api_demo/rgaImDemo.cpp
samples/im2d_api_demo/args.cpp)
add_executable(im2d ${IM2D_DEMO_SRCS})
target_link_libraries(im2d
rga)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。