CMake: Don't include scripting.c in libretro build

This commit is contained in:
Vicki Pfau 2022-09-26 00:15:53 -07:00
parent 8e898b02cc
commit a12a391fd1
2 changed files with 7 additions and 1 deletions

View File

@ -866,6 +866,10 @@ if(ENABLE_EXTRA)
list(APPEND SRC ${EXTRA_SRC}) list(APPEND SRC ${EXTRA_SRC})
endif() endif()
if(ENABLE_SCRIPTING)
list(APPEND SRC ${CORE_SCRIPT_SRC})
endif()
if(NOT SKIP_LIBRARY) if(NOT SKIP_LIBRARY)
if(NOT BUILD_STATIC AND NOT BUILD_SHARED) if(NOT BUILD_STATIC AND NOT BUILD_SHARED)
set(BUILD_SHARED ON) set(BUILD_SHARED ON)

View File

@ -24,7 +24,7 @@ set(TEST_FILES
test/core.c) test/core.c)
if(ENABLE_SCRIPTING) if(ENABLE_SCRIPTING)
list(APPEND SOURCE_FILES set(SCRIPTING_FILES
scripting.c) scripting.c)
if(USE_LUA) if(USE_LUA)
@ -34,7 +34,9 @@ if(ENABLE_SCRIPTING)
endif() endif()
source_group("mCore" FILES ${SOURCE_FILES}) source_group("mCore" FILES ${SOURCE_FILES})
source_group("mCore scripting" FILES ${SCRIPTING_FILES})
source_group("mCore tests" FILES ${TEST_FILES}) source_group("mCore tests" FILES ${TEST_FILES})
export_directory(CORE SOURCE_FILES) export_directory(CORE SOURCE_FILES)
export_directory(CORE_SCRIPT SCRIPTING_FILES)
export_directory(CORE_TEST TEST_FILES) export_directory(CORE_TEST TEST_FILES)