Joao Matos
082349654e
Do not try to get Git revision in `git.rev_parse` if the directory is not a repo.
8 years ago
Joao Matos
9e5b9ab539
Remove extra whitespace.
8 years ago
Rokas Kupstys
02ae1f83fe
Explicitly disable use of libedit, zlib, terminfo and libxml2 in LLVM builds.
...
These libs are not used by current official CppSharp binary distributions of LLVM, however building LLVM locally will pick these libs up and link to them if they are installed on local system. Since premake does not link to any of those libs linking to local LLVM build will cause `DllNotFoundException` due to missing symbols.
8 years ago
Rokas Kupstys
1d4c243522
Cloning llvm from git replaced with downloading archives of exacty commits from github. This is much faster.
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
Dimitar Dobrev
481bbc0351
Updated to LLVM/Clang revisions 318543/318538 respectively.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
6e55913c5a
Fixed the script for LLVM to handle paths with spaces.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
4bf9da7804
Updated the CI for macOS to use the latest Mono.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
59b4b0de6b
[build] Update Premake binary for Linux.
8 years ago
Joao Matos
460e98bd93
[build] Update to a Vagrant box that actually works.
8 years ago
Joao Matos
6443e811c3
[build] Update provision scripts deprecated Premake code.
8 years ago
Joao Matos
e1b9cde0e1
[build] Compile.sh script now has improved error handling.
...
Signed-off-by: Joao Matos <joao@tritao.eu>
8 years ago
DevSidious
07ea284431
[parser] Added LLVM target initialization and supporting libraries for parsing inline assembly.
...
Fixes #923
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
b7d5b2568f
[build] Update some deprecated Premake build code.
8 years ago
Dimitar Dobrev
4d177b317d
Switched the Windows CI to Visual Studio 2017.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
142b3be9f1
Added a default build config file and an option to disable config generation.
8 years ago
Dimitar Dobrev
f16c229f27
Updated premake for Windows to the latest version.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
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
661609176a
Rewrite build config file generation in Premake.
...
The previous version used io.output which is not needed and also badly interacts with Premake internals.
8 years ago
Joao Matos
e6077448a0
Update Premake5 to fix Nuget bug.
...
https://github.com/premake/premake-core/pull/858
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
Abhinav Tripathi
2ccdc59fc0
Fix the typo in LLVM.lua ( #906 )
...
Prevented projects from being generated using GenerateProjects.bat
8 years ago
Kimon Topouzidis
01677b0cb1
Fixed the generated #includes when renaming output files. ( #887 )
...
Fixes #868
8 years ago
Mohit Mohta
416c67215c
Added passage of VS Version selected at config time to the build ( #886 )
...
Fixes #815
Fixes #814
8 years ago
Dimitar Dobrev
cbd1e0e53c
Fixed the macOS build with the new Clang.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
5da324dcf8
Link LLVM's BinaryFormat library last to fix Linux symbol linkage.
8 years ago
Joao Matos
653d0efb2c
Updated deprecated os.is() checks in Premake build scripts.
8 years ago
Joao Matos
ba130c6e6f
Updated Premake binary for Windows.
8 years ago
Dimitar Dobrev
f946eea70e
Fixed the Unix build after upgrading the Unix Clang packages.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
b52ad8b43f
Update Premake build files to latest syntax.
8 years ago
Joao Matos
6c5d51ebd8
Updated Premake binaries for Linux and macOS.
8 years ago
Joao Matos
e72661ba24
Fixed the check for Vagrant environment on build scripts.
8 years ago
Joao Matos
4fff5854c2
Update CMake version and do provisioning on Linux.
8 years ago
Joao Matos
bd2b22c580
Update build process utilities to work with Lua 5.2 in up-to-date Premake.
8 years ago
Joao Matos
709f431f9e
Upgrade the Vagrant and provisioning script to Ubuntu 16.06.
8 years ago
Joao Matos
1ebbcdf668
Fixed the LLVM build script CMake invocation to work with recent LLVM/Clang revisions.
...
This fixes the dreaded CMake error:
CMake Error at tools/clang/tools/clang-offload-bundler/CMakeLists.txt:18 (add_dependencies):
Cannot add target-level dependencies to non-existent target "clang".
8 years ago
Dimitar Dobrev
d7daed8273
Added support for VS 2017 by updating Clang.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
b28f766d8d
[build] Fixed LLVM compilation script Lua syntax bug.
8 years ago
Joao Matos
1083ebc7af
[build] Added script to compile the codebase.
8 years ago
Dimitar Dobrev
5a289d0f00
Updated the NUnit used in Travis in order to fix a crash in it.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
b6f400dbfa
[tests] Pass --agents=1 to NUnit console test runner to fix intermittent errors.
...
See https://github.com/nunit/nunit-console/pull/183 .
Remove this workaround once we update NUnit consoler runner version.
8 years ago
Joao Matos
438db2854e
[build] Check for mono64 existence before using it for 64-bit builds.
8 years ago
Joao Matos
528fc73258
[build] Remove multi-platform builds, use the `--arch` build option instead.
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
d7bc6eb279
Move "arch=" build option to helpers file and provide a default value.
8 years ago
Joao Matos
d6049dc49e
Added support for specifying build target architecture when building LLVM.
...
Fixes https://github.com/mono/CppSharp/issues/694 .
8 years ago
Dimitar Dobrev
021c3d0821
Fixed the build after the suspension of public folders in DropBox.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Joao Matos
3ee3a5b9a2
Implemented mapping of MSVC to VS 2017 in build scripts.
8 years ago