Andrei Kortunov
f308dde254
Clean up MSVC warnings
2021-04-17 12:14:50 +04:00
Gleb Mazovetskiy
493659d4f9
MSVC: extern/ tweaks to make it build
...
Not everything is supported but it does build with the following CMakeSettings.json
variables and dependencies from vcpkg:
"variables": [
{ "name": "OPENMW_USE_SYSTEM_BULLET", "value": "False", "type": "BOOL" },
{ "name": "OPENMW_USE_SYSTEM_MYGUI", "value": "False", "type": "BOOL" },
{ "name": "OPENMW_USE_SYSTEM_OSG", "value": "False", "type": "BOOL" },
{ "name": "BULLET_STATIC", "value": "True", "type": "BOOL" },
{ "name": "OSG_STATIC", "value": "False", "type": "BOOL" },
{ "name": "MYGUI_STATIC", "value": "False", "type": "BOOL" }
],
What works: it builds
What does not work: Not all DLLs are copied into the output directory with this set up
(SDL2, MyGUI, Bullet, OSG, are not copied).
2021-03-16 19:52:10 +00:00
Gleb Mazovetskiy
f460ab2152
MSVC: Fix build with vcpkg's boost
...
boost-zlib is not present (nor needed) in vcpkg version of boost
There, it is part of boost-iostreams instead.
This was previously reported in:
https://gitlab.com/OpenMW/openmw/-/merge_requests/213#note_348625016
2021-03-16 01:36:07 +00:00
AnyOldName3
450b971bb0
Merge branch 'gl4es-patch' into 'master'
...
gl4es: Delay feature detection until a context exists
See merge request OpenMW/openmw!626
2021-03-10 19:01:39 +00:00
Bret Curtis
c4064fca0c
include feedback and add DebugUtils and Detour
2021-03-02 23:11:06 +01:00
Bret Curtis
28cb14289a
initial attempt at FindRecastNavigation.cmake
2021-03-02 22:48:17 +01:00
Gleb Mazovetskiy
044e784072
gl4es: Delay feature detection until a context exists
...
gl4es feature detection does not work reliably with EGL.
If a context already exists, gl4es can instead reliably detect
the underlying GLES features from the context itself.
This requires gl4es to be configured with:
-DNOEGL=ON -DNO_LOADER=ON -DNO_INIT_CONSTRUCTOR=ON
This also requires gl4es to have this fix: https://github.com/ptitSeb/gl4es/pull/271
2021-02-28 07:59:48 +00:00
psi29a
96b5581930
Merge branch 'fetchcontent-recast-navigation' into 'master'
...
Move recastnavigation to FetchContent
Closes #5793
See merge request OpenMW/openmw!614
2021-02-20 00:36:42 +00:00
Gleb Mazovetskiy
e265d0bc2b
Fix OSGPlugins_LIB_DIR on the MacOS build
...
Moves auto-detection of OSGPlugins_LIB_DIR into FindOSGPlugins.cmake.
This should hopefully fix the error in the MacOS build.
2021-02-19 19:00:24 +00:00
Gleb Mazovetskiy
1c9245bd58
Move recastnavigation to FetchContent
2021-02-19 18:35:34 +00:00
psi29a
5c0214142b
Merge branch 'static-build' into 'master'
...
Optional local source builds of OSG, MyGUI, Bullet
See merge request OpenMW/openmw!547
2021-02-19 16:58:05 +00:00
AnyOldName3
c97980a0f6
Don't force linker to work with doubly-defined symbols
2021-02-11 01:35:32 +00:00
Gleb Mazovetskiy
3d334dae75
Fix MYGUI/OSG_STATIC and BUILD_SHARED_LIBS
2021-01-26 19:00:55 +00:00
Gleb Mazovetskiy
daf080ff19
cmake: Move MYGUI/OSG_STATIC default to top-level
...
Makes it clear that the USE_SYSTEM variables affect the defaults of
STATIC variables.
2021-01-26 19:00:55 +00:00
Gleb Mazovetskiy
26814b2386
CMakeLists.txt: Restore policies as we unbumped cmake version
2021-01-26 19:00:55 +00:00
Gleb Mazovetskiy
98564b0aae
cmake: move cmake_minimum_required bump to extern/CMakeLists.txt
2021-01-26 19:00:55 +00:00
Gleb Mazovetskiy
a06f598442
cmake: Move USED_OSG_(COMPONENTS|PLUGINS) before add_subdirectory(extern)
2021-01-26 19:00:55 +00:00
Gleb Mazovetskiy
8737453498
cmake: Compiler-specific whole-archive macro
2021-01-26 19:00:55 +00:00
Gleb Mazovetskiy
93fe84aea8
cmake: Move USED_OSG_(COMPONENTS|PLUGINS) from extern to top-level
2021-01-26 19:00:55 +00:00
Gleb Mazovetskiy
99ba45a308
Optional static builds of OSG, MyGUI, Bullet
2021-01-26 19:00:55 +00:00
Gleb Mazovetskiy
24d8412c0c
cmake: Fix missing OPENGL_INCLUDE_DIR
...
OPENGL_INCLUDE_DIR wasn't being included.
It is usually just /usr/include but if it was custom the build failed.
2021-01-14 02:52:59 +00:00
wareya
18ef32ca82
values for this higher than sGroundOffset cause jittering on some surface; use safe-seeming value slightly less than sGroundOffset
2020-12-27 22:16:11 +00:00
Mads Buvik Sandvei
637c76f438
Update CMakeLists.txt
2020-12-19 08:34:36 +00:00
Mads Buvik Sandvei
a2a462f416
Update CMakeLists.txt to disable MSVC warning 4866
2020-12-18 20:04:24 +00:00
Nelsson Huotari
6e77ad1f6a
OSG-Collada animation support
2020-11-19 01:11:56 +02:00
Bret Curtis
4032b754e4
set minimal boost version; remove #ifdef boost version checks
2020-10-25 22:43:10 +01:00
Bret Curtis
449e7ce86f
C++17; make it count
2020-10-21 22:12:24 +02:00
Bret Curtis
82431b752d
removed unnessary bits that cmake should be doing for us; replace Misc::gcd with std::gcd
2020-10-20 23:38:05 +02:00
psi29a
c62546fb12
make it count
2020-10-20 23:38:05 +02:00
psi29a
c86094e4db
Bump to C++17
2020-10-20 23:38:05 +02:00
Bret Curtis
7954dccb44
lz4 prep work; get linux and windows ready
2020-10-19 22:31:42 +03:00
psi29a
b222872446
Android build on gitlab
2020-10-19 08:27:38 +00:00
Bret Curtis
8050882baf
Merge pull request #3015 from akortunov/overrides
...
Mark overrided methods as overrides
2020-10-17 13:32:08 +02:00
Andrei Kortunov
8ca3c3b123
Mark overrided methods by override keyword
2020-10-16 22:18:54 +04:00
Chris Djali
590635906b
Fix MSVC 2017
...
Resolves the regression introduced with Async Physics
2020-10-15 21:02:57 +01:00
tess
38e567a7e4
match opening and closing if args
2020-10-08 19:34:03 +00:00
tessa
02861fa8e3
fix cmake warning
2020-10-08 13:06:04 -05:00
AnyOldName3
683cf8cad5
Remove incorrect spaces from filename
2020-10-06 16:56:55 +00:00
fredzio
e2a603f6e8
Remove blank space
2020-10-06 09:08:49 +02:00
fredzio
ae38b3d9b2
Put the install logic in one place for all platforms
2020-09-23 20:00:32 +02:00
AnyOldName3
be5fd6fd03
Exclude directories correctly
...
We don't need `/*` as we don't want the directory itself, not just its
contents. We also need to list possible other directories explicitly as
there's currently no way to skip directories without matches.
It would be much nicer if CMake was tracking the DLLs we needed for us.
2020-09-23 20:00:32 +02:00
AnyOldName3
8dd820ba48
Exclude deps
2020-09-23 20:00:32 +02:00
AnyOldName3
d0ddf488db
Install PDBs when appropriate
2020-09-23 20:00:32 +02:00
AnyOldName3
db0f7c607f
Make Windows install target slightly less breakable
2020-09-23 20:00:32 +02:00
fredzio
87290cf6d1
Add support for multi configurations generators on unix
...
Since version 3.17 cmake supports the Ninja Multi-Config
No change for Xcode, VS and Ninja "single config"
2020-09-23 20:00:32 +02:00
AnyOldName3
643db61dfb
Make warnings more informative.
2020-09-03 20:38:02 +01:00
AnyOldName3
1dcea961c6
Only enable LTO for release
...
This is how it was for the original implementation
2020-09-03 20:15:53 +01:00
Eli2
257a6b4629
Use cmake method to enable interprocedural optimizations
2020-09-03 20:01:20 +01:00
AnyOldName3
9d083ae8de
Merge branch 'small_fixes' into 'master'
...
move project/cmake to top; set OpenGL_GL_PREFERENCE to LEGACY since we use GL2...
See merge request OpenMW/openmw!266
2020-08-21 17:24:08 +00:00
Bret Curtis
b0c4336577
update DejaVuFontLicense entry
2020-07-26 22:53:46 +02:00