代码拉取完成,页面将自动刷新
同步操作将从 openEuler/umdk 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# UBus code makefile
cmake_minimum_required(VERSION 3.12.1)
project(UBus)
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
set(CMAKE_C_COMPILER "/usr/bin/gcc")
set(CMAKE_FLAGS_PUBILC " -Wall -Werror -Wfloat-equal -Wtrampolines -g -O2 -rdynamic -Wl,-z,noexecstack,-z,relro,-z,now \
-fno-strict-aliasing -fstack-protector-strong -D_FORTIFY_SOURCE=2 -fPIE -pie -fPIC")
# PERF_CYCLE ENABLE
if("${PERF_CYCLE}" STREQUAL "enable")
set(CMAKE_FLAGS_PUBILC "${CMAKE_FLAGS_PUBILC} -DPERF_CYCLE_FLAG")
endif("${PERF_CYCLE}" STREQUAL "enable")
# TPS DISABLE
if("${TPS}" STREQUAL "disable")
set(CMAKE_FLAGS_PUBILC "${CMAKE_FLAGS_PUBILC} -Dtransport_service_disable")
message(STATUS "TPS disable!")
elseif("${TPS}" STREQUAL "")
set(TPS "enable")
endif()
set(CMAKE_FLAGS_ARM64 " -march=armv8-a+crc -DUB_ARCH_ARM64")
set(CMAKE_FLAGS_x86_64 " -msse4.2 -DUB_ARCH_X86_64")
if("${X86_CROSS_COMPILATION}" STREQUAL "enable")
set(CMAKE_FLAGS_x86_64 " -DUB_ARCH_X86_64")
message(STATUS "x86 cross compilation, disabling msse4.2!")
endif()
if("${CMAKE_HOST_SYSTEM_PROCESSOR}" STREQUAL "aarch64")
set(CMAKE_C_FLAGS "${CMAKE_FLAGS_PUBILC} ${CMAKE_FLAGS_ARM64}")
set(CMAKE_CXX_FLAGS "${CMAKE_FLAGS_PUBILC} ${CMAKE_FLAGS_ARM64} -std=c++11")
else()
set(CMAKE_C_FLAGS "${CMAKE_FLAGS_PUBILC} ${CMAKE_FLAGS_x86_64}")
set(CMAKE_CXX_FLAGS "${CMAKE_FLAGS_PUBILC} ${CMAKE_FLAGS_x86_64} -std=c++11")
endif()
set(CMAKE_SKIP_RPATH TRUE)
message(STATUS "CMAKE_C_FLAGS = ${CMAKE_C_FLAGS}")
include_directories(include)
add_subdirectory(include)
add_subdirectory(common)
add_subdirectory(lib)
add_subdirectory(tools)
add_subdirectory(hw)
if("${TPS}" STREQUAL "enable")
add_subdirectory(transport_service)
endif()
# uninstall target
if(NOT TARGET uninstall)
configure_file(
"cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
add_custom_target(uninstall
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
endif()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。