Joao Matos
d2e8d6ede1
Remove unused using declarations in `CLI/Generator.cs`.
7 years ago
Joao Matos
ea7023dfad
Remove ParserOptions.Abi since its misleading as it serves no purpose.
7 years ago
David Schaefer
45b05d7e23
fixes typo in options: chsarp -> csharp
7 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();
7 years ago
Joao Matos
c3629a2aad
Initial support for building under .NET Core.
7 years ago
Joao Matos
d5e6e11046
Improve the defaults of necessary generation options to improve accessibility.
8 years ago
Joao Matos
b2b5567c7f
Call the parser setup code in CLI and get rid of specific Mac parser setup code.
8 years ago
Joao Matos
94ef299378
Only include header files when scanning directories in CLI.
8 years ago
Joao Matos
5352b6f8b0
Minor code readability refactor.
8 years ago
Joao Matos
7b0aaf5dda
Improve error handling in case of exceptions in CLI tool driver.
8 years ago
Joao Matos
017e119bd0
Added RTTI flag to the CLI tool.
8 years ago
Joao Matos
1b444fc988
Improved error message on CLI tool.
8 years ago
Brahim Hadriche
d5a1210aa4
Write error messages to stderr, renamed `messages` to `errorMessages`
8 years ago
Dimitar Dobrev
fceb204a98
Fixed the generated C# for members of types nested in templates.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 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.
9 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.
9 years ago
Joao Matos
eef53dfce2
Added a new verbose flag to the CLI tool and improved verbose handling.
9 years ago
Joao Matos
2d65d2b493
[cli] Added some aliases to options in CLI tool.
9 years ago
Joao Matos
2b5c256514
[cli] Fixed initial output messages.
9 years ago
Joao Matos
4f77dafb2e
[cli] Added an option for enabling debug mode for generated output.
9 years ago
Joao Matos
fbfd1e1b89
[cli] Improve directory setup in case the path is not a file path.
9 years ago
Joao Matos
00ae918561
[cli] Extract target triple setup code into its own method.
9 years ago
Joao Matos
b31930ad4a
[cli] Adds a new option for automatic compilation of generated code.
9 years ago
Joao Matos
97eb8b0f1c
[cli] Adds a new dedicated "-exceptions" flag to enable C++ exceptions.
9 years ago
Joao Matos
a302beccdc
[cli] Added a new -A option to pass compiler arguments to Clang parser.
9 years ago
Joao Matos
c030256ab0
[cli] Fixed wrong option name.
9 years ago
Joao Matos
d6b61f0401
[cli] Do not show the help if we have output an error previously.
9 years ago
Joao Matos
544cd68725
[cli] Improve error messages.
9 years ago
Joao Matos
af60821393
[cli] Remove unused directory include commented code.
9 years ago
Joao Matos
eac99badd4
[cli] Improve platform detection so the current platform is set by default.
9 years ago
Joao Matos
926fb78f23
[cli] Fixed directory check that was throwing exceptions in Mono.
9 years ago
Dimitar Dobrev
fe85a33ba1
Restored the renaming of enums.
...
Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
9 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>
9 years ago
Joao Matos
dad52a2d5b
Clean up display paths of generated build project files.
...
Fixes issue #639 . https://github.com/mono/CppSharp/issues/639
9 years ago
Marco Zille
6faa591884
Fixed wrong application name when showing help (see #745 )
9 years ago
Marco Zille
9b2ef9e520
Fixed up CLI code to match repository's style
9 years ago
Joao Matos
7ce23aebc0
Clean up compilation warnings.
...
../../../src/CLI/CLI.cs(147,29): warning CS0168: The variable `ex' is declared but never used
../../../src/CLI/CLI.cs(186,30): warning CS0168: The variable `ex' is declared but never used
9 years ago
Joao Matos
9d9aebf2eb
Remove duplicated TargetPlatform type in CLI.
9 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
06491bb454
Changed CppSharp.CLI project from library to console application
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
f1ec08480e
Link CLI project with System.Core.
9 years ago
Joao Matos
d9f841465c
Minor code formatting improvements.
9 years ago
Joao Matos
62dbdb6bfa
Added build scripts for CLI.
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