mirror of https://github.com/OpenMW/openmw.git
modified builtin_scripts to be macOS aware; simplified things as the SHADER and MYGUI dir were just pointing to the OpenMW_BINARY_DIR anyway, so removing the code duplication
parent
48573b1278
commit
a9bf53d4ed
@ -1,8 +1,20 @@
|
||||
file(GLOB_RECURSE BUILTIN_SCRIPTS LIST_DIRECTORIES false RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} CONFIGURE_DEPENDS "*")
|
||||
if (NOT DEFINED OPENMW_BINARY_ROOT)
|
||||
return()
|
||||
endif()
|
||||
|
||||
foreach (f ${BUILTIN_SCRIPTS})
|
||||
if (NOT ("CMakeLists.txt" STREQUAL "${f}"))
|
||||
copy_resource_file("${CMAKE_CURRENT_SOURCE_DIR}/${f}" "${OpenMW_BINARY_DIR}" "resources/vfs/${f}")
|
||||
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_BINARY_ROOT} ${DDIRRELATIVE} "builtin.omwscripts")
|
||||
|
||||
set(DDIRRELATIVE resources/vfs/openmw_aux)
|
||||
copy_all_resource_files(${CMAKE_CURRENT_SOURCE_DIR} ${OPENMW_BINARY_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_BINARY_ROOT} ${DDIRRELATIVE} "${LUA_SCRIPTS_FILES}")
|
||||
|
Loading…
Reference in New Issue