Jelle
ba751a5c7d
Adjust some compiler options ( #1916 )
4 months ago
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
Dimitar Dobrev
3a50a54fa4
Place all output of tests in their own directories
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
josetr
1926e69435
Only use premake for native projects and improve c# projects.
5 years ago
josetr
bdf055fe6c
Take advantage of .NET Core transitive dependencies
5 years ago
josetr
0a9215b7f3
Include timestamp.cs file in project to ensure bindings are always up to date
5 years ago
josetr
dbbcb6dbdf
Upgrade to .NET Core 3.1 and improve build system
5 years ago
josetr
87b847156d
Ensure bindings are regenerated as needed without using DisableFastUpToDateCheck ( #1511 )
5 years ago
josetr
777f011ac7
Prevent projects from picking up obj files that are generated sometimes ( #1508 )
5 years ago
Dimitar Dobrev
7d2d8f291e
Revert "Generate code from tests where libraries appear"
...
This reverts commit fa47194dae
.
# Conflicts:
# build/Tests.lua
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Joao Matos
dea7e4b501
Fix error in Tests.lua by requiring gmake2 module.
5 years ago
josetr
f556f1ac17
Use NUnit3TestAdapter package ( #1504 )
5 years ago
Dimitar Dobrev
fa47194dae
Generate code from tests where libraries appear
...
This is necessary in order to easily find the compiled symbols as dependencies and target of platform invocation.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
josetr
7791cf6996
Fallback to LayoutKind.Explicit when a custom alignment is specified. ( #1476 )
5 years ago
Dimitar Dobrev
1178ce4055
Create projects which always build generated code
...
This ensures local test runs are always reliable because every time the solution is built the generated code is updated.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Dimitar Dobrev
0e39ab705a
Import native DLL-s (tests and parser) with MSVC
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Ali Alamiri
344656c787
Move the GenerateInclude logic to GetTypeReference ( #1319 )
...
Improve generation of forward references and includes in C++/CLI.
Move the GenerateInclude logic to GetTypeReference so that an include is also generated for visited types of an ASTRecord that are forward declared, and come from typedef of ignored class template.
Co-authored-by: Build Agent <admin@sage.com>
5 years ago
Dimitar Dobrev
86464a378d
Build the generator before test bindings for easy testing
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
304d673bf7
Add a generic pointer to resolve ambiguity
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Joao Matos
4fcfe4e4eb
Build changes.
...
- Added support for building with Clang and LLD
- Switched to use csc.exe Roslyn compiler under Mono
- Disable most of the support for explicit pre-C++11 ABI since we do not
need it anymore
7 years ago
Joao Matos
c3629a2aad
Initial support for building under .NET Core.
7 years ago
Joao Matos
b7d5b2568f
[build] Update some deprecated Premake build code.
8 years ago
Kimon Topouzidis
01677b0cb1
Fixed the generated #includes when renaming output files. ( #887 )
...
Fixes #868
8 years ago
Joao Matos
b52ad8b43f
Update Premake build files to latest syntax.
8 years ago
Joao Matos
438db2854e
[build] Check for mono64 existence before using it for 64-bit builds.
8 years ago
Joao Matos
b466b17c02
[build] Rework how the target architecture is looked up at build time.
...
We now check the system Mono architecture in non-Windows platforms, this is needed since Mono 5 defaults to amd64.
8 years ago
Joao Matos
9dc880dd6a
Fixed build files to run mono64 in 64-bit non-VS builds.
8 years ago
Joao Matos
b0ec4e7f5e
Fixed generated build files to directly link against "CppSharp" for test projects.
8 years ago
Joao Matos
dad52a2d5b
Clean up display paths of generated build project files.
...
Fixes issue #639 . https://github.com/mono/CppSharp/issues/639
8 years ago
Joao Matos
e8064e3f4e
Minor build fixes.
9 years ago
Joao Matos
5dac663926
Remove unneeded dependency on our own Premake helpers.
9 years ago
Joao Matos
77c871c794
Update build files to Premake5.
9 years ago
Joao Matos
c56b6311ed
Extracted managed parser code to CppSharp.Parser project.
9 years ago
Dimitar Dobrev
3cd024cccf
Added marshalling of std::string to the C# end.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Dimitar Dobrev
f197aada99
Made the C# end always generate one file per module.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 years ago
Joao Matos
679de0aa41
Fixed tests generation in build using Xamarin Studio.
9 years ago
Joao Matos
d835a34fbf
Reduce verbosity of build scripts.
10 years ago
Chris Spencer
d5d17e3ca1
Fix issue with includes not being generated for delegates defined in a different file.
10 years ago
Pyry Kontio
c6c9bc4c2f
Improved premake scripts for tests.
11 years ago
Pyry Kontio
87d028f2aa
Namespaces test fixed
11 years ago
Pyry Kontio
fe34164ee2
Implemented dependent native project generation to premake script.
11 years ago
triton
1c50cc58d0
Fixed build on Linux(Ubuntu).
...
Contributed by @shahid-pk .
Closes pull request #360 .
11 years ago
Tomi Valkeinen
1400361711
build: fix nunit dll filename
...
Linux is case-sensitive with filenames, and as the NUnit library files
are lowercase, we need to use lowercase in the build files also.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
11 years ago
João Matos
0847815da3
Calll the binding generator with a debug Mono when building the tests.
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.
11 years ago
triton
1b7947538a
Move all the testing infrastructure to CppSharp.Generator.Tests.
12 years ago
triton
66ca3a742b
Fixed the VS build.
...
The version of Premake that's on the repository does not seem to like the token patterns.
12 years ago
Joao Matos
b19cd1042e
Updated build scripts with OS X fixes and added some building documentation.
12 years ago
triton
a766ba7255
Added tests for C++ STL vectors.
12 years ago
triton
1593cb882d
Fixed examples build functions.
12 years ago