elsid
875a45837a
Disable -Warray-bounds due to GCC bug
...
To avoid getting warnings like:
In file included from ../../../extern/sol3/sol/compatibility.hpp:46,
from ../../../extern/sol3/sol/bytecode.hpp:27,
from ../../../extern/sol3/sol/sol.hpp:51,
from ../../../components/lua/luastate.hpp:8,
from ../../../apps/openmw/mwlua/context.hpp:4,
from ../../../apps/openmw/mwlua/soundbindings.hpp:6,
from ../../../apps/openmw/mwlua/soundbindings.cpp:1:
In member function 'void sol::stack::field_getter<T, global, raw, <template-parameter-1-4> >::get(lua_State*, Key&&, int) [with Key = const char (&)[7]; T = char [7]; bool global = false; bool raw = false; <template-parameter-1-4> = void]',
inlined from 'void sol::stack::get_field(lua_State*, Key&&, int) [with bool global = false; bool raw = false; Key = const char (&)[7]]' at ../../../extern/sol3/sol/stack_core.hpp:1210:62,
inlined from 'sol::stack::probe sol::stack::probe_field_getter<T, P, global, raw, <template-parameter-1-5> >::get(lua_State*, Key&&, int) [with Key = const char (&)[7]; T = char [7]; P = float; bool b = false; bool raw = false; <template-parameter-1-5> = void]' at ../../../extern/sol3/sol/stack_probe.hpp:41:21,
inlined from 'sol::stack::probe sol::stack::probe_field_getter<T, P, global, raw, <template-parameter-1-5> >::get(lua_State*, Key&&, int) [with Key = const char (&)[6]; T = char [6]; P = float; bool b = false; bool raw = false; <template-parameter-1-5> = void]' at ../../../extern/sol3/sol/stack_probe.hpp:35:9,
inlined from 'sol::stack::probe sol::stack::probe_get_field(lua_State*, Key&&, int) [with bool global = false; bool raw = false; C = float; Key = const char (&)[6]]' at ../../../extern/sol3/sol/stack_core.hpp:1230:78,
inlined from 'decltype(auto) sol::basic_table_core<<anonymous>, <template-parameter-1-2> >::traverse_get_deep_optional(int&, int, Key&&, Keys&& ...) const [with bool global = false; bool raw = false; sol::detail::insert_mode mode = sol::detail::none; T = sol::optional<float>; Key = const char (&)[6]; Keys = {}; bool top_level = false; ref_t = sol::basic_reference<false>]' at ../../../extern/sol3/sol/table_core.hpp:217:62,
inlined from 'decltype(auto) sol::basic_table_core<<anonymous>, <template-parameter-1-2> >::traverse_get_single(int, Keys&& ...) const [with bool raw = false; Ret = sol::optional<float>; Keys = {const char (&)[6]}; bool top_level = false; ref_t = sol::basic_reference<false>]' at ../../../extern/sol3/sol/table_core.hpp:123:83,
inlined from 'decltype(auto) sol::basic_table_core<<anonymous>, <template-parameter-1-2> >::traverse_get_single_maybe_tuple(int, Key&&) const [with bool raw = false; Ret = sol::optional<float>; Key = const char (&)[6]; bool top_level = false; ref_t = sol::basic_reference<false>]' at ../../../extern/sol3/sol/table_core.hpp:113:41,
inlined from 'decltype(auto) sol::basic_table_core<<anonymous>, <template-parameter-1-2> >::tuple_get(int, Keys&& ...) const [with bool raw = false; Ret = {sol::optional<float>}; Keys = {const char (&)[6]}; bool top_level = false; ref_t = sol::basic_reference<false>]' at ../../../extern/sol3/sol/table_core.hpp:93:56,
inlined from 'decltype(auto) sol::basic_table_core<<anonymous>, <template-parameter-1-2> >::get(Keys&& ...) const [with Ret = {sol::optional<float>}; Keys = {const char (&)[6]}; bool top_level = false; ref_t = sol::basic_reference<false>]' at ../../../extern/sol3/sol/table_core.hpp:422:35,
inlined from 'decltype(auto) sol::basic_table_core<<anonymous>, <template-parameter-1-2> >::get_or(Key&&, T&&) const [with T = float; Key = const char (&)[6]; bool top_level = false; ref_t = sol::basic_reference<false>]' at ../../../extern/sol3/sol/table_core.hpp:428:41,
inlined from '{anonymous}::PlaySoundArgs {anonymous}::getPlaySoundArgs(const sol::optional<sol::basic_table_core<false, sol::basic_reference<false> > >&)' at ../../../apps/openmw/mwlua/soundbindings.cpp:62:42:
../../../extern/sol3/sol/stack_field.hpp:116:49: error: array subscript 'const char [7][0]' is partly outside array bounds of 'const char [6]' [-Werror=array-bounds=]
116 | lua_getfield(L, tableindex, &key[0]);
| ^~~~~~~~~~~~
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105438 .
Simplified example: https://godbolt.org/z/ccPje4nK1 .
2025-04-28 22:06:51 +02:00
elsid
626d7b2282
Add missing TargetPolygonNotFound enum value to lua bindings
2025-04-21 16:36:19 +02:00
elsid
9a6807f862
Remove cmake_minimum_required for osx install script
2025-04-03 23:01:36 +02:00
Evil Eye
f891a7c3b3
Turn ActorActiveEffects:remove into a delayed action
2025-02-24 17:07:32 +01:00
Mehdi Yousfi-Monod
ffedd62ea1
Lua: Allow creating arrows and bolt records ( #8300 )
2025-01-12 18:00:19 +01:00
Sebastian Fieber
5cb6da4b02
add overwriteLighting a toggle option for addVfx
2024-12-31 01:57:09 +00:00
AnyOldName3
6efef81635
Delete redist installer once it's installed
...
Also make the redist installation code filename-agnostic so it's easier to test with a dummy redist or eventually support Windows on Arm64
2024-12-19 17:46:16 +00:00
AnyOldName3
36c922eded
More exclusions
2024-12-19 17:44:24 +00:00
AnyOldName3
8297f16ae2
Update and alphabetise install exclude paths
2024-12-19 15:27:51 +00:00
Evil Eye
604f16a0a0
Remove redistributables we no longer use
2024-12-12 17:27:26 +01:00
Evil Eye
da68130c08
Turn VCREDIST into a cache variable
2024-12-11 20:38:23 +01:00
AnyOldName3
06bf80cc3b
Rearrange conditionals to be prettier
2024-10-27 23:42:48 +00:00
AnyOldName3
62199c2dad
Install the local openmw.cfg template on Windows
...
The Windows global config path is really really dumb and the whole concept of having a global path on an OS where it's so easy to have different incompatible versions installed side-by-side (instead of a single canonical OS-wide OpenMW install from the system package manager) is really dumb, too.
We've therefore only used local `openmw.cfg`s on Windows for a very long time.
However, it appears that we were installing the global `openmw.cfg` template instead of the local template.
That's wrong and we shouldn't do it, so I've stopped it.
I've left the separate `openmw.cfg` and `openmw.cfg.install` in the build directory as that makes doing development for portable installs with the same build system as doing the development for the installer easier.
2024-10-14 23:05:52 +01:00
Alexei Kotov
c5b54cf585
Update SDL controller mappings, bump SDL version requirement to 2.0.10
2024-10-05 21:14:41 +03:00
psi29a
6b762a5328
Merge branch 'fix-macos-libraries' into 'master'
...
Use CMAKE_FIND_FRAMEWORK ONLY for OpenGL on MacOS
Closes #7934
See merge request OpenMW/openmw!4368
2024-09-11 08:29:57 +00:00
Cody Glassman
b346a4a858
Add frame number to available postprocess uniforms
2024-09-10 16:58:27 +00:00
Chris Anderson
3320f2a5b9
Use CMAKE_FIND_FRAMEWORK ONLY for OpenGL on MacOS
2024-09-09 21:56:37 -04:00
psi29a
1e94f53146
Merge branch 'is_starter_spell' into 'master'
...
Expose starter spells
See merge request OpenMW/openmw!4352
2024-09-06 07:25:09 +00:00
psi29a
e1875d459a
Merge branch 'boost-config-required' into 'master'
...
Modernise Boost CMake stuff
Closes #8100
See merge request OpenMW/openmw!4307
2024-09-04 19:04:57 +00:00
Mehdi Yousfi-Monod
20bd83b280
bumped Lua API version
2024-09-03 16:54:37 +02:00
Mads Buvik Sandvei
2faf7036f5
bump lua api revision
2024-08-26 14:03:20 +02:00
AnyOldName3
387b63909b
Remove vestigial Boost libraries
...
Boost::zlib is basically part of Boost::iostreams, and depending on how you configure Boost, it can either be a separate library or get embedded into iostreams.
With the third-party-but-linked-on-Boost's-website package we've been using for years, it's a separate library.
Before https://gitlab.com/OpenMW/openmw/-/merge_requests/4307 , we needed to explicitly link with it as CMake wasn't handling transitive dependencies for us.
With vcpkg, it's embedded, and doesn't have its own CMake config, so we couldn't explicitly link with it even if we wanted to.
Now CMake *is* handling transitive dependencies for us, we don't even need to think about this library.
It's all automatic.
Boost::locale, on the other hand, used to be something we used directly (I think for doing UTF-16/UTF-8 conversions when dealing with Windows paths).
However, it isn't anymore, and we just didn't purge it from our CMake when we should have.
It can go.
2024-08-23 14:06:13 +01:00
AnyOldName3
26be98966f
Modernise Boost CMake stuff
...
Resolves https://gitlab.com/OpenMW/openmw/-/issues/8100
Also removes some old crud.
Hopefully the old crud is all:
* Handled automatically by CMake now we're using the modern approach.
* A hack-fix for a problem caused by not using the modern approach.
* Massively outdated so no longer necessary.
If it turns out this makes CI fail, I'll tweak things as necessary.
Changes that might not be wanted include:
* Getting rid of our BOOST_STATIC CMake option. In cases where the CMake config doesn't make the one correct choice from the build environment (i.e. because there's a choice) the CMake config exposes the option already.
However, we were forcing this on for Windows, so that might matter.
It seems to default to static on my machine even though I thought I read something suggesting otherwise, so we'll see how things go with that.
If we eventually put CMake in charge of installing dependency DLLs this will be a moot point as we won't need to care.
* Bumping the minimum version of Boost to 1.70.0, as that's the first with working CMake config.
It's from 2019, so plausibly there are distros too scared to use a library from five years ago as it can't legally drink in the US (although it could in limited quantities with parental supervision in the UK, as long as it's just something inconsequential like a single sip of beer).
2024-08-23 14:06:13 +01:00
uramer
d8cd0788e4
Merge branch 'madsbuvi-master-patch-56327' into 'master'
...
Update lua api revision
See merge request OpenMW/openmw!4320
2024-08-14 08:02:21 +00:00
Mads Buvik Sandvei
fadcf5d255
Update lua api revision
2024-08-13 18:46:28 +00:00
elsid
e186e4f7ae
Remove no longer required FindRecastNavigation.cmake
...
It's possible to find the library without having it. But also it prevents target
options from propagation to the openmw targets.
2024-08-13 10:47:33 +02:00
Dave Corley
c90af583b2
FEAT(CMakeLists): Increment API revision
2024-07-23 14:39:59 -05:00
Evil Eye
ee653eb2b8
Make mwscript return nil for records that don't have a script
2024-07-07 13:58:34 +02:00
psi29a
ef0bb02def
Merge branch 'master' into 'master'
...
An ability to specify attack type in controls.use value
See merge request OpenMW/openmw!4187
2024-07-05 08:12:17 +00:00
Max Yari
723c64a79b
Lua API version increment
2024-07-01 19:58:33 +02:00
Jared Davenport
06b0f6b970
Update CMakeLists.txt
2024-07-01 13:40:09 +00:00
Jared Davenport
3a8bafd7b1
doesn't detect correct ffmpeg version for android
2024-07-01 05:04:32 +00:00
Jared Davenport
fcb9fafd15
remove cmakefix.patch
...
for android this is an issue during the cmake process.
2024-06-27 18:00:42 +00:00
Bret Curtis
1ccf101a92
REQUIRED flag will get rid of need to have extra if check
2024-06-15 11:12:11 +02:00
Bret Curtis
1edcd80501
consolidate cmake documentation flow
2024-06-15 11:07:35 +02:00
elsid
7d1cd11ba9
Split openmw_test_suite into openmw and components tests
...
To avoid duplicated compilation for openmw translation units. Link openmw-lib to
openmw-tests instead.
2024-06-10 23:12:14 +02:00
Bret Curtis
3c04e9f77e
[ #7016 ] Add additional docs to macos dmg and windows release
2024-05-21 17:43:02 +02:00
trav5
5d683f7b36
ESM::Dialogue Lua bindings: API_REVISION updated to 62
2024-05-04 16:38:53 +02:00
trav5
f121c0ea72
ESM::Dialogue Lua bindings: API_REVISION updated
2024-04-27 22:27:59 +02:00
psi29a
3980bb15cc
Merge branch 'lua_controller_cursor' into 'master'
...
Add lua bindings for controller cursor mode
See merge request OpenMW/openmw!3623
2024-04-25 08:45:57 +00:00
Zackhasacat
55f4f6a5bf
Update API_REVISION
2024-04-24 18:06:24 -05:00
Andrei Kortunov
1bb48bcef7
Treat editor icons as scalable
2024-04-21 20:56:06 +04:00
psi29a
e4c70b7861
Merge branch 'anyoldname3-and-the-amazing-technicolour-terminal-emulator' into 'master'
...
Support coloured terminal output on Windows
See merge request OpenMW/openmw!4027
2024-04-17 13:09:07 +00:00
Andrei Kortunov
1ad9e5f9e8
Rework editor icons
2024-04-14 08:17:10 +04:00
AnyOldName3
901a17ab81
Make comments stop lying
2024-04-13 19:01:34 +01:00
AnyOldName3
ea029b06ea
Remove unused define
2024-04-13 18:51:45 +01:00
Andrei Kortunov
8fecbb55ff
Do not store 'location' tags in translation files
2024-04-05 10:12:31 +04:00
Evil Eye
4607722ce9
Increment API version
2024-03-31 11:37:02 +02:00
Andrei Kortunov
009ccca978
Modify sound API permissions
2024-03-15 19:48:43 +04:00
psi29a
d746918563
Merge branch 'yaml_parse' into 'master'
...
Load YAML files via Lua
Closes #7590
See merge request OpenMW/openmw!3924
2024-03-15 11:02:05 +00:00