summaryrefslogtreecommitdiffstats
path: root/modules/mono/utils
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright statements to 2020Rémi Verschelde2020-01-0112-24/+24
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Mono/C#: Re-structure API solution and GodotTools post-build targetIgnacio Etcheverry2019-12-282-0/+39
| | | | | | | | | | | | | | | | | | | | | | Previously we had a placeholder solution called 'Managed' to benefit from tooling while editing the a part of the C# API. Later the bindings generator would create the final 'GodotSharp' solution including these C# files as well as the auto-generated C# API. Now we replaced the 'Managed' solution with the final 'GodotSharp' solution which is no longer auto-generated, and the bindings generator only takes care of the auto-generated C# API. This has the following benefits: - It's less confusing as there will no longer be two versions of the same file (the original and a generated copy of it). Now there's only one. - We no longer need placeholder for auto-generated API classes, like Node or Resource. We used them for benefiting from tooling. Now we can just use the auto-generated API itself. - Simplifies the build system and bindings generator. Removed lot of code that is not needed anymore. Also added a post-build target to the GodotTools project to copy the output to the data dir. This makes it easy to iterate when doing changes to GodotTools, as SCons doesn't have to be executed anymore just to copy these new files.
* Mono/C#: Initial exporter support for AOT compilationIgnacio Etcheverry2019-11-154-120/+22
|
* Merge pull request #32051 from qarmin/some_error_explanationRémi Verschelde2019-09-251-1/+1
|\ | | | | Added some obvious errors explanations
| * Added some obvious errors explanationsqarmin2019-09-251-1/+1
| |
* | Mono: Fix unable to create log file due to str_format bugIgnacio Etcheverry2019-09-081-3/+7
|/
* Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in 'modules/mono'Ignacio Etcheverry2019-08-091-4/+1
| | | | | | And 'CRASH_*_MSG' as well. Also make error messages puntuation and quotation more consistent.
* Merge pull request #30428 from neikeq/gitcheckout-bRémi Verschelde2019-07-092-46/+113
|\ | | | | Misc Mono Fixes
| * Fix --generate-mono-glue bug when directory doesn't existIgnacio Etcheverry2019-07-082-46/+113
| | | | | | | | DirAccess::get_full_path(path) only works if the path exists. Implement our own abspath function.
* | Fixes minor issues found by static analyzerqarmin2019-07-071-1/+1
|/
* Mono: Android build and shared libraries fixesIgnacio Etcheverry2019-07-032-0/+116
| | | | | Fix location of Mono's shared libraries. Fix build failing if the directory 'platform/android/java/libs/{target}/{abi}' doesn't exist.
* Some code changed with Clang-Tidyqarmin2019-06-261-1/+1
|
* Fix generation of Mono Glue for Visual Studio 2017+ShyRed2019-05-051-1/+1
| | | | vsnprintf definition should only be changed when MSC version is older than 2013. The version check and fix is taken from StringUtils.h of assimp.
* Ignore a warning in _get_socket_error (-Wlogical-op).marxin2019-05-021-1/+1
| | | | | | | | | | | | | | drivers/unix/net_socket_posix.cpp: In member function 'NetSocketPosix::NetError NetSocketPosix::_get_socket_error()': drivers/unix/net_socket_posix.cpp:197:22: warning: logical 'or' of equal expressions [-Wlogical-op] 197 | if (errno == EAGAIN || errno == EWOULDBLOCK) | ^ and: modules/mono/utils/string_utils.cpp: In function 'int {anonymous}::sfind(const String&, int)': modules/mono/utils/string_utils.cpp:68:48: error: logical 'or' of collectively exhaustive tests is always true [-Werror=logical-op] found = src[read_pos] == 's' || (c >= '0' || c <= '4'); ~~~~~~~~~^~~~~~~~~~~
* Fix missing argument for vsnprintf_sIgnacio Etcheverry2019-04-301-1/+2
|
* C# bindings generator cleanupIgnacio Etcheverry2019-04-252-0/+62
| | | | | | - Normal log messages are no longer warnings. - BindingsGenerator is no longer a singleton. - Added a log function.
* Merge pull request #27711 from neikeq/ifdef-clang-tidyRémi Verschelde2019-04-081-2/+2
|\ | | | | Replace a few #if/#elif with #ifdef and "#elif defined"
| * Replace a few #if/#elif with #ifdef and "#elif defined"Ignacio Etcheverry2019-04-051-2/+2
| |
* | Mono: Buildsystem support for finding MSBuild from VS2019Ignacio Etcheverry2019-04-061-3/+3
|/
* Add support for new MSBuild directory naming introduced in VS 2019.Sebastian Hartte2019-03-201-0/+8
|
* Don't print 'Cannot find Mono in the registry' if bundled with GodotIgnacio Etcheverry2019-02-151-2/+0
| | | | Closes #24753
* Fix check to determine if [[noreturn]] attribute is usableIgnacio Etcheverry2019-02-101-5/+1
|
* Merge pull request #25478 from neikeq/rrIgnacio Etcheverry2019-02-032-19/+37
|\ | | | | Mono: Fix MonoPosixHelper not being found
| * Mono: CleanupIgnacio Etcheverry2019-02-032-19/+37
| |
* | Mono: Test Windows binaries with lowercase extensionRémi Verschelde2019-01-271-1/+1
|/ | | | | | | | | To help users writing good cross-platform code, Godot's `FileAccessWindows:open()` will issue a warning on case mismatch, which happens here with capitalized extensions given by `PATHEXT` compared to actual file extensions which are lowercase 99% of the time. Fixes #25368.
* Mono: Fix hot reload build errors and cleanupIgnacio Etcheverry2019-01-221-0/+1
|
* Update copyright statements to 2019Rémi Verschelde2019-01-0112-24/+24
| | | | Happy new year to the wonderful Godot community!
* Fix missing/malformed license headersRémi Verschelde2019-01-011-1/+1
|
* C#: Improve tool script support and fix reloading issuesIgnacio Etcheverry2018-11-302-4/+73
|
* Improve the C# API projects generationIgnacio Etcheverry2018-11-081-4/+6
| | | | | | - Now there is only one solution that contains both GodotSharp and GodotSharpEditor project. Previously we had one solution for each project - GodotSharpEditor reference GodotShatp with a 'ProjectReference'. Previously it was a 'Reference' to the assembly - This also simplifies the command line option to generate this solution: 'godot --generate-cs-api <OutputDir>'
* Parse C# script namespace and classIgnacio Etcheverry2018-10-252-0/+30
| | | | - Added a very simple parser that can extract the namespace and class name of a C# script.
* C#: Optimize struct marshallingIgnacio Etcheverry2018-10-171-0/+9
| | | | | - We no longer box struct to return them from internal calls. - Use reinterpret_cast if the managed struct layout is the same as the native struct.
* Fix GCC compiler warning in mono moduleIgnacio Etcheverry2018-10-032-8/+14
| | | | | | | - thread_local.h: 'delegating constructors only available with -std=c++11 or -std=gnu++11' - mono_reg_utils.cpp: 'extra tokens at end of #endif directive' - mono_bottom_panel.cpp: '<fieldB> will be initialized after <fieldA> when initialized here' - bindings_generator.cpp: 'name lookup of 'i' changed (...) matches this 'i' under ISO standard rules (...) matches this 'i' under old rules (...)'
* Mono: Fix opening code editors in OSX and cleanupIgnacio Etcheverry2018-09-172-0/+103
|
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-125-9/+9
| | | | | | This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
* Style: Fix issues that went past CIRémi Verschelde2018-08-212-4/+3
|
* fixed: windows mono compile (#20598)Nick Hope2018-07-312-3/+3
| | | | | tidy: formatting.
* Fix Mono compilation on Windows/MingHein-Pieter van Braam2018-07-292-10/+19
| | | | (cherry picked from commit 83140541dc91c29a288d7dd71044780b50b2cc4b)
* Mono: Pending exceptions and cleanupIgnacio Etcheverry2018-07-043-0/+329
|
* Fix editor detecting msbuild with a msvc 'tools only' installIgnacio Etcheverry2018-05-021-0/+2
|
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-056-0/+6
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Update copyright statements to 2018Rémi Verschelde2018-01-016-12/+12
| | | | Happy new year to the wonderful Godot community!
* Style: Apply new clang-format 5.0 style to all filesRémi Verschelde2017-12-072-2/+2
|
* Fix 'which' returning file without extension on WindowsIgnacio Etcheverry2017-10-301-3/+3
|
* Improve signature of signal target generated functionIgnacio Etcheverry2017-10-162-0/+35
|
* Added mono moduleIgnacio Etcheverry2017-10-036-0/+612