1 Star 0 Fork 2

雪枯灵T/retro-go-yao-mio

forked from 韦东山/retro-go-yao-mio 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
base.cmake 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
set(EXTRA_COMPONENT_DIRS "${CMAKE_CURRENT_LIST_DIR}/components")
if (DEFINED "RG_TARGET_ESPLAY_S3")
message("SDKCONFIG_DEFAULTS: ${CMAKE_CURRENT_LIST_DIR}/baseS3.sdkconfig")
set(SDKCONFIG_DEFAULTS "${CMAKE_CURRENT_LIST_DIR}/baseS3.sdkconfig")
else()
message("SDKCONFIG_DEFAULTS: ${CMAKE_CURRENT_LIST_DIR}/base.sdkconfig")
set(SDKCONFIG_DEFAULTS "${CMAKE_CURRENT_LIST_DIR}/base.sdkconfig")
endif ()
macro(rg_setup_compile_options)
set(RG_TARGET "RG_TARGET_$ENV{RG_BUILD_TARGET}")
message("Target: ${RG_TARGET}")
component_compile_options(
-D${RG_TARGET}
-DRETRO_GO
${ARGV}
)
if(NOT ";${ARGV};" MATCHES ";-O[0123gs];")
# Only default to -O3 if not specified by the app
component_compile_options(-O3)
endif()
if($ENV{RG_ENABLE_NETPLAY})
component_compile_options(-DRG_ENABLE_NETWORKING -DRG_ENABLE_NETPLAY)
elseif($ENV{RG_ENABLE_NETWORKING})
component_compile_options(-DRG_ENABLE_NETWORKING)
endif()
if($ENV{RG_ENABLE_PROFILING})
# Still debating whether -fno-inline is necessary or not...
component_compile_options(-DRG_ENABLE_PROFILING -finstrument-functions)
endif()
endmacro()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xuekuling/retro-go-yao-mio.git
git@gitee.com:xuekuling/retro-go-yao-mio.git
xuekuling
retro-go-yao-mio
retro-go-yao-mio
master

搜索帮助