Tomi Valkeinen
480a06f260
Generator: Remove DriverOptions.Is32Bit
...
DriverOptions.Is32Bit is used to decide whether to use 4 or 8 byte
pointer size in VTable calculations.
Instead of having a settable Is32Bit property, use
TargetInfo.PointerWidth for this. This allows us to remove the whole
Is32Bit property, and the IS_64_BIT define.
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
Tomi Valkeinen
7021d7ca01
build: use path.join() for objdir
...
use path.join() to set objdir.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
11 years ago
Tomi Valkeinen
7f612e22e5
build: remove setting libdirs in premake4.lua
...
"libdirs { libdir }" in the main premake4.lua file causes Debug_x32
directory to be added for the libdirs for all builds. I think that's a
bug in premake, as at the same place setting, say, "targetdir" works
fine.
However, setting "libdir" to "libdirs" is not needed at all, so let's remove it.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
11 years ago
Tomi Valkeinen
fc7c84b65a
build: rename osx premake binary
...
Rename osx premake binary to premake5-osx, so that we can add
premake5-linux.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
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
Elias Holzer
933df5e65a
Improved support in parser for template classes and functions.
...
* Use clangIndex to identify declarations across translation units.
* Added new Find*ByUSR methods and removed unused Find*(IntPtr) methods.
* Added Depth/Index and IsParameterPack fields to TemplateParameterType.
* Fixed member initialization issues in C++ Method class.
* Added AST tests for function and class templates.
* All tests pass with new and old parser.
11 years ago
triton
8184de63dc
Added SetupLLVMIncludes in build files.
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
8d9f581a33
Consolidate LLVM linking
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
5c8d7cceb6
Add "lib" folder to lib dirs even in VS to allow ninja builds.
11 years ago
triton
74ad732550
Link native projects with libc++ on OSX.
...
All tests compile on OSX now.
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
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
d37822638f
Split the parser-related build code into its own file.
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
triton
7c0e229a50
Include the tests in non-VS builds again.
11 years ago
triton
0e4f35a83c
Remove old unused Premake4 executable.
11 years ago
triton
7326dc2ec5
Fixed case sensitiveness issue in the build scripts.
11 years ago
Øystein Krog
b39bfb845f
Update GenerateProjects.bat file to include VS2013 c++/new parser option.
12 years ago
Dimitar Dobrev
59e0fb9ede
Generated correct v-tables when using the Itanium ABI.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 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
5412669fb4
Updated the MSVC build flags to disable some useless warnings in Clang.
12 years ago
triton
4f19f3b566
Fixed the parser build setup code to work with the new options.
12 years ago
triton
7f682e41c8
Added a new option to the build to choose between parsers.
12 years ago
triton
b05e54b148
Updated the LLVM build paths to the latest version.
12 years ago
Dimitar Dobrev
64d825fcde
Added building support for x64 and VC++ 12.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago
triton
a766ba7255
Added tests for C++ STL vectors.
12 years ago
triton
1593cb882d
Fixed examples build functions.
12 years ago
triton
24184ca0fa
Added missing SetupParser() function to the build scripts.
12 years ago
triton
847769a9d8
Fixed the tests build scripts.
12 years ago
triton
be0f73f471
Moved Diagnostics class to new core project.
12 years ago
triton
7291aa3ee5
Changed the output folder to be based on separate folders rather than name suffixes.
12 years ago
triton
884c7375c4
Remove unused build code.
12 years ago
triton
f05dd2bfe9
Updated Premake 5 build with a bug fix.
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
bbfef9df6f
Reworked LLVM build in Premake to another file.
12 years ago
triton
57ff6bb78c
MinGW/OSX build fixes.
12 years ago
triton
1e09193cc1
Updated the batch files to Premake 5.
12 years ago
Joao Matos
3192a11e68
Added Premake 5 OSX binary.
12 years ago
triton
53e7721c9d
Added a batch to generate Make files.
12 years ago
triton
cff979a888
Added a build of Premake 5.
12 years ago
Joao Matos
1c6538207e
Fixed Premake build files for OSX.
12 years ago
triton
a524d237e7
Updated the build for the new parser.
12 years ago
Dimitar Dobrev
b82aebab3a
Added support for writing using indexers.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
12 years ago