Commit Graph

82 Commits

Author SHA1 Message Date
Paul Chote
c6af758ee5 Fix Makefile "version" rule. 2024-10-20 16:56:04 +03:00
Matthias Mailänder
de22556153 Move unit testing into the make script. 2023-06-01 12:43:10 +02:00
Matthias Mailänder
445b736885 Replace sandbox wrapper scripts. 2023-05-20 13:19:48 +02:00
RoosterDragon
88ba974ea5 Reformat editorconfig
- Group style rules with their associated options in a way that matches the documentation. This makes it easier to pair rules and their options.
- Remove OpenRA.ruleset and move all rules into .editorconfig file.
- Centralise IDE0005 workaround in Directory.Build.props file.
2023-03-17 22:31:10 +01:00
Matthias Mailänder
58b105f0d4 Reorganize global .lua files. 2021-11-26 23:39:41 +01:00
penev92
270c566570 Fixed the Windows make script building in Release
This is a follow-up to PR 19379, which aimed to "provide an easy debug option for VSCode developers", but only did so for non-Windows users. VSCode has been building in Release mode for ever and continued to do so on Windows after that PR.
2021-11-14 10:07:18 +00:00
penev92
e1e76411f7 Added a rule for unused usings to OpenRA.ruleset
Unfortunately due to bugs in the analyzers or something else, the IDE0005 doesn't work as expected. The "officially suggested" workaround is to enable XML documentation generation to trigger IDE0005 during compiling. Then we need to add three more rules to silence the warnings that come from the XML documentation generation. We also need to enable code style enforcing on build for all of this to work.
Known issue is that all of this produces a bunch (tens to hundreds) of obscure analyzer warnings on older versions of Visual Studio, but those seem to not be causing issues.
2021-10-15 13:12:33 +02:00
teinarss
279e7eb1c9 Disable Stylecop on debug config 2021-10-02 21:13:58 +02:00
pizzaoverhead
c8644adc85 Fix TLS error on Win7. 2021-02-28 10:15:29 +00:00
abcdefg30
3422bf1b59 Remove the 'docs' target from the windows make file 2021-01-30 21:08:25 +00:00
Paul Chote
5e6dd50c3b Suppress error messages from make.ps1 clean.
Also removed obsolete ./*/bin removal.
2021-01-29 14:54:40 +01:00
Paul Chote
b1200b8078 Switch make.ps1 to downloading from our GeoIP data mirror. 2021-01-10 21:13:26 +01:00
teinarss
5e74e58b22 Add support for dotnet core for Windows 2021-01-01 19:42:01 +01:00
abcdefg30
a68a91bb39 Explicitly return on failure in make.ps1 2020-12-29 21:26:07 +01:00
Paul Chote
20fe59e844 Output compiled binaries to ./bin. 2020-11-24 17:53:48 +01:00
Matthias Mailänder
b56ddc1a08 Check global scripts for Lua errors. 2020-09-05 21:13:47 +01:00
Ivaylo Draganov
3ab4a584ab Remove trailing white-space from various files 2020-05-23 11:38:44 +02:00
teinarss
e13fd693c3 Add Nuget packages for all dependencies 2020-04-18 11:36:25 -05:00
Paul Chote
9c4faddc0f Switch GeoIP database from MaxMind to IP2Location.
The IP2Location data is licensed under CC BY-SA, which
allows us to distribute the database with releases.
2020-04-15 23:16:24 +02:00
Paul Chote
e063e13ff4 Remove automatic GeoIP download from the build scripts.
The database file is now locked behind an account login.

https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/
2019-12-31 17:28:30 +01:00
Paul Chote
579d2c19e2 Add --check-conditional-trait-interface-overrides utility command.
This command is used by `make check` to detect traits that incorrectly
override interface methods that are required for conditions to work
correctly.
2019-07-14 00:41:59 +02:00
teinarss
70f0075415 Use Write-Host instead of echo 2019-05-16 20:05:55 +02:00
abcdefg30
e888a235c0 Fix powershell if statements not checking the return value of calls 2019-05-16 19:41:29 +02:00
Paul Chote
ba282865f1 Replace legacy StyleCop(Plus) with StyleCopAnalyzers
Analyzers are enabled in the Debug configuration
only to avoid unnecessary overheads when compiling
normally.
2019-05-09 20:40:08 +02:00
Paul Chote
f0d59391b5 Remove Start-Process from make.ps1.
This also removes the hardcoded path
requirement for dotnet.exe, and simplifies
the utility and dotnet detection.

The nr flag is no longer needed for dotnet,
and nologo is added to reduce unnecessary output.

The Release configuration is set for consistency
with the real Makefile.
2019-05-05 23:19:04 +02:00
Paul Chote
1955cac84e Unify Windows and mono build systems.
The Makefile behaviour is recreated using the new and significantly
cleaner .NET Core csproj format.

fixheader.exe is promoted to OpenRA.PostProcess.exe and now runs
on all platforms.
2019-05-05 23:19:04 +02:00
reaperrr
04a71a6c6a Exclude OpenRA.Platforms.Default.dll.config from clean
OpenRA.Platforms.Default.dll.config is part of the repo.
Linux makefile already excludes the file from removal.
2019-04-21 20:31:35 +02:00
Paul Chote
d186ca38f7 Explicitly require PowerShell 3 or higher. 2018-04-28 20:29:31 +02:00
fruehstueck
65c42a68ce Add shortcuts for make.ps1 commands 2018-03-15 17:46:39 +00:00
Matthias Mailänder
1d8a50cdab Add build script support for the settings documentation. 2017-09-24 14:18:20 +02:00
Matthias Mailänder
fdad5e2c48 Add weapon rules documentation. 2017-08-05 21:00:06 +02:00
Paul Chote
e38db04ab7 Move Stylecop checks to their own helper executable. 2017-07-09 21:58:21 +02:00
abcdefg30
04033e5c79 Don't iterate over an array with only one element 2017-06-29 16:56:21 +02:00
abcdefg30
841798a0a8 Don't use a broken version string when git is not found 2017-06-29 16:56:21 +02:00
abcdefg30
057c201e85 Don't echo "Invalid command" when using the version command with a parameter 2017-06-29 16:56:21 +02:00
Paul Chote
49f0e35bd7 Add engine VERSION file. 2017-06-04 13:21:27 +02:00
Zimmermann Gyula
2ca6721027 Remove the bitrot GameMonitor StyleCop check. 2017-04-22 23:17:39 +02:00
Paul Chote
84db123b93 Rename modchooser to modcontent. 2017-04-21 18:02:20 +01:00
abcdefg30
39cdf65764 Fix the make.ps1 clean command not removing all files 2017-04-12 01:14:07 +02:00
reaperrr
0c3a786d10 Merge Mods.RA into Mods.Cnc 2017-02-12 01:33:22 +01:00
reaperrr
709e2a26e1 Merge Mods.TS into Mods.Cnc 2017-02-02 21:20:31 +01:00
Jiyuu
dbea8d9515 Restructuring the make script & making the "all" command fetch dependencies as well 2016-11-03 22:49:19 +02:00
reaperrr
df0021eeed Move check for explicit interface violations to the top
The interface violation check is fast, so it doesn't really delay the rest, while you don't have to wait for all other code checks to finish to check for violations.
2016-10-20 18:57:06 +02:00
Taryn Hill
a1216f8197 Remove pdb files in make.ps1's clean target 2016-09-05 16:37:44 -05:00
reaperrr
f4d5c1d755 Remove Platforms.Null from Windows style check
Doesn't exist anymore.
2016-04-13 18:35:17 +02:00
abcdefg30
9e799537f8 Fix make version on windows 2016-02-20 17:18:55 +01:00
Taryn Hill
e3229f4cd8 Add explicit interface checking to 'make check' 2016-01-17 17:31:36 -06:00
Pavel Penev
1d93bf0500 Update make version to change the required mod target versions 2015-11-01 22:35:39 +02:00
reaperrr
d62460cfa1 Reorder yaml testing in make.ps1 to match makefile 2015-09-19 14:28:20 +02:00
clemty
378fff75bf don't assume luac is installed 2015-09-12 20:27:51 +02:00