Skip to content

Commit 2691ad1

Browse files
Merge pull request #236 from ds5678/libllvmsharp
LibLLVMSharp implementation
2 parents 5eb679d + 7cffcbc commit 2691ad1

29 files changed

+2475
-83
lines changed

CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
cmake_minimum_required(VERSION 3.13)
2+
3+
project(LLVMSharp VERSION 20.1.2)
4+
5+
set(CMAKE_CXX_STANDARD 17)
6+
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
7+
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
8+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
9+
10+
add_subdirectory(sources)

LLVMSharp.slnx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,28 @@
2525
<File Path="packages/libLLVM/libLLVM/LICENSE.TXT" />
2626
<File Path="packages/libLLVM/libLLVM/runtime.json" />
2727
</Folder>
28+
<Folder Name="/packages/libLLVMSharp/" />
29+
<Folder Name="/packages/libLLVMSharp/libLLVMSharp.runtime.linux-arm64/">
30+
<File Path="packages/libLLVMSharp/libLLVMSharp.runtime.linux-arm64/libLLVMSharp.runtime.linux-arm64.nuspec" />
31+
</Folder>
32+
<Folder Name="/packages/libLLVMSharp/libLLVMSharp.runtime.linux-x64/">
33+
<File Path="packages/libLLVMSharp/libLLVMSharp.runtime.linux-x64/libLLVMSharp.runtime.linux-x64.nuspec" />
34+
</Folder>
35+
<Folder Name="/packages/libLLVMSharp/libLLVMSharp.runtime.osx-arm64/">
36+
<File Path="packages/libLLVMSharp/libLLVMSharp.runtime.osx-arm64/libLLVMSharp.runtime.osx-arm64.nuspec" />
37+
</Folder>
38+
<Folder Name="/packages/libLLVMSharp/libLLVMSharp.runtime.win-arm64/">
39+
<File Path="packages/libLLVMSharp/libLLVMSharp.runtime.win-arm64/libLLVMSharp.runtime.win-arm64.nuspec" />
40+
</Folder>
41+
<Folder Name="/packages/libLLVMSharp/libLLVMSharp.runtime.win-x64/">
42+
<File Path="packages/libLLVMSharp/libLLVMSharp.runtime.win-x64/libLLVMSharp.runtime.win-x64.nuspec" />
43+
</Folder>
44+
<Folder Name="/packages/libLLVMSharp/libLLVMSharp/">
45+
<File Path="packages/libLLVMSharp/libLLVMSharp/libLLVMSharp.nuspec" />
46+
<File Path="packages/libLLVMSharp/libLLVMSharp/LICENSE.TXT" />
47+
<File Path="packages/libLLVMSharp/libLLVMSharp/NOTICE.txt" />
48+
<File Path="packages/libLLVMSharp/libLLVMSharp/runtime.json" />
49+
</Folder>
2850
<Folder Name="/scripts/">
2951
<File Path="scripts/build.ps1" />
3052
<File Path="scripts/build.sh" />
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
3+
<metadata minClientVersion="2.12">
4+
<id>libLLVMSharp.runtime.linux-arm64</id>
5+
<version>20.1.2</version>
6+
<authors>.NET Foundation and Contributors</authors>
7+
<owners>.NET Foundation and Contributors</owners>
8+
<requireLicenseAcceptance>true</requireLicenseAcceptance>
9+
<license type="expression">MIT</license>
10+
<projectUrl>https://github.com/dotnet/llvmsharp</projectUrl>
11+
<description>linux arm64 native library for libLLVMSharp.</description>
12+
<copyright>Copyright © .NET Foundation and Contributors</copyright>
13+
<repository type="git" url="https://github.com/dotnet/llvmsharp" branch="main" />
14+
</metadata>
15+
<files>
16+
<file src="..\..\..\LICENSE.md" target="LICENSE.md" />
17+
<file src="..\..\..\NOTICE.md" target="NOTICE.md" />
18+
<file src="libLLVMSharp.so" target="runtimes\linux-arm64\native\libLLVMSharp.so" />
19+
</files>
20+
</package>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
3+
<metadata minClientVersion="2.12">
4+
<id>libLLVMSharp.runtime.linux-x64</id>
5+
<version>20.1.2</version>
6+
<authors>.NET Foundation and Contributors</authors>
7+
<owners>.NET Foundation and Contributors</owners>
8+
<requireLicenseAcceptance>true</requireLicenseAcceptance>
9+
<license type="expression">MIT</license>
10+
<projectUrl>https://github.com/dotnet/llvmsharp</projectUrl>
11+
<description>linux x64 native library for libLLVMSharp.</description>
12+
<copyright>Copyright © .NET Foundation and Contributors</copyright>
13+
<repository type="git" url="https://github.com/dotnet/llvmsharp" branch="main" />
14+
</metadata>
15+
<files>
16+
<file src="..\..\..\LICENSE.md" target="LICENSE.md" />
17+
<file src="..\..\..\NOTICE.md" target="NOTICE.md" />
18+
<file src="libLLVMSharp.so" target="runtimes\linux-x64\native\libLLVMSharp.so" />
19+
</files>
20+
</package>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
3+
<metadata minClientVersion="2.12">
4+
<id>libLLVMSharp.runtime.osx-arm64</id>
5+
<version>20.1.2</version>
6+
<authors>.NET Foundation and Contributors</authors>
7+
<owners>.NET Foundation and Contributors</owners>
8+
<requireLicenseAcceptance>true</requireLicenseAcceptance>
9+
<license type="expression">MIT</license>
10+
<projectUrl>https://github.com/dotnet/llvmsharp</projectUrl>
11+
<description>osx arm64 native library for libLLVMSharp.</description>
12+
<copyright>Copyright © .NET Foundation and Contributors</copyright>
13+
<repository type="git" url="https://github.com/dotnet/llvmsharp" branch="main" />
14+
</metadata>
15+
<files>
16+
<file src="..\..\..\LICENSE.md" target="LICENSE.md" />
17+
<file src="..\..\..\NOTICE.md" target="NOTICE.md" />
18+
<file src="libLLVMSharp.dylib" target="runtimes\osx-arm64\native\libLLVMSharp.dylib" />
19+
</files>
20+
</package>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
3+
<metadata minClientVersion="2.12">
4+
<id>libLLVMSharp.runtime.win-arm64</id>
5+
<version>20.1.2</version>
6+
<authors>.NET Foundation and Contributors</authors>
7+
<owners>.NET Foundation and Contributors</owners>
8+
<requireLicenseAcceptance>true</requireLicenseAcceptance>
9+
<license type="expression">MIT</license>
10+
<projectUrl>https://github.com/dotnet/llvmsharp</projectUrl>
11+
<description>win arm64 native library for libLLVMSharp.</description>
12+
<copyright>Copyright © .NET Foundation and Contributors</copyright>
13+
<repository type="git" url="https://github.com/dotnet/llvmsharp" branch="main" />
14+
</metadata>
15+
<files>
16+
<file src="..\..\..\LICENSE.md" target="LICENSE.md" />
17+
<file src="..\..\..\NOTICE.md" target="NOTICE.md" />
18+
<file src="libLLVMSharp.dll" target="runtimes\win-arm64\native\libLLVMSharp.dll" />
19+
</files>
20+
</package>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
3+
<metadata minClientVersion="2.12">
4+
<id>libLLVMSharp.runtime.win-x64</id>
5+
<version>20.1.2</version>
6+
<authors>.NET Foundation and Contributors</authors>
7+
<owners>.NET Foundation and Contributors</owners>
8+
<requireLicenseAcceptance>true</requireLicenseAcceptance>
9+
<license type="expression">MIT</license>
10+
<projectUrl>https://github.com/dotnet/llvmsharp</projectUrl>
11+
<description>win x64 native library for libLLVMSharp.</description>
12+
<copyright>Copyright © .NET Foundation and Contributors</copyright>
13+
<repository type="git" url="https://github.com/dotnet/llvmsharp" branch="main" />
14+
</metadata>
15+
<files>
16+
<file src="..\..\..\LICENSE.md" target="LICENSE.md" />
17+
<file src="..\..\..\NOTICE.md" target="NOTICE.md" />
18+
<file src="libLLVMSharp.dll" target="runtimes\win-x64\native\libLLVMSharp.dll" />
19+
</files>
20+
</package>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
University of Illinois/NCSA Open Source License
2+
Copyright (c) .NET Foundation and Contributors
3+
All rights reserved.
4+
5+
Developed by: .NET Foundation and Contributors
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal with the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8+
9+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimers.
10+
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimers in the documentation and/or other materials provided with the distribution.
11+
Neither the names of Microsoft, nor the names of its contributors may be used to endorse or promote products derived from this Software without specific prior written permission.
12+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.

0 commit comments

Comments
 (0)