summaryrefslogtreecommitdiffstats
path: root/modules/mono/config.py
Commit message (Collapse)AuthorAgeFilesLines
* Mono: Add mono_bcl SCons option for a custom BCL locationIgnacio Etcheverry2020-12-061-0/+8
| | | | | | | Makes it let's bothersome to work with builds from our godotengine/godot-mono-builds scripts, as they write the BCL into an output directory separate from the runtime (which is good as two runtimes may share the same BCL).
* Core: Always enable ptrcall, remove PTRCALL_ENABLED defineRémi Verschelde2020-11-251-1/+0
| | | | | | | ptrcall is now also used to optimize calls in GDScript, on top of the existing use by the GDNative and Mono modules. It no longer makes sense to make it optional.
* Style: Fix black formatting after #42332Rémi Verschelde2020-09-251-3/+1
| | | | | | Somehow it did not run CI checks so we missed that one. Also pin `black` version to latest upstream release.
* Enable the `copy_mono_root` SCons option by defaultHugo Locurcio2020-09-251-4/+4
| | | | This closes #41652.
* DocData: Skip language-specific ClassDoc without methods/constantsRémi Verschelde2020-06-171-1/+0
| | | | Removes the useless `@C#`, `@NativeScript` and `@VisualScript` entries.
* Add SCons option to not build C# solutionsIgnacio Etcheverry2020-05-221-0/+1
|
* Mono: Use msbuild instead of nuget.exe for restoringIgnacio Etcheverry2020-05-091-1/+0
| | | | | - Make GodotTools output directly to the SCons output directory. - Removed xbuild_fallback from the build system.
* Mono/C#: Add iOS supportIgnacio Etcheverry2020-03-311-5/+21
| | | | | | Right now, games only work on devices when exported with FullAOT+Interpreter. There are some issues left that need to addressed for FullAOT alone. Right now, it's giving issues with the Godot.NativeCalls static constructor.
* SCons: Format buildsystem files with psf/blackRémi Verschelde2020-03-301-15/+26
| | | | | | | | | | | | | | | | | | | | | Configured for a max line length of 120 characters. psf/black is very opinionated and purposely doesn't leave much room for configuration. The output is mostly OK so that should be fine for us, but some things worth noting: - Manually wrapped strings will be reflowed, so by using a line length of 120 for the sake of preserving readability for our long command calls, it also means that some manually wrapped strings are back on the same line and should be manually merged again. - Code generators using string concatenation extensively look awful, since black puts each operand on a single line. We need to refactor these generators to use more pythonic string formatting, for which many options are available (`%`, `format` or f-strings). - CI checks and a pre-commit hook will be added to ensure that future buildsystem changes are well-formatted.
* Multiple changes to DisplayServerX11Mateo Kuruk Miccino2020-03-261-1/+1
| | | | | | | | | | | | | | | | - Travis: Change x11 to linuxbsd - SCons: Change x11 plataform to linuxbsd - Plugins: Remove ; to avoid fallthrough warning - DisplayServerX11: Implement set_icon - DisplayServerX11: Fix X11 bug when a window was erased from windows map, all the changes from that erased windows are sending to the main window - DisplayServerX11: Reorder create_window commands - DisplayServerX11: Change every Size2 to Size2i and Rect2 to Rect2i where it belongs + More X11 fixes which have been integrated directly back into reduz's original commits while rebasing the branch.
* Generate command line help text for `mono` moduleAndrii Doroshenko (Xrayez)2020-03-171-1/+2
|
* Mono/C#: WebAssembly supportIgnacio Etcheverry2019-11-131-2/+10
|
* Mono: Fix SCons options added to the wrong environmentIgnacio Etcheverry2019-06-041-0/+10
|
* Mono: Reorganize build scriptsIgnacio Etcheverry2019-04-071-420/+6
| | | | All build scripts, other than config.py and SCSub, are now located in the build_scripts subdirectory.
* Remove unused importsHendrikto2019-04-061-1/+1
|
* SCons: Allow building Mono module with OSXCrossRémi Verschelde2018-12-221-4/+6
| | | | | | | Improve the test logic to only assume that we're building for macOS if OSXCROSS_ROOT is defined *and* we requested p=osx. Supersedes #24480.
* Fix assertion fail when loading assembly on project exportIgnacio Etcheverry2018-11-081-5/+1
|
* Mono: Editor and export template dependencies and fixesIgnacio Etcheverry2018-10-031-25/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Bundle editor dependencies: - 'GodotSharp': Root data directory for the editor - 'Tools': Editor dependencies. Only GodotSharp.dll for now. - 'Api': Prebuilt GodotSharp and GodotSharpEditor API assemblies. - 'Mono': Mono files to bundle with the editor. - 'bin': (Optional, not used for now) Mono bin directory. - 'etc': Mono configuration files. - 'lib': Mono dependency shared libraries. - 'lib/mono/4.5': Framework assemblies. - Added build option to copy the required files from the mono installation to 'GodotSharp/Mono'. Enable with 'copy_mono_root=yes'. Disabled by default. - Export template dependencies: - 'data_AppName'/'data_Godot': - 'Mono': Mono files to bundle with the game. - 'etc': Mono configuration files. - 'lib': Mono dependency shared libraries. - The data directory is generated when compiling and must be bundled with the export templates. In the case of OSX, the data directory must be placed inside the 'osx.zip' export template. - In OSX, alternative location for directories (needed for app bundles) are: - 'data_AppName/Mono/etc' --> '../Resources/GodotSharp/Mono/etc' - 'data_AppName/Mono/lib' --> '../Frameworks/GodotSharp/Mono/lib' - The editor can bundle prebuilt API assemblies. - Generate them with a tools build by running: `--generate-cs-core-api <GodotSharp_OutputDir> --generate-cs-editor-api <GodotSharpEditor_OutputDir> <GodotSharp_OutputDir>/bin/Release/GodotSharp.dll` (This command will be simplified in the future and both projects will be in the same solution) - Build the solutions and copy the output files to '#bin/GodotSharp/Api'. - Fixed API assembly being added twice during the export process.
* Merge pull request #22193 from ↵Ignacio Etcheverry2018-09-171-1/+16
|\ | | | | | | | | neikeq/idontlikesanditscoarseandroughandirritatinganditgetseverywhere Mono: Build and external editor improvements for OSX
| * Add some mono root dir hints to the build scriptIgnacio Etcheverry2018-09-171-1/+16
| | | | | | | | This enhancement is specially noticeable in OSX, since it includes Mono's install location (both official and homebrew). This makes it possible to build Godot with Mono on OSX without pkg-config (pkg-config is bundled with Mono, but it's not added to PATH, so finding it would require finding the Mono root directory first).
* | Check for mono binary when finding versionSophie Tauchert2018-09-161-1/+8
|/
* Prevent "cannot use a string pattern on a bytes-like object"Justin Abene2018-08-201-1/+3
| | | Fixes #21207
* SCons: Fix mono_root initializationRémi Verschelde2018-08-141-1/+2
| | | | As advised by @neikeq.
* Fixed absent variable exception while trying to raise another exception.Teashrock2018-08-131-0/+1
|
* Mono: Fix build script not decoding process utf-8 outputIgnacio Etcheverry2018-07-041-1/+4
|
* Mono: Pending exceptions and cleanupIgnacio Etcheverry2018-07-041-34/+75
|
* Merge pull request #19016 from neikeq/wIgnacio Etcheverry2018-06-221-4/+30
|\ | | | | Mono: Module build improvements
| * Mono: Module build improvementsIgnacio Etcheverry2018-06-221-4/+30
| | | | | | | | | | | | - Add (Csc/Vbc/Fsc)ToolExe environment variables when running Mono's MSBuild. - Fix directory for the 'mono_assemblies_output_dir' argument being created with the '#' top level directory token as part of its name. - Allow to build with 'mono_static=yes' on Unix without specifying a mono prefix. The build script will try to find the mono prefix using the output from pkg-config.
* | Fix Mono static linking on MingwHein-Pieter van Braam2018-06-011-2/+9
| |
* | SCons: Pass env to modules can_build methodRémi Verschelde2018-05-301-1/+1
|/ | | | | | This allows to disable modules based on the environment, in particular `env[tools]` which tells us if we are building the editor or not.
* Fix MSVC check when building with monoIgnacio Etcheverry2018-05-021-2/+2
|
* Add option to link mono statically on WindowsIgnacio Etcheverry2018-04-251-14/+28
|
* Fix mono build properly!PJB30052018-03-191-1/+1
| | | | Fixes the mistake I made in #17603 to make it require Python > 3.6.
* Fix Mono builds with Python 3.Pieter-Jan Briers2018-03-181-1/+1
| | | | | A subprocess call wasn't specifying an encoding, so this gave a TypeError in Python 3.
* More reliably find mscorlib.dll on LinuxHein-Pieter van Braam2018-02-271-2/+5
|
* Merge pull request #15641 from ↵Rémi Verschelde2018-02-271-10/+13
|\ | | | | | | | | neikeq/mono-is-picky-regarding-corlib-so-we-must-make-sure-to-ship-the-right-version-otherwise-something-bad-may-happen Mono: Buildsystem improvements
| * Mono: Buildsystem improvementsIgnacio Etcheverry2018-01-121-10/+13
| | | | | | | | | | - Bundle with mscorlib.dll to avoid compatibilities issues - Add build option 'mono_assemblies_output_dir' to specify the output directory where the assemblies will be copied to. '#bin' by default.
* | Fix pkgconfig detection of monoBenjamin Dobell2018-02-031-0/+1
|/
* doc: Make all module docs self-containedRémi Verschelde2017-11-151-1/+5
|
* -Modules can now add custom version info (added it for Mono)Juan Linietsky2017-11-011-0/+1
| | | | | -Version string takes this version info -Ability to download templates from the interweb (listing does not work yet)
* Buildsystem improvements for the Mono moduleIgnacio Etcheverry2017-10-291-22/+58
| | | | | | | | | | | - Make sure to search the mono installation directory for the right architecture in the windows registry. - Do not build GodotSharpTools directly to #bin dir. Instead build to the default output path and copy it. This way we avoid MSBuild adding files we don't want to #bin. - Add hint path for MSBuild in OSX. - Copy shared library on Unix if not statically linking. - Use vswhere to search MSBuild and search for 14.0 tools version in the registry instead of 4.0. - SCons will only fallback xbuild when msbuild is not found if 'xbuild_fallback=yes' is passed to the command. - Use mono's assembly path as FrameworkPathOverride if using with system's MSBuild (not mono's fork). - Cleanup.
* Mono: Fix static linking on macOSRémi Verschelde2017-10-201-1/+5
| | | | [ci skip]
* mono: Request monosgen-2 explicitly via pkg-configRémi Verschelde2017-10-141-1/+1
| | | | Prevents GC mismatch between mono binary and library, fixes #11916.
* Added mono moduleIgnacio Etcheverry2017-10-031-0/+143