File tree Expand file tree Collapse file tree 4 files changed +53
-0
lines changed
sources/ClangSharpPInvokeGenerator Expand file tree Collapse file tree 4 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 16
16
<None Include =" Properties/GenerateClangSharp-LICENSE.txt" CopyToOutputDirectory =" PreserveNewest" />
17
17
<None Include =" Properties/GenerateLLVM.rsp" />
18
18
<None Include =" Properties/GenerateLLVM-LICENSE.txt" CopyToOutputDirectory =" PreserveNewest" />
19
+ <None Include =" Properties/GenerateLLVMSharp.rsp" />
20
+ <None Include =" Properties/GenerateLLVMSharp-LICENSE.txt" CopyToOutputDirectory =" PreserveNewest" />
19
21
<None Include =" Properties/launchsettings.json" />
20
22
</ItemGroup >
21
23
31
33
<LibClangName Condition =" '$(LibClangName)' == ''" >libclang</LibClangName >
32
34
<LibClangSharpName Condition =" '$(LibClangSharpName)' == ''" >libClangSharp</LibClangSharpName >
33
35
<LibLLVMName Condition =" '$(LibLLVMName)' == ''" >libLLVM</LibLLVMName >
36
+ <LibLLVMSharpName Condition =" '$(LibLLVMSharpName)' == ''" >libLLVMSharp</LibLLVMSharpName >
34
37
</PropertyGroup >
35
38
36
39
<!-- Auto-detect LLVM... more or less -->
Original file line number Diff line number Diff line change
1
+ // Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
2
+ // Ported from https://github.com/dotnet/llvmsharp/blob/main/sources/libLLVMSharp
Original file line number Diff line number Diff line change
1
+ --additional
2
+ -m64
3
+ -std=c++17
4
+ --config
5
+ exclude-com-proxies
6
+ exclude-empty-records
7
+ exclude-enum-operators
8
+ generate-aggressive-inlining
9
+ generate-callconv-member-function
10
+ generate-cpp-attributes
11
+ generate-disable-runtime-marshalling
12
+ generate-file-scoped-namespaces
13
+ generate-guid-member
14
+ generate-macro-bindings
15
+ generate-marker-interfaces
16
+ generate-native-inheritance-attribute
17
+ generate-setslastsystemerror-attribute
18
+ generate-tests-nunit
19
+ generate-unmanaged-constants
20
+ generate-vtbl-index-attribute
21
+ log-potential-typedef-remappings
22
+ multi-file
23
+ preview-codegen
24
+ trimmable-vtbls
25
+ unix-types
26
+ --define-macro
27
+ _SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING
28
+ LLVMSharp_EXPORTS
29
+ --file
30
+ libLLVMSharp/LLVMSharp.h
31
+ --headerFile
32
+ ./Properties/GenerateLLVMSharp-LICENSE.txt
33
+ --methodClassName
34
+ llvmsharp
35
+ --namespace
36
+ LLVMSharp.Interop
37
+ --output
38
+ ./sources/LLVMSharp/Interop
39
+ --prefixStrip
40
+ llvmsharp_
41
+ --remap
42
+ MSGuidDeclParts=@Guid
43
+ --test-output
44
+ ./tests/LLVMSharp.UnitTests/InteropTests
Original file line number Diff line number Diff line change 13
13
"commandName" : " Project" ,
14
14
"commandLineArgs" : " \" @$(MSBuildProjectDirectory)/Properties/GenerateLLVM.rsp\" --file-directory \" $(LLVMIncludePath)\" --include-directory \" $(LLVMIncludePath)\" --libraryPath $(LibLLVMName)"
15
15
},
16
+ "GenerateLLVMSharp" : {
17
+ "commandName" : " Project" ,
18
+ "commandLineArgs" : " \" @$(MSBuildProjectDirectory)/Properties/GenerateLLVMSharp.rsp\" --file-directory \" $(MSBuildProjectDirectory)/../../../LLVMSharp/sources\" --include-directory \" $(LLVMIncludePath)\" --libraryPath $(LibLLVMSharpName)"
19
+ },
16
20
"GenerateLocal" : {
17
21
"commandName" : " Project" ,
18
22
"commandLineArgs" : " @generate.rsp" ,
You can’t perform that action at this time.
0 commit comments