Skip to content

Commit 77b1edb

Browse files
committed
libLLVMSharp response files
1 parent b6f9089 commit 77b1edb

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed

sources/ClangSharpPInvokeGenerator/ClangSharpPInvokeGenerator.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
<None Include="Properties/GenerateClangSharp-LICENSE.txt" CopyToOutputDirectory="PreserveNewest" />
1717
<None Include="Properties/GenerateLLVM.rsp" />
1818
<None Include="Properties/GenerateLLVM-LICENSE.txt" CopyToOutputDirectory="PreserveNewest" />
19+
<None Include="Properties/GenerateLLVMSharp.rsp" />
20+
<None Include="Properties/GenerateLLVMSharp-LICENSE.txt" CopyToOutputDirectory="PreserveNewest" />
1921
<None Include="Properties/launchsettings.json" />
2022
</ItemGroup>
2123

@@ -31,6 +33,7 @@
3133
<LibClangName Condition="'$(LibClangName)' == ''">libclang</LibClangName>
3234
<LibClangSharpName Condition="'$(LibClangSharpName)' == ''">libClangSharp</LibClangSharpName>
3335
<LibLLVMName Condition="'$(LibLLVMName)' == ''">libLLVM</LibLLVMName>
36+
<LibLLVMSharpName Condition="'$(LibLLVMSharpName)' == ''">libLLVMSharp</LibLLVMSharpName>
3437
</PropertyGroup>
3538

3639
<!-- Auto-detect LLVM... more or less -->
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
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
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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

sources/ClangSharpPInvokeGenerator/Properties/launchSettings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
"commandName": "Project",
1414
"commandLineArgs": "\"@$(MSBuildProjectDirectory)/Properties/GenerateLLVM.rsp\" --file-directory \"$(LLVMIncludePath)\" --include-directory \"$(LLVMIncludePath)\" --libraryPath $(LibLLVMName)"
1515
},
16+
"GenerateLLVMSharp": {
17+
"commandName": "Project",
18+
"commandLineArgs": "\"@$(MSBuildProjectDirectory)/Properties/GenerateLLVMSharp.rsp\" --file-directory \"$(MSBuildProjectDirectory)/../../../LLVMSharp/sources\" --include-directory \"$(LLVMIncludePath)\" --libraryPath $(LibLLVMSharpName)"
19+
},
1620
"GenerateLocal": {
1721
"commandName": "Project",
1822
"commandLineArgs": "@generate.rsp",

0 commit comments

Comments
 (0)