mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 04:20:29 +00:00
Merge branch 'fix_build' into 'master'
Fix build See merge request OpenMW/openmw!3350
This commit is contained in:
commit
a1b7c0c3d5
@ -1,16 +1,15 @@
|
||||
#include "soundbindings.hpp"
|
||||
#include "luabindings.hpp"
|
||||
|
||||
#include "../mwbase/environment.hpp"
|
||||
#include "../mwbase/soundmanager.hpp"
|
||||
#include "../mwbase/windowmanager.hpp"
|
||||
#include "../mwbase/world.hpp"
|
||||
|
||||
#include "../mwworld/esmstore.hpp"
|
||||
|
||||
#include <components/esm3/loadsoun.hpp>
|
||||
#include <components/misc/resourcehelpers.hpp>
|
||||
#include <components/vfs/pathutil.hpp>
|
||||
|
||||
#include "../mwworld/esmstore.hpp"
|
||||
|
||||
#include "luamanagerimp.hpp"
|
||||
|
||||
namespace MWLua
|
||||
@ -161,9 +160,7 @@ namespace MWLua
|
||||
},
|
||||
[]() { return MWBase::Environment::get().getSoundManager()->sayActive(MWWorld::ConstPtr()); });
|
||||
|
||||
// Sound store
|
||||
using SoundStore = MWWorld::Store<ESM::Sound>;
|
||||
const SoundStore* soundStore = &MWBase::Environment::get().getWorld()->getStore().get<ESM::Sound>();
|
||||
sol::usertype<SoundStore> soundStoreT = lua.new_usertype<SoundStore>("ESM3_SoundStore");
|
||||
soundStoreT[sol::meta_function::to_string]
|
||||
= [](const SoundStore& store) { return "ESM3_SoundStore{" + std::to_string(store.getSize()) + " sounds}"; };
|
||||
@ -176,7 +173,7 @@ namespace MWLua
|
||||
soundStoreT[sol::meta_function::pairs] = lua["ipairsForArray"].template get<sol::function>();
|
||||
soundStoreT[sol::meta_function::ipairs] = lua["ipairsForArray"].template get<sol::function>();
|
||||
|
||||
api["sounds"] = soundStore;
|
||||
api["sounds"] = &MWBase::Environment::get().getWorld()->getStore().get<ESM::Sound>();
|
||||
|
||||
// Sound record
|
||||
auto soundT = lua.new_usertype<ESM::Sound>("ESM3_Sound");
|
||||
|
@ -520,10 +520,15 @@ target_link_libraries(components
|
||||
SQLite::SQLite3
|
||||
smhasher
|
||||
${ICU_LIBRARIES}
|
||||
yaml-cpp
|
||||
ZLIB::ZLIB
|
||||
)
|
||||
|
||||
if(yaml-cpp_VERSION VERSION_GREATER_EQUAL 0.8.0)
|
||||
target_link_libraries(components yaml-cpp::yaml-cpp)
|
||||
else()
|
||||
target_link_libraries(components yaml-cpp)
|
||||
endif()
|
||||
|
||||
if(Boost_VERSION_STRING VERSION_GREATER_EQUAL 1.77.0)
|
||||
target_link_libraries(components ${Boost_ATOMIC_LIBRARY})
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user