Conrad Kreyling
c880be445c
Enable ARM64 support on LLVM builds
1 year ago
Joao Matos
7cddce6ad7
Default to .NET 5.0 if building for VS2019 or under.
2 years ago
João Matos
8cf6e3f280
Allow passing a `-target-framework` option to `build.sh` ( #1718 )
...
Closes https://github.com/mono/CppSharp/issues/1717 .
2 years ago
João Matos
4417dd987a
Code cleanups and improvements ( #1713 )
...
* Code cleanups.
* Run GetterSetterToPropertyPass for more generators.
* Fixed compile warning when compiling parser bindings.
* Cleanup driver code.
* Remove dead 32-bit code.
* Reduce verbosity when Options.Quiet is set.
* Remove test compile-time warnings.
* Move .NET tests to tests/dotnet.
* Remove unused AST viewer code and premake-qt submodule.
* Move tests2/ contents to tests/.
2 years ago
João Matos
db7949b263
Misc changes ( #1710 )
...
* Minor code refactoring for re-use.
* Add Class.FindVariable helper method.
* Upgrade to .NET 6.
2 years ago
josetr
62e9119c63
Create a single nuget package that supports windows / linux / macos
5 years ago
josetr
0b69eb8655
Use C++17 in all native projects
5 years ago
josetr
1926e69435
Only use premake for native projects and improve c# projects.
5 years ago
josetr
98f40dc1cd
Fix naive version comparison
5 years ago
josetr
64f237db0f
Fix GCC version detection
5 years ago
josetr
8de5e1a2ae
Move all LLVM files to /build/llvm
5 years ago
josetr
e16966b3c4
Move generated .vcxproj files back to their original place
5 years ago
josetr
dbbcb6dbdf
Upgrade to .NET Core 3.1 and improve build system
5 years ago
josetr
65eaa3fe44
Remove whitespaces
...
Remove whitespaces
5 years ago
josetr
e22b8cb8a6
Generate correct LLVM package name regardless of the current operating system
5 years ago
josetr
9e8086501a
Avoid using "action:vs* filter because there are better ones that are more specific ( #1523 )
5 years ago
Joao Matos
1407f35a11
Some Premake robustness fixes for Clang toolchain.
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
c443fe3355
Fix minor issue when invoking Premake without an action.
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
71ca2d9be5
Enable Multi-processor Compilation (MSVC)
5 years ago
Joao Matos
0f7b61e05f
Remove unused build code.
5 years ago
Joao Matos
7585d858f3
Minor build refactor and preparation for gmake2.
5 years ago
josetr
832e4e9eb0
Fix IntPtr array marshalling bug and move hard to read code to CppSharp.Runtime ( #1446 )
5 years ago
josetr
df98fc460a
Use C# 'default literal' to avoid using a type's name that may be renamed ( #1432 )
...
* Use C# 'default literal' to avoid using a type's name that may be renamed
5 years ago
Dimitar Dobrev
0a15871751
Add an option for building with Visual Studio 2019
...
Fixes https://github.com/mono/CppSharp/issues/1390 .
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
João Matos
bd783b1cd0
Add debug option and flags to the Premake build and compile scripts.
5 years ago
João Matos
d110a2f045
Fix Mono not being found on the PATH on recent macOS versions.
5 years ago
Joao Matos
eab2620c18
Update LLVM to the latest version.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
Signed-off-by: Joao Matos <joao@tritao.eu>
6 years ago
Joao Matos
8278efd338
Add options to disable tests and examples from the build.
6 years ago
Dimitar Dobrev
96d231e5d4
Generate projects for .NET 4.7 to use new features
...
An example is LPUTF8Str which can be used for marshalling UTF-8 strings.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Dimitar Dobrev
d24ef35949
Make the default build for Windows 64-bit
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
6 years ago
Joao Matos
68db2a8e39
Fixed AST viewer to compile on Linux.
7 years ago
Joao Matos
b4f7459531
Improve error handling in build scripts `UseClang()`.
7 years ago
Joao Matos
5dcdfa66f3
Minor build changes.
7 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
f0d3e731ad
Fixed Windows SDK version detection in build scripts.
7 years ago
Rokas Kupstys
5a190bfb1b
Explicitly link to libstdc++ on linux.
...
In some environments using secondary installed compiler version does not link to libstdc++ automatically, which results in `DllNotFoundException`.
8 years ago
Rokas Kupstys
1cac2e0d78
Enable cxx11 abi for GCC 4.9+ on linux.
...
GCC version is checked, if version is 4.8 or lower then cxx11 ABI is disabled. Added new `--no-cxx11-abi` option. It explicitly disables cxx11 ABI even on new compilers. This option is also taken into account when building LLVM.
8 years ago
Rokas Kupstys
b67e9bc9b2
Force-set platform type to managed targets. ( #1011 )
...
In some environments mono defaults building managed targets in architecture different from the host (like AnyCPU or x86 on x64 host). For example on x64 host (linux) build system would produce i686 architecture managed executables while native libraries are built as amd64. In such case managed executables are unable to load native libraries because they target different native architectures. This change ensures architecture consistency between all built binaries.
8 years ago
Joao Matos
142b3be9f1
Added a default build config file and an option to disable config generation.
8 years ago
Joao Matos
2d69ead3ca
Fixed os.ishost check so we do not call is_64_bits_mono_runtime on Windows.
8 years ago
Joao Matos
184f678f38
Use dotnetframework instead of framework Premake command.
8 years ago
Joao Matos
66637ccd31
Default to .NET Framework 4.6 in Premake.
8 years ago
Joao Matos
b52ad8b43f
Update Premake build files to latest syntax.
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
d7bc6eb279
Move "arch=" build option to helpers file and provide a default value.
8 years ago
realvictorprm
1662f5108f
Added support for VS 2017 project generation
...
Fixed also the regex for finding ms build tools.
It's required to open the batch files with the developer command prompt
of vs 2017 !
8 years ago
Joao Matos
e62448638a
Be more specific when applying C++ language build options.
9 years ago