22 lines
661 B
CMake
22 lines
661 B
CMake
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
|
set(EXTRA_COMPONENT_DIRS "${CMAKE_CURRENT_LIST_DIR}/components")
|
|
|
|
macro(rg_setup_compile_options)
|
|
component_compile_options(
|
|
-D${RG_BUILD_TARGET}=1
|
|
-DRETRO_GO=1
|
|
${ARGV}
|
|
)
|
|
|
|
if(RG_ENABLE_NETPLAY)
|
|
component_compile_options(-DRG_ENABLE_NETWORKING -DRG_ENABLE_NETPLAY)
|
|
elseif(RG_ENABLE_NETWORKING)
|
|
component_compile_options(-DRG_ENABLE_NETWORKING)
|
|
endif()
|
|
|
|
if(RG_ENABLE_PROFILING)
|
|
# Still debating whether -fno-inline is necessary or not...
|
|
component_compile_options(-DRG_ENABLE_PROFILING -finstrument-functions)
|
|
endif()
|
|
endmacro()
|