Dimitar Dobrev
c38556a93b
Make auto-compiling of C# work with .NET Core
...
CodeDom doesn't work in .NET Core (https://github.com/dotnet/runtime/issues/18768 ) and Roslyn turns out to be too low level (just a compiler and not a building framework) so the best approach is to invoke msbuild as a process.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
josetr
62e9119c63
Create a single nuget package that supports windows / linux / macos
5 years ago
Joao Matos
9bc3453411
Upgrade .NET projects to C# 8.0.
5 years ago
josetr
1926e69435
Only use premake for native projects and improve c# projects.
5 years ago
josetr
dbbcb6dbdf
Upgrade to .NET Core 3.1 and improve build system
5 years ago
josetr
9e8086501a
Avoid using "action:vs* filter because there are better ones that are more specific ( #1523 )
5 years ago
josetr
777f011ac7
Prevent projects from picking up obj files that are generated sometimes ( #1508 )
5 years ago
josetr
5912c236ec
VTable: improve codegen & make it thread safe ( #1469 )
5 years ago
josetr
52140cb78b
Create VTables class to cache delegates pointing to native virtual methods ( #1468 )
5 years ago
josetr
3674e123ec
Improve UTF32Marshaller performance ( #1467 )
5 years ago
josetr
eac78c6caf
Improve generation of C# ( #1466 )
5 years ago
josetr
832e4e9eb0
Fix IntPtr array marshalling bug and move hard to read code to CppSharp.Runtime ( #1446 )
5 years ago
josetr
0cfc060018
Fix string marshalling bug and move hard to read code to CppSharp.Runtime ( #1445 )
5 years ago
josetr
37c0164072
Add support for const char32_t* and fix const wchar_t* in linux / osx ( #1444 )
...
* Add support for const char32_t* and fix const wchar_t* in linux / osx
5 years ago
Dimitar Dobrev
076318be29
Free the memory of the patched v-tables
...
Fixes https://github.com/mono/CppSharp/issues/586 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
b12acfcce7
Upgrade ANSI marshalling to UTF-8 marshalling
...
UTF-8 is backwards-compatible with i.e. a strict superset of, ANSI, so we can safely marshal any ANSI as UTF-8 and thus we gain UTF-8 support for free.
Also fixed leaking memory when passing strings to native code as nobody ever freed the previously used Marshal.StringToPtr.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Dimitar Dobrev
304d673bf7
Add a generic pointer to resolve ambiguity
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
7 years ago
Joao Matos
c3629a2aad
Initial support for building under .NET Core.
7 years ago
Joao Matos
b52ad8b43f
Update Premake build files to latest syntax.
9 years ago
Dimitar Dobrev
b8df198d69
Extended the loading of symbols for variables to also check the running directory.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
dad52a2d5b
Clean up display paths of generated build project files.
...
Fixes issue #639 . https://github.com/mono/CppSharp/issues/639
9 years ago
Dimitar Dobrev
9fd5d48a71
Deleted unused code.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
77c871c794
Update build files to Premake5.
10 years ago
Joao Matos
a237dbf1e2
Updated build files to Premake 5 conventions.
10 years ago
Dimitar Dobrev
87fe62721c
Deleted the redundant and incomplete manual attempts for marshalling std types.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
10 years ago
grbd
947aac986c
Added the ability to search the machine Path or a specified path for the library file as part of ResolveSymbol
10 years ago
Joao Matos
da56988266
Fixed marshaling of null UTF-32 wide strings.
...
Closes issue #606 . Thanks to magnet31 for reporting the issue.
10 years ago
triton
144d26749f
Fixed wide string marshaling on UTF-32 platforms.
11 years ago
Dimitar Dobrev
4a5633731d
Fixed the resolution of variables on Linux.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
73e9455821
Put own (created in managed code) objects in the object map upon creation.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
Dimitar Dobrev
84d8af2396
Added a mapping between native object and their managed wrappers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
11 years ago
João Matos
3b097d8379
Improved the build scripts on OSX.
...
We now ignore CLI and native projects when running the VS action under non-Windows platforms (so that Xamarin Studio can load them).
Also fixed the build to actually add the correct parser bindings sources.
12 years ago
triton
df58e2774f
Added an Std.Map wrapper to be able to use it in internal declarations.
12 years ago
Joao Matos
b19cd1042e
Updated build scripts with OS X fixes and added some building documentation.
12 years ago
triton
830bc946d1
Removed the explicit #if to make this compile on all platforms.
12 years ago
Dimitar Dobrev
7e2b1fd417
Added automatic building of the generated source files.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
a9ace86cd7
Fixed the Runtime project build by adding missing defines.
12 years ago
triton
8fe1ec60ac
Added work-in-progress std::string interop support.
12 years ago
triton
b02e7aa86a
Added work-in-progress std::vector interop support.
12 years ago
triton
71d9ba5761
Added NativeDataSize property to the ICppMarshal interface.
12 years ago
triton
a2ec94639b
Build fixes.
12 years ago
triton
1c137fa2ae
STL containers wrappers now implement ICppMarshal (stubs).
13 years ago
triton
056d0cb6c7
Added new ICppMarshal interface used to marshal objects.
13 years ago
triton
3f93eb4b0e
Added P/Invoke helpers for unmanaged-unmanaged memory copies.
13 years ago
triton
e05ede4b35
Added a stub for std::vector creation.
13 years ago
triton
5c982b5a8f
Better stubs (that actually compile) for std::wstring in C# backend.
13 years ago
triton
c488dcbfde
Prefix all the libraries and project names with CppSharp.
13 years ago
triton
2b7e8b9b90
Improved type maps for C++ string and vector standard library support.
13 years ago
triton
e1f70d7be4
Added the start of a C++ standard library runtime helper.
13 years ago