Dimitar Dobrev
201d28e64d
Make all libraries of CppSharp use .NET Standard
...
This makes them usable with .NET Framework, .NET Core and .NET 5.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
4 years ago
Joao Matos
598604e8f8
Add ILibrary.GenerateCode as a custom code generation callback.
5 years ago
Joao Matos
59bd475c17
Setup include dirs on the module instead of parser options in the CLI.
5 years ago
Joao Matos
6ea853e9fd
Add N-API generator support to the CLI.
5 years ago
Joao Matos
e16f484be1
Remove artificial limitations for cross-generation in CLI.
5 years ago
Joao Matos
21c89be203
Simplify target-specific message output code in CLI.
5 years ago
Joao Matos
02049cf690
Add a new option to set a prefix for generated files in CLI.
5 years ago
Joao Matos
62c030a86c
Improve module naming heuristics and add an option for setting it explicitly.
5 years ago
Dimitar Dobrev
07763331e2
Move libraries to a new class for linking options
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
5 years ago
Joao Matos
d2e8d6ede1
Remove unused using declarations in `CLI/Generator.cs`.
6 years ago
Joao Matos
ea7023dfad
Remove ParserOptions.Abi since its misleading as it serves no purpose.
6 years ago
David Schaefer
230079e0f6
fixes #1191 CppSharp.CLI.exe --rtti sets -fno-rtti to clang
...
The problem being fixed is that although --rtti is given as argument to
CppSharp.CLI.exe the runtime type information is turned off. The error
is happening because the Generator options are copied over to the
parserOptions after the parserOptions have been used to generate the
cmake call. Thus, the default value of RTTI (off) is always evaluated
and cmake will always get the parameter -fno-rtti.
The same issue seems to apply to the unity build.
This patch fixes the issue by moving the 2 assignments of Generator
options properties into ParserOptions properties before they are
evaluated in parserOptions.Setup();
6 years ago
Joao Matos
d5e6e11046
Improve the defaults of necessary generation options to improve accessibility.
7 years ago
Joao Matos
b2b5567c7f
Call the parser setup code in CLI and get rid of specific Mac parser setup code.
7 years ago
Joao Matos
017e119bd0
Added RTTI flag to the CLI tool.
7 years ago
Joao Matos
1b444fc988
Improved error message on CLI tool.
7 years ago
Dimitar Dobrev
fceb204a98
Fixed the generated C# for members of types nested in templates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Rokas Kupstys
aa33609d45
Clean up linux includes setup.
...
Includes setup was moved to ParserOptions.cs and is used just like `SetupMSVC()` and `SetupXcode()`. Native compiler is queried for it's type and version. Correct include paths are set up in cases where system has multiple compilers installed as well.
8 years ago
Rokas Kupstys
05445f3028
Linux fixes, Bootstrap.cs build errors, warnings ( #1010 )
...
* Fix warnings about unused variables
* Fix linux include paths in ParserGen and CLI generator.
Remove parsing of `CppSharp.CppParser.lib` as it is not used.
* Fix build errors in CppSharp.Parser.Bootstrap target.
8 years ago
Joao Matos
eef53dfce2
Added a new verbose flag to the CLI tool and improved verbose handling.
8 years ago
Joao Matos
2b5c256514
[cli] Fixed initial output messages.
8 years ago
Joao Matos
4f77dafb2e
[cli] Added an option for enabling debug mode for generated output.
8 years ago
Joao Matos
00ae918561
[cli] Extract target triple setup code into its own method.
8 years ago
Joao Matos
b31930ad4a
[cli] Adds a new option for automatic compilation of generated code.
8 years ago
Joao Matos
a302beccdc
[cli] Added a new -A option to pass compiler arguments to Clang parser.
8 years ago
Joao Matos
c030256ab0
[cli] Fixed wrong option name.
8 years ago
Joao Matos
544cd68725
[cli] Improve error messages.
8 years ago
Joao Matos
af60821393
[cli] Remove unused directory include commented code.
8 years ago
Joao Matos
eac99badd4
[cli] Improve platform detection so the current platform is set by default.
8 years ago
Dimitar Dobrev
fe85a33ba1
Restored the renaming of enums.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Dimitar Dobrev
8646d3e077
Obsoleted the direct settings for wrapped libraries in the options.
...
Modules should be used instead.
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
8 years ago
Marco Zille
9b2ef9e520
Fixed up CLI code to match repository's style
8 years ago
Joao Matos
0180badea4
Fixed wrong check for Linux target platform in CLI options.
9 years ago
zillemarco
4d215757ba
Added more information when errors occur or invalid options are given
9 years ago
Joao Matos
1371f89957
Convert CheckMacroPass to be a default pass.
9 years ago
Marco Zille
c9eae5c863
Improved CLI help and parameters
9 years ago
Marco Zille
a80fefde9b
Cleared command line options to make them more standard
9 years ago
Joao Matos
d9f841465c
Minor code formatting improvements.
9 years ago
zillemarco
4e5778dd4d
Added CppSharp CLI code from CppSharp.CLI repo
...
Added CppSharp CLI code from CppSharp.CLI repository to add its
functionalities to CppSharp.
9 years ago