virtualx-engine/modules
Ignacio Etcheverry ced77b1e9b C#: Switch games to MSBuild Sdks and .NET Standard
Godot.NET.Sdk
-------------

Godot uses its own custom MSBuild Sdk for game
projects. This new Sdk adds its own functionality
on top of 'Microsoft.NET.Sdk'.

The new Sdk is resolved from the NuGet package.

All the default boilerplate was moved from game
projects to the Sdk. The default csproj for
game project can now be as simple as:

```
<Project Sdk="Godot.NET.Sdk/4.0.0-dev2">
  <PropertyGroup>
    <TargetFramework>netstandard2.1</TargetFramework>
  </PropertyGroup>
</Project>
```

Source files are included by automatically so
Godot no longer needs to keep the csproj in sync
when creating new source files.

Define constants
----------------

Godot defines a list of constants for conditional
compilation. When exporting games, this list also
included engine 'features' and platform 'bits'.
There were a few problems with that:

- The 'features' constants were only defined when
  exporting games. Not when building the game for
  running in the editor player.
- If the project was built externally by an IDE,
  the constants wouldn't be defined at all.

The new Sdk assigns default values to these
constants when not built from the Godot editor,
i.e.: when built from an IDE or from the command
line. The default define constants are determined
from the system MSBuild is running on.

However, it's not possible for MSBuild to
determine the set of supported engine features.
It's also not possible to determine if a project
is being built to run on a 32-bit or 64-bit
Godot executable.

As such the 'features' and 'bits' constants had
to be removed.
The benefit of checking those at compile time
was questionable, and they can still be checked
at runtime.

The new list of define constants includes:

- GODOT
- GODOT_<PLATFORM>
  Defaults to the platform MSBuild is running on.
- GODOT_<PC/MOBILE/WEB>
- TOOLS
  When building with the 'Debug' configuration
  (editor and editor player).
- GODOT_REAL_T_IS_DOUBLE
  Not defined by default unless $(GodotRealTIsDouble)
  is overriden to be 'true'.

.NET Standard
-------------

The target framework of game projects was changed
to 'netstandard2.1'.
2020-07-25 19:22:01 +02:00
..
arkit SCons: Enable iOS modules for ARKit and Camera 2020-06-23 12:48:44 +03:00
assimp Add override keywords. 2020-07-10 13:56:54 +01:00
basis_universal Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
bmp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
bullet Use difference in position to check whether motion in Bullet is too close 2020-07-18 13:15:10 +01:00
camera [macOS] Add support for the Apple Silicon (ARM64) build target. 2020-06-29 12:33:51 +03:00
csg Add override keywords. 2020-07-10 13:56:54 +01:00
cvtt Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
dds DDS: Fix loading files without DDSD_CAPS or DDSD_PIXELFORMAT 2020-06-15 13:10:24 +02:00
denoise Add override keywords. 2020-07-10 13:56:54 +01:00
enet Funnel refuse_new_connections to Godot ENet. 2020-07-14 14:10:18 +02:00
etc Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
freetype SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
gdnative Merge pull request #40450 from asmaloney/spelling 2020-07-21 22:14:04 +02:00
gdnavigation Add override keywords. 2020-07-10 13:56:54 +01:00
gdscript Update core documentation to match recent C# changes 2020-07-21 14:44:53 -04:00
glslang Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
gridmap Add override keywords. 2020-07-10 13:56:54 +01:00
hdr Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
jpg Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
jsonrpc Improve jsonrpc error reporting 2020-05-15 23:55:41 +02:00
lightmapper_rd Add override keywords. 2020-07-10 13:56:54 +01:00
mbedtls Implement RSA encryption/decryption. 2020-06-18 15:29:39 +02:00
mobile_vr Add override keywords. 2020-07-10 13:56:54 +01:00
mono C#: Switch games to MSBuild Sdks and .NET Standard 2020-07-25 19:22:01 +02:00
ogg SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
opensimplex Add override keywords. 2020-07-10 13:56:54 +01:00
opus [macOS] Add support for the Apple Silicon (ARM64) build target. 2020-06-29 12:33:51 +03:00
pvr Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
regex Fix RegEx example in class doc and correct typo 2020-06-15 10:25:09 +08:00
squish Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
stb_vorbis Add override keywords. 2020-07-10 13:56:54 +01:00
svg Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
tga Expose loading TGA images in Image. 2020-05-21 16:02:53 +02:00
theora Add override keywords. 2020-07-10 13:56:54 +01:00
tinyexr Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
upnp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
vhacd Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
visual_script VisualScript: Fix -Wduplicate-branches warning 2020-07-22 16:57:28 +02:00
vorbis SCons: Validate dependencies for linked multimedia modules 2020-06-03 11:00:10 +02:00
webm Add override keywords. 2020-07-10 13:56:54 +01:00
webp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
webrtc Add override keywords. 2020-07-10 13:56:54 +01:00
websocket Add override keywords. 2020-07-10 13:56:54 +01:00
xatlas_unwrap xatlas: Sync with upstream 470576d 2020-05-20 13:51:15 +02:00
modules_builders.py SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
register_module_types.h Moved the shader source compilation code outside RenderingDevice and Vulkan 2020-02-11 11:53:29 +01:00
SCsub Add custom_modules build option to compile external user modules 2020-05-25 15:33:32 +03:00