mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 07:21:12 +00:00
Merge branch 'apple-silicon-arm-build' into 'master'
Get build working on Apple Silicon See merge request OpenMW/openmw!2286
This commit is contained in:
commit
36fbef1048
@ -221,9 +221,12 @@ if(APPLE)
|
||||
target_link_libraries(openmw ${COCOA_FRAMEWORK} ${IOKIT_FRAMEWORK})
|
||||
|
||||
if (FFmpeg_FOUND)
|
||||
find_library(COREVIDEO_FRAMEWORK CoreVideo)
|
||||
find_library(VDA_FRAMEWORK VideoDecodeAcceleration)
|
||||
target_link_libraries(openmw z ${COREVIDEO_FRAMEWORK} ${VDA_FRAMEWORK})
|
||||
target_link_libraries(openmw z)
|
||||
target_link_options(openmw PRIVATE "LINKER:SHELL:-framework CoreVideo"
|
||||
"LINKER:SHELL:-framework CoreMedia"
|
||||
"LINKER:SHELL:-framework VideoToolbox"
|
||||
"LINKER:SHELL:-framework AudioToolbox"
|
||||
"LINKER:SHELL:-framework VideoDecodeAcceleration")
|
||||
endif()
|
||||
endif(APPLE)
|
||||
|
||||
|
@ -104,7 +104,7 @@ void ESM::LuaScriptsCfg::adjustRefNums(const ESMReader& esm)
|
||||
throw std::runtime_error("Incorrect contentFile index");
|
||||
};
|
||||
|
||||
lua_State* L = lua_open();
|
||||
lua_State* L = luaL_newstate();
|
||||
LuaUtil::BasicSerializer serializer(adjustRefNumFn);
|
||||
|
||||
auto adjustLuaData = [&](std::string& data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user