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
Joao Matos
32efe89731
Use Premake workspace token instead of builddir to fix builds for dependent projects.
9 years ago
Joao Matos
e2e7079866
Factor .NET framework build version setup code to fix a bug for dependent projects.
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
9041a73fab
Try to include premake5.lua files when looking for examples.
10 years ago
Joao Matos
d835a34fbf
Reduce verbosity of build scripts.
10 years ago
Joao Matos
779ed9db71
Fourth round at build and packaging scripts.
10 years ago
Joao Matos
04f6baf0c8
Updated build objects directory to use same pattern as libraries.
10 years ago
Tomi Valkeinen
d73d097851
Add -fpermissive to gcc cflags
...
We again have code that does not compile with gcc:
../../../src/CppParser/AST.h:770:19: error: declaration of
‘CppSharp::CppParser::AST::MacroLocation
CppSharp::CppParser::AST::PreprocessedEntity::MacroLocation’
[-fpermissive]
MacroLocation MacroLocation;
^
../../../src/CppParser/AST.h:756:12: error: changes meaning of
‘MacroLocation’ from ‘enum class
CppSharp::CppParser::AST::MacroLocation’ [-fpermissive]
enum class MacroLocation
Instead of trying to figure out a good name for the property, and to
avoid the same issues in the future, let's just add the -fpermissive
flag back.
Maybe it can be removed in the future if and when Linux support works
well and is supported by the build test bot.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
11 years ago
Tomi Valkeinen
dc5e961695
build: add os.is_linux()
...
Add function to detect if running on linux.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
11 years ago
Vladimir Timofeev
cac09f703d
Link with LLVMProfileData only if it exists in libdirs.
...
This library exists only in recent llvm, so adding it to link, breaks windows builds...
Premake do not allow this, so implement StaticLinksOpt in Helpers.lua
11 years ago
Vladimir Timofeev
2db8884c27
Fix osx detection, we do not parse result of os.getversion() in premake (seems it return something strange). Instead use internal os detection in premake.
11 years ago
triton
74ad732550
Link native projects with libc++ on OSX.
...
All tests compile on OSX now.
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
João Matos
21ecc669a8
Added a way to directly specify the output directory independent of the action.
...
We will use this to support generating Xamarin Studio compatible projects with the VS action, while still invoking the Make action for native builds.
11 years ago
triton
c542f98770
Removed "-fvisibility-inlines-hidden" from the Mac build flags.
...
This might be part of the cause why some declarations were not being properly exported.
11 years ago
Joao Matos
b19cd1042e
Updated build scripts with OS X fixes and added some building documentation.
12 years ago
triton
5412669fb4
Updated the MSVC build flags to disable some useless warnings in Clang.
12 years ago
triton
7291aa3ee5
Changed the output folder to be based on separate folders rather than name suffixes.
12 years ago
triton
a5abf87390
Turn optimization flags on for release builds.
12 years ago
triton
b940cf186f
Include the CLI parser in VS configurations.
12 years ago
triton
57ff6bb78c
MinGW/OSX build fixes.
12 years ago
Joao Matos
1c6538207e
Fixed Premake build files for OSX.
12 years ago
triton
b856fada62
Updated build scripts for test projects to call the generator as a pre-build event.
12 years ago
triton
6d02e8bb7d
Improved the tests-related build system scripts.
12 years ago
triton
2930f1b939
Added some helper build functions for tests and examples.
13 years ago
triton
c751f417dc
Simplified the Premake build files.
13 years ago