Skip to content

libLLVMSharp response files #608

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
<None Include="Properties/GenerateClangSharp-LICENSE.txt" CopyToOutputDirectory="PreserveNewest" />
<None Include="Properties/GenerateLLVM.rsp" />
<None Include="Properties/GenerateLLVM-LICENSE.txt" CopyToOutputDirectory="PreserveNewest" />
<None Include="Properties/GenerateLLVMSharp.rsp" />
<None Include="Properties/GenerateLLVMSharp-LICENSE.txt" CopyToOutputDirectory="PreserveNewest" />
<None Include="Properties/launchsettings.json" />
</ItemGroup>

Expand All @@ -31,6 +33,7 @@
<LibClangName Condition="'$(LibClangName)' == ''">libclang</LibClangName>
<LibClangSharpName Condition="'$(LibClangSharpName)' == ''">libClangSharp</LibClangSharpName>
<LibLLVMName Condition="'$(LibLLVMName)' == ''">libLLVM</LibLLVMName>
<LibLLVMSharpName Condition="'$(LibLLVMSharpName)' == ''">libLLVMSharp</LibLLVMSharpName>
</PropertyGroup>

<!-- Auto-detect LLVM... more or less -->
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// 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.
// Ported from https://github.com/dotnet/llvmsharp/blob/main/sources/libLLVMSharp
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
--additional
-m64
-std=c++17
--config
exclude-com-proxies
exclude-empty-records
exclude-enum-operators
generate-aggressive-inlining
generate-callconv-member-function
generate-cpp-attributes
generate-disable-runtime-marshalling
generate-file-scoped-namespaces
generate-guid-member
generate-macro-bindings
generate-marker-interfaces
generate-native-inheritance-attribute
generate-setslastsystemerror-attribute
generate-tests-nunit
generate-unmanaged-constants
generate-vtbl-index-attribute
log-potential-typedef-remappings
multi-file
preview-codegen
trimmable-vtbls
unix-types
--define-macro
_SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING
LLVMSharp_EXPORTS
--file
libLLVMSharp/LLVMSharp.h
--headerFile
./Properties/GenerateLLVMSharp-LICENSE.txt
--methodClassName
llvmsharp
--namespace
LLVMSharp.Interop
--output
./sources/LLVMSharp/Interop
--prefixStrip
llvmsharp_
--remap
MSGuidDeclParts=@Guid
--test-output
./tests/LLVMSharp.UnitTests/InteropTests
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
"commandName": "Project",
"commandLineArgs": "\"@$(MSBuildProjectDirectory)/Properties/GenerateLLVM.rsp\" --file-directory \"$(LLVMIncludePath)\" --include-directory \"$(LLVMIncludePath)\" --libraryPath $(LibLLVMName)"
},
"GenerateLLVMSharp": {
"commandName": "Project",
"commandLineArgs": "\"@$(MSBuildProjectDirectory)/Properties/GenerateLLVMSharp.rsp\" --file-directory \"$(MSBuildProjectDirectory)/../../../LLVMSharp/sources\" --include-directory \"$(LLVMIncludePath)\" --libraryPath $(LibLLVMSharpName)"
},
"GenerateLocal": {
"commandName": "Project",
"commandLineArgs": "@generate.rsp",
Expand Down