mirror of https://github.com/mgba-emu/mgba.git
CMake: Don't include scripting.c in libretro build
This commit is contained in:
parent
8e898b02cc
commit
a12a391fd1
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue