Joao Matos
94f1cb5efd
Update QuickJS test suite to bootstrap its own QuickJS runtime.
2 years ago
Joao Matos
2bef56609f
Avoid generating properties when generating QuickJS register code.
2 years ago
Joao Matos
5e405d9b85
Update QuickJS runtime and support code to work with latest upstream.
2 years ago
Joao Matos
e649400ec0
Update QuickJS JS_GetOpaque and JS_GetAnyOpaque references to work with latest upstream.
2 years ago
Joao Matos
a106f8b4b9
Update file generation naming pattern for QuickJS files.
2 years ago
Joao Matos
8f41d96f09
Avoid generating includes to units when generating the QuickJS module.
2 years ago
Joao Matos
3b7821414b
Minor code cleanup.
2 years ago
Joao Matos
642379a544
Fix QuickJS primitive type marshaling to take target sizes into account.
2 years ago
Joao Matos
57ed101bfe
Implement new Lua bindings file and commands for CLI tool.
2 years ago
Joao Matos
42d2b8aa69
Default to x64 platform over x86 for the CLI.
2 years ago
Joao Matos
aaaffff727
General CLI code cleanups.
2 years ago
Joao Matos
e962ea4188
Alias QuickJS generator kind to `quickjs`.
2 years ago
Joao Matos
343c0aa389
Fix generator kind CLI option matching.
2 years ago
Joao Matos
6712a6a973
Handle more primitive types in `GetInfo`.
2 years ago
Joao Matos
de42b4c9b2
Fixes to QuickJS marshaling.
2 years ago
João Matos
d82f78d5cc
Upgrade CI to macOS 12. ( #1867 )
2 years ago
João Matos
bf03942a92
Auto-detect .NET target framework to use in `build.sh` ( #1864 )
...
* Auto-detect .NET target framework to use in `build.sh`.
* Remove some unused build code and files.
2 years ago
Henrik Valve
345de8b1fb
Couldn't remove mobules without translation unit ( #1861 )
...
I do not know I'm first to encounter this, however, loop that removes module without translation units, could not have worked.
In C# Enumerator prohibs editing the collection so you cannot remove modules from `options.Module` while iterating `options.Mobule`.
Chose `RemoveAll` for its simplicity. Not necessary optimal solution although it might be.
Co-authored-by: HenrikVDestia <henrik.valve@destia.fi>
2 years ago
Ruben Tytgat
b658ff32f1
Fix issue #1283 ( #1855 )
...
* Fixes issue #1283
* Add test for issue #1283
* Move test for issue #1283 to CSharp test suite
* Fix typo
2 years ago
Christian Howe
3f923b1c64
Fix Xcode C++ include path ( #1844 )
2 years ago
Stefan
81e0a931cf
Don't add values to enums that can't be parsed ( #1836 )
...
* Don't add values to enums that can't be parsed
* Fix test case
* Oops
3 years ago
João Matos
f2f48dc1a3
Update LLVM.md
...
Fix documentation.
3 years ago
João Matos
099fadb9a1
ABI handling fixes in Parser.cpp ( #1829 )
...
* ABI handling fixes in Parser.cpp
* Update Parser.cpp
3 years ago
João Matos
8bd3f456a1
Update llvm.yml to install AArch64 cross compilers
3 years ago
Conrad Kreyling
a81abd5614
LLVM crosscompile x64 for ARM64 ( #1826 )
...
* LLVM crosscompile x64 for ARM64
* Fix MacOS host platform test
* Ensure options is persistent in cross compile paths
3 years ago
Conrad Kreyling
1d1b21f25e
Instruct generator to build ARM64 bindings
3 years ago
Conrad Kreyling
491248b7d5
Fix missing AArch64 entry in CLI CppAbi
3 years ago
Conrad Kreyling
bbb0693ef5
Enable ARM64 support on LLVM builds
3 years ago
Joao Matos
b5ab95e11d
Update iOS64 ABI name to the more accurate AppleARM64.
3 years ago
Joao Matos
d1307a532f
Add support for AArch64 C++ ABI.
3 years ago
deadlocklogic
9071cd2a59
Implement ClassTemplatePartialSpecialization::Parameters ( #1809 )
...
* Implement ClassTemplatePartialSpecialization::Parameters
* Template.cs: Implement ClassTemplatePartialSpecialization.Parameters
* GeneratorKind: fix bug introduced while migrating from enum to class
* Implement native ClassTemplatePartialSpecialization.Parameters + ASTConverter
* regenerated bindings (#1813 )
* regenerated bindings
* regenerated bindings after rebase
* Directory.Build.props: support C# 10.0
* Implement native ClassTemplatePartialSpecialization.Parameters + ASTConverter
* Regenerated bindings
* TestAST.cs: add TestASTClassTemplatePartialSpecialization
3 years ago
deadlocklogic
2ecd9528ff
regenerated bindings ( #1813 )
...
* regenerated bindings
* regenerated bindings after rebase
* Directory.Build.props: support C# 10.0
3 years ago
deadlocklogic
24d1a8491d
Stdlib.CSharp.cs: remove buggy typemap ( #1812 )
3 years ago
deadlocklogic
1327971e25
GeneratorKind: patch bug caused by missing ToString ( #1811 )
3 years ago
Joao Matos
519e97f2da
Remove 32-bit builds and non-debug symbols release builds from LLVM Windows CI.
3 years ago
deadlocklogic
12112720f3
Build llvm `Debug`/`Release` for `Windows`. ( #1800 )
...
* Update llvm-win.yml
* Update llvm-win.yml
* Update llvm-win.yml
3 years ago
zylalx1
12c267d9c4
Fixed a bug causing the header file to be included twice when Options.GenerateName is not null ( #1803 )
3 years ago
deadlocklogic
e068f2a14a
Typemap cleanup ( #1802 )
...
* TypeMap: prepare refactoring into a modular design
* TypeMap: refactor C++ backend into common methods
* TypeMap: refactor CLI backend into common methods
* CLI.Gen.cs: fix omitted typemap from previous commit
* Common.Gen.cs: fixed silly modification while testing
* GeneratorKind: add FindGeneratorKindByID method
* TypeMapDatabase: heavy refactor: group typemaps by GeneratorKind
* TypeMap: refactor CSharp backend into common methods + migration
* TypeMap: cleanup patches from previous commits
* TypeMapDatabase: fix passing GeneratorKind to FindTypeMap calls
* Stdlib.CSharp.cs: move std::map typemap from Stdlib.CLI.cs
* TypeMapDatabase: improve parameter name
3 years ago
deadlocklogic
8c2da6d542
Major refactor: TypePrinter: improve modular design + cleanup ( #1796 )
3 years ago
deadlocklogic
0edd48c6a1
Major refactoring: refactor GeneratorKind enum into a class ( #1794 )
...
* Major refactoring: refactor GeneratorKind enum into a class
* Minor fix: add readonly
* Add Type property for GenerationKind + cleanup
* GeneratorKind: add Name property + refactor hardcoded names
* GeneratorKind: add CLIOptions property + refactor hardcoded options
* CppSharp.CLI: minor fix: use generator.ToLower()
* GeneratorKind: fix warning
3 years ago
deadlocklogic
40f3a09296
Minor improvements ( #1793 )
...
* CppSharp.Generators.Options: added pre/post TranslationUnitPass callback
* CppSharp.Generators.Passes.Pass: added TranslationUnitPassGeneratorDependent
3 years ago
Stefan
b14038ab07
Value types may generate `Dispose` ( #1787 )
3 years ago
João Matos
3b2a15d9f5
Update README.md
3 years ago
Stefan
a5afda8603
Fix parameterless constructors not being generated for structs ( #1783 )
...
* Fix parameterless constructors not being generated for structs
* Fix implicit non-trivial default ctor
* Adjust `Ignore` linked issue
3 years ago
Stefan
b16e809b9e
Introduce `GenerateFreeStandingFunctionsClassName` option ( #1782 )
...
* Introduce `GenerateFreeStandingFunctionsClassName` option
* Support CLI and fixes
3 years ago
Stefan
03874e743f
Fix Value Type String Member Invalid Codegen ( #1778 )
...
* Fix code generation
* Generate exception on broken struct set op
* Remove redundant usings
3 years ago
Salvage
adffc99bc8
Fix erroneous newline
3 years ago
Salvage
b4f261ea38
Simplify `IsTemplateParameterType`
3 years ago
Salvage
28000a14b4
Fix #1251 three parameter equality operator
...
- Operators in generic classes do not attempt to generate as extension methods anymore
- Empty `...Extensions` classes are no longer generated
- `string` as a template argument is correctly cast
- `MarshalCharAsManagedChar` option also generates correct casts
- Suppress warning regarding returning struct field by ref
- Eliminate some tabs that snuck into the test C++ header
3 years ago
Joao Matos
d7faf5f063
Fix SDL_PollEvent generation in the SDL example.
...
Fixes https://github.com/mono/CppSharp/issues/978 .
Thanks to @Saalvage .
3 years ago