mirror of https://github.com/OpenMW/openmw.git
Merge branch 'mac_mac_great_again_lua_edition' into 'master'
modified builtin_scripts to be macOS aware; simplified things as the SHADER... Closes #6459 See merge request OpenMW/openmw!1463pull/3225/head
commit
ad492c5735
@ -1,8 +1,20 @@
|
||||
file(GLOB_RECURSE BUILTIN_SCRIPTS LIST_DIRECTORIES false RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} CONFIGURE_DEPENDS "*")
|
||||
|
||||
foreach (f ${BUILTIN_SCRIPTS})
|
||||
if (NOT ("CMakeLists.txt" STREQUAL "${f}"))
|
||||
copy_resource_file("${CMAKE_CURRENT_SOURCE_DIR}/${f}" "${OpenMW_BINARY_DIR}" "resources/vfs/${f}")
|
||||
if (NOT DEFINED OPENMW_RESOURCES_ROOT)
|
||||
return()
|
||||
endif()
|
||||
endforeach (f)
|
||||
|
||||
# Copy resource files into the build directory
|
||||
set(SDIR ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
set(DDIRRELATIVE resources/vfs)
|
||||
copy_all_resource_files(${CMAKE_CURRENT_SOURCE_DIR} ${OPENMW_RESOURCES_ROOT} ${DDIRRELATIVE} "builtin.omwscripts")
|
||||
|
||||
set(DDIRRELATIVE resources/vfs/openmw_aux)
|
||||
copy_all_resource_files(${CMAKE_CURRENT_SOURCE_DIR} ${OPENMW_RESOURCES_ROOT} ${DDIRRELATIVE} "openmw_aux/util.lua")
|
||||
|
||||
set(LUA_SCRIPTS_FILES
|
||||
scripts/omw/camera.lua
|
||||
scripts/omw/head_bobbing.lua
|
||||
scripts/omw/third_person.lua
|
||||
)
|
||||
|
||||
set(DDIRRELATIVE resources/vfs/scripts/omw)
|
||||
copy_all_resource_files(${CMAKE_CURRENT_SOURCE_DIR} ${OPENMW_RESOURCES_ROOT} ${DDIRRELATIVE} "${LUA_SCRIPTS_FILES}")
|
||||
|
Loading…
Reference in New Issue