MrSimbax
167dd01bbe
Revert "Fix CBotUT.FunctionRecursionStackOverflow test"
...
This reverts commit 004c861ba9
.
2020-07-14 13:54:32 +02:00
MrSimbax
df7cdd4b8e
Fix some minor issues after CR
2020-07-14 13:51:07 +02:00
MrSimbax
2143f21828
Fix linter
2020-07-14 13:43:33 +02:00
MrSimbax
17e38bf66c
Install PDB file if available
2020-07-13 23:39:11 +02:00
MrSimbax
3ec39047e1
Fix MXE build
2020-07-13 22:46:32 +02:00
MrSimbax
a9717206f3
Try to fix linter errors
2020-07-13 22:04:33 +02:00
MrSimbax
634efbcabd
Fix GLEW_STATIC redefinition warnings
2020-07-13 21:33:36 +02:00
MrSimbax
c15efbad7b
Revert "Delete FindGLEW"
...
This reverts commit 86f595b8ef
.
2020-07-13 21:27:56 +02:00
MrSimbax
f0ba8ec325
Revert "Fix warnings about redefining GLEW_STATIC"
...
This reverts commit 9cf30fd9bc
.
2020-07-13 21:27:31 +02:00
MrSimbax
fde66a9422
Make MSVC Windows build a separate job
...
Bring back the old file for Linux (with MXE).
Find number of logical processors on Windows by using PowerShell magic.
2020-07-13 21:19:03 +02:00
MrSimbax
17ece36b3e
Enable OpenAL in CI MSVC build
...
The issue with OpenAL not compiling with vcpkg was solved upstream.
2020-07-13 20:43:32 +02:00
MrSimbax
86f595b8ef
Delete FindGLEW
2020-07-12 23:18:21 +02:00
MrSimbax
cc4cfd2122
Fix linter
2020-07-12 23:18:21 +02:00
MrSimbax
c4037a885f
Make CI Windows build with MSVC instead of MXE
2020-07-12 23:17:42 +02:00
MrSimbax
fa5cf01af0
Mark libraries includes as system includes
2020-07-11 17:21:44 +02:00
MrSimbax
1b9d40d2fb
Set C++ standard the modern CMake way
2020-07-11 17:20:41 +02:00
MrSimbax
9e8ebe4595
Checkout Google Test in GH workflow
...
I hope this works.
2020-07-11 12:41:33 +02:00
MrSimbax
e8f9c0292b
Handle the case where GTest is not found
2020-07-11 12:26:35 +02:00
MrSimbax
004c861ba9
Fix CBotUT.FunctionRecursionStackOverflow test
...
On MSVC it throws StackOverflow exception. I reduced the stack size to
make the test pass.
2020-07-11 12:17:20 +02:00
MrSimbax
81ddda4515
Make tests work with targets
2020-07-11 12:16:20 +02:00
MrSimbax
3da26a38ed
Replace Google Test with a submodule
2020-07-11 10:54:52 +02:00
MrSimbax
6c3012b8a1
Fix hippomocks target
...
.h file shouldn't be listed as source to add_library(... INTERFACE)
2020-07-11 10:53:13 +02:00
MrSimbax
9cf30fd9bc
Fix warnings about redefining GLEW_STATIC
...
I guess this flag is now set by CMake somehow so we no longer need
to define it ourselves.
2020-07-10 18:55:47 +02:00
MrSimbax
df65862c49
Start using CMake targets instead of variables
...
Moved most of the variables to targets in the main src.
Made libraries in repo export targets.
Refactor STATIC flags a little and add more.
This commit definitely breaks a lot of things like tests
but the main game builds at least with MSVC.
2020-07-10 18:49:54 +02:00
MrSimbax
f2d91cde80
Update Find*.cmake modules
...
Make them export targets instead of variables.
Some platforms need libintl, abstract it to a Find*.cmake module.
Static linking requires linking to dependencies of dependencies (it is
as horrific as it sounds). This commit handles this only for libsndfile.
SDL2_image and SDL2_ttf probably also have some hidden dependencies.
FindGLEW module is now bundled with CMake, hence it is deleted.
Added Copyright.txt since some modules are taken from CMake.
2020-07-10 18:38:06 +02:00
MrSimbax
4ae0360640
Remove source grouping temporarily
...
It's probably not how it should be done with modern CMake, so I'm
removing this for now to focus on other changes first.
2020-07-10 13:03:23 +02:00
Mateusz Przybył
4c02fe9cda
Merge pull request #1323 from colobot/dev-cmake-version-bump
...
Bump CMake version
2020-07-09 21:47:31 +02:00
MrSimbax
b9297cd9f4
Bump CMake version
2020-07-09 21:25:47 +02:00
krzys_h
1c8c01ad96
Merge pull request #1325 from colobot/dev-gh-actions-lint
...
Send colobot-lint results to GitHub using annotations
2020-07-09 20:14:05 +02:00
MrSimbax
97b266182b
Fix MXE build
2020-07-09 19:55:11 +02:00
krzys-h
4eaa8588d7
Add missing apt-get update
2020-07-09 19:37:52 +02:00
krzys-h
76bb08779a
Switch to actions/checkout@v2
...
As per GitHub recommendations
2020-07-09 19:37:22 +02:00
krzys-h
03c60202b8
Clean up some of the old colobot-lint run scripts
2020-07-09 19:09:38 +02:00
krzys-h
dcd84523ab
Send colobot-lint results to GitHub using annotations
...
This makes the results visible directly in the pull request UI changes
view
2020-07-09 19:09:38 +02:00
MrSimbax
4bd6e01b65
Fix filename style of the particles generator
2020-07-07 21:30:21 +02:00
MrJohn10
35b22f7a7f
Refactor - Move UI mouse particles generation to a new class. ( #1308 )
...
* Move UI mouse particles generation to a new class.
* refactoring
* refactor - change variable name
* change backslashes to forward slashes in include directives
* remove & from variable
* Refactoring - fix linter issues
* Refactoring - fix linter issues
* refactoring - fix linter issues
2020-07-07 20:48:52 +02:00
krzys_h
6efc977286
Merge pull request #1320 from colobot/dev-gh-actions
...
Set up GitHub actions
2020-07-07 19:35:19 +02:00
krzys-h
a6a7b0c96c
Display correct PR target branch as success rather than skipped
2020-07-07 18:37:21 +02:00
krzys-h
0ef21bfdbb
Test builds on Ubuntu 16.04, 18.04 and 20.04
...
It's free, so why not?
This also partially deprecates the Docker container used for building -
now it's used only for MXE builds (because building MXE takes way too
long to do it inside the action)
2020-07-07 18:17:24 +02:00
krzys-h
6d7aadf987
Migrate to GitHub Actions
...
This is pretty much a straight port of our Jenkinsfile to GitHub
Actions. It could use some modernization in a few places, but it should
work for now.
Note that I left the Jenkinsfile for now - we'll be using them both
until we are sure that the GitHub Actions version is stable.
2020-07-07 18:09:12 +02:00
tomangelo
37e4ed8029
Updated license headers ( #1317 )
...
* Updated headers
* Updated more headers
2020-07-07 10:19:36 +02:00
MrSimbax
47687931d7
Fix compilation error
...
Apparently binary constants are a C++14 feature.
2020-07-06 18:29:30 +02:00
MrSimbax
cb364a4f96
Fix typo
2020-07-06 18:29:30 +02:00
MrSimbax
06921e711d
Fix 'uninitialized field' warnings
2020-07-06 18:29:30 +02:00
MrSimbax
124467c6e1
Fix 'naked new' warning
2020-07-06 18:29:30 +02:00
MrSimbax
faa4a6eefa
Fix "inconsistent declaration parameter name"
2020-07-06 18:29:30 +02:00
MrSimbax
e96e8b46b2
Fix include style warnings
2020-07-06 18:29:30 +02:00
MrSimbax
6a22b709d6
Fix license headers
2020-07-06 18:29:30 +02:00
MrSimbax
7449111a00
Fix linter errors
...
"comparison of constant 240 with expression of type 'const char' is
always false"
also a whitespace issue
Changed the inequalities to bitwise comparisons, which hopefully don't
care about the sign.
I was considering just casting `c` to `unsigned char` but I doubt
it would be safe and multiplatform.
2020-07-06 18:29:30 +02:00
MrSimbax
6c715ffef9
Ignore all build* folders and the out folder
2020-07-06 18:29:30 +02:00