mirror of
https://github.com/OpenMW/openmw.git
synced 2025-05-17 19:41:28 +00:00
Refactor files/builtin_scripts/CMakeLists.txt
This commit is contained in:
parent
43057dbb68
commit
a0590d91ce
1 changed files with 7 additions and 14 deletions
|
@ -2,29 +2,22 @@ if (NOT DEFINED OPENMW_RESOURCES_ROOT)
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Copy resource files into the build directory
|
set(LUA_BUILTIN_FILES
|
||||||
set(SDIR ${CMAKE_CURRENT_SOURCE_DIR})
|
builtin.omwscripts
|
||||||
set(DDIRRELATIVE resources/vfs)
|
|
||||||
copy_all_resource_files(${CMAKE_CURRENT_SOURCE_DIR} ${OPENMW_RESOURCES_ROOT} ${DDIRRELATIVE} "builtin.omwscripts")
|
|
||||||
|
|
||||||
set(LUA_AUX_FILES
|
|
||||||
openmw_aux/util.lua
|
openmw_aux/util.lua
|
||||||
openmw_aux/time.lua
|
openmw_aux/time.lua
|
||||||
openmw_aux/calendar.lua
|
openmw_aux/calendar.lua
|
||||||
)
|
|
||||||
|
|
||||||
set(DDIRRELATIVE resources/vfs/openmw_aux)
|
|
||||||
copy_all_resource_files(${CMAKE_CURRENT_SOURCE_DIR} ${OPENMW_RESOURCES_ROOT} ${DDIRRELATIVE} "${LUA_AUX_FILES}")
|
|
||||||
|
|
||||||
set(LUA_SCRIPTS_FILES
|
|
||||||
scripts/omw/ai.lua
|
scripts/omw/ai.lua
|
||||||
scripts/omw/camera.lua
|
scripts/omw/camera.lua
|
||||||
scripts/omw/head_bobbing.lua
|
scripts/omw/head_bobbing.lua
|
||||||
scripts/omw/third_person.lua
|
scripts/omw/third_person.lua
|
||||||
|
|
||||||
|
i18n/Calendar/en.lua
|
||||||
)
|
)
|
||||||
|
|
||||||
set(DDIRRELATIVE resources/vfs/scripts/omw)
|
foreach (f ${LUA_BUILTIN_FILES})
|
||||||
copy_all_resource_files(${CMAKE_CURRENT_SOURCE_DIR} ${OPENMW_RESOURCES_ROOT} ${DDIRRELATIVE} "${LUA_SCRIPTS_FILES}")
|
copy_resource_file("${CMAKE_CURRENT_SOURCE_DIR}/${f}" "${OPENMW_RESOURCES_ROOT}" "resources/vfs/${f}")
|
||||||
|
endforeach (f)
|
||||||
|
|
||||||
set(DDIRRELATIVE resources/vfs/i18n/Calendar)
|
|
||||||
copy_all_resource_files(${CMAKE_CURRENT_SOURCE_DIR} ${OPENMW_RESOURCES_ROOT} ${DDIRRELATIVE} "i18n/Calendar/en.lua")
|
|
||||||
|
|
Loading…
Reference in a new issue