ANGLE, SwiftShader, and Vulkan Loader prebuilts (#746)
* This pipeline _will_ fail, but want to see how far it will get * Update build.sh * Remove workflow autogeneration, revert build script changes * Fix pipeline * Move temp folder * Recursive checkout * Recursive checkout except for one private Google submodule * Update SwiftShader.yml * Ensure we checkout a branch maybe? * Use checkout v2 * Install xcb * Sudo install xcb * Setup .NET 6 * Checkout with the right token * Don't do a parallelised run in CI - slaughters the runner * Update SwiftShader.yml * Add ANGLE * WHY * Make the damned thing executable * No idea why we need PHP for Apache installed to build ANGLE but why not * Run as sudo for good measure * Attempt to diagnose janky apt setup * Wtf is going on * Use -X theirs instead of -s theirs which doesn't exist * Ensure we're not affected by other [NUKE] changes harder * Update ANGLE binaries (#749) * New binaries for ANGLE on Darwin 20.6.0 Darwin Kernel Version 20.6.0: Wed Nov 10 22:23:07 PST 2021; root:xnu-7195.141.14~1/RELEASE_X86_64 * New binaries for ANGLE on Linux 5.11.0-1022-azure #23~20.04.1-Ubuntu SMP Fri Nov 19 10:20:52 UTC 2021 Co-authored-by: The Silk.NET Automaton <9011267+dotnet-bot@users.noreply.github.com> * You are the bane of my existence. * Allow overwrites * Add Vulkan loader * Add a workflow for Vulkan Loader * cont'd * I'm stupid * Install Wayland * Install X11 * Pull... fkn race conditions man! * Update gitignore for good measure * Install different packages? * Glob the correct files, stop wasting Actions minutes unnecessarily * Update Vulkan Loader binaries (#763) * New binaries for Vulkan Loader on Microsoft Windows 10.0.17763 * New binaries for Vulkan Loader on Microsoft Windows 10.0.17763 Co-authored-by: The Silk.NET Automaton <9011267+dotnet-bot@users.noreply.github.com> * No fail fast for SwiftShader * No fail fast for ANGLE * No fail fast for Vulkan Loader * Remove workflow file in push paths on Vulkan Loader * Remove workflow file in push paths on SwiftShader * Remove workflow file in push paths on ANGLE * New binaries for Vulkan Loader on Microsoft Windows 10.0.17763 (#764) Co-authored-by: The Silk.NET Automaton <9011267+dotnet-bot@users.noreply.github.com> * Update SwiftShader binaries (#747) * New binaries for SwiftShader on Windows * New binaries for SwiftShader on Microsoft Windows 10.0.17763 * New binaries for SwiftShader on Linux 5.11.0-1022-azure #23~20.04.1-Ubuntu SMP Fri Nov 19 10:20:52 UTC 2021 * New binaries for SwiftShader on Darwin 20.6.0 Darwin Kernel Version 20.6.0: Wed Nov 10 22:23:07 PST 2021; root:xnu-7195.141.14~1/RELEASE_X86_64 * New binaries for SwiftShader on Microsoft Windows 10.0.17763 * New binaries for SwiftShader on Linux 5.11.0-1022-azure #23~20.04.1-Ubuntu SMP Fri Nov 19 10:20:52 UTC 2021 * New binaries for SwiftShader on Darwin 20.6.0 Darwin Kernel Version 20.6.0: Wed Nov 10 22:23:07 PST 2021; root:xnu-7195.141.14~1/RELEASE_X86_64 * New binaries for SwiftShader on Microsoft Windows 10.0.17763 * New binaries for SwiftShader on Linux 5.11.0-1022-azure #23~20.04.1-Ubuntu SMP Fri Nov 19 10:20:52 UTC 2021 * New binaries for SwiftShader on Darwin 20.6.0 Darwin Kernel Version 20.6.0: Wed Nov 10 22:23:07 PST 2021; root:xnu-7195.141.14~1/RELEASE_X86_64 * New binaries for SwiftShader on Microsoft Windows 10.0.17763 * New binaries for SwiftShader on Linux 5.11.0-1022-azure #23~20.04.1-Ubuntu SMP Fri Nov 19 10:20:52 UTC 2021 Co-authored-by: The Silk.NET Automaton <9011267+dotnet-bot@users.noreply.github.com> Co-authored-by: Dylan Perks <dmp9biz@gmail.com> * Add packages for the new binaries * Adjust glob, let's figure out where it's actually putting these files... * Actually glob the right paths * cont'd * cont'd 2 * Update Vulkan Loader binaries (#765) * New binaries for Vulkan Loader on Microsoft Windows 10.0.17763 * New binaries for Vulkan Loader on Linux 5.11.0-1022-azure #23~20.04.1-Ubuntu SMP Fri Nov 19 10:20:52 UTC 2021 * New binaries for Vulkan Loader on Microsoft Windows 10.0.17763 * New binaries for Vulkan Loader on Darwin 20.6.0 Darwin Kernel Version 20.6.0: Wed Nov 10 22:23:07 PST 2021; root:xnu-7195.141.14~1/RELEASE_X86_64 Co-authored-by: The Silk.NET Automaton <9011267+dotnet-bot@users.noreply.github.com> * Update SwiftShader binaries (#766) * New binaries for SwiftShader on Microsoft Windows 10.0.17763 * New binaries for SwiftShader on Microsoft Windows 10.0.17763 * New binaries for SwiftShader on Microsoft Windows 10.0.17763 Co-authored-by: The Silk.NET Automaton <9011267+dotnet-bot@users.noreply.github.com> * Fix CI Build * Update Vulkan Loader binaries (#825) * New binaries for Vulkan Loader on Darwin 20.6.0 Darwin Kernel Version 20.6.0: Wed Jan 12 22:22:42 PST 2022; root:xnu-7195.141.19~2/RELEASE_X86_64 * New binaries for Vulkan Loader on Microsoft Windows 10.0.20348 Co-authored-by: The Silk.NET Automaton <9011267+dotnet-bot@users.noreply.github.com> * New binaries for ANGLE on Darwin 20.6.0 Darwin Kernel Version 20.6.0: Wed Jan 12 22:22:42 PST 2022; root:xnu-7195.141.19~2/RELEASE_X86_64 (#827) Co-authored-by: The Silk.NET Automaton <9011267+dotnet-bot@users.noreply.github.com> * Update SwiftShader binaries (#826) * New binaries for SwiftShader on Microsoft Windows 10.0.20348 * New binaries for SwiftShader on Darwin 20.6.0 Darwin Kernel Version 20.6.0: Wed Jan 12 22:22:42 PST 2022; root:xnu-7195.141.19~2/RELEASE_X86_64 Co-authored-by: The Silk.NET Automaton <9011267+dotnet-bot@users.noreply.github.com> Co-authored-by: Kai Jellinghaus <contact@kaij.tech> Co-authored-by: silkdotnet <85832961+silkdotnet@users.noreply.github.com> Co-authored-by: The Silk.NET Automaton <9011267+dotnet-bot@users.noreply.github.com>
This commit is contained in:
Родитель
073e45d090
Коммит
bdefe5503f
|
@ -0,0 +1,59 @@
|
|||
name: SwiftShader
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- build/submodules/SwiftShader
|
||||
- build/nuke/Build.Native.cs
|
||||
branches-ignore:
|
||||
- "ci/*"
|
||||
- "develop/*"
|
||||
- "main"
|
||||
jobs:
|
||||
Build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
env:
|
||||
- os: ubuntu-latest
|
||||
name: Linux
|
||||
nuke_invoke: ./build.sh
|
||||
extras: |
|
||||
sudo apt-get install -y libx11-xcb-dev
|
||||
- os: windows-latest
|
||||
name: Windows
|
||||
nuke_invoke: ./build.cmd
|
||||
extras: ""
|
||||
- os: macos-latest
|
||||
name: Darwin
|
||||
nuke_invoke: ./build.sh
|
||||
extras: ""
|
||||
name: ${{ matrix.env.name }} Build
|
||||
runs-on: ${{ matrix.env.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
token: ${{ secrets.PUSHABLE_GITHUB_TOKEN }}
|
||||
- name: Checkout submodules, configure git
|
||||
run: |
|
||||
git -c submodule.third_party/git-hooks.update=none submodule update --init --recursive
|
||||
git config --local user.email "9011267+dotnet-bot@users.noreply.github.com"
|
||||
git config --local user.name "The Silk.NET Automaton"
|
||||
- name: Extra prerequisites
|
||||
run: |
|
||||
echo running extras
|
||||
${{ matrix.env.extras }}
|
||||
- name: Cache .tmp, ~/.nuget/packages
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
.tmp
|
||||
~/.nuget/packages
|
||||
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
|
||||
- name: Setup .NET 6.0
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 6.0.100
|
||||
- name: Build SwiftShader
|
||||
run: ${{ matrix.env.nuke_invoke }} SwiftShader
|
||||
env:
|
||||
PUSHABLE_GITHUB_TOKEN: ${{ secrets.PUSHABLE_GITHUB_TOKEN }}
|
|
@ -0,0 +1,60 @@
|
|||
name: ANGLE
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- build/submodules/ANGLE
|
||||
- build/nuke/Build.Native.cs
|
||||
branches-ignore:
|
||||
- "ci/*"
|
||||
- "develop/*"
|
||||
- "main"
|
||||
jobs:
|
||||
Build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
env:
|
||||
- os: ubuntu-latest
|
||||
name: Linux
|
||||
nuke_invoke: ./build.sh
|
||||
extras: |
|
||||
sudo apt-get remove php7.4-common
|
||||
sudo apt-get install -y libx11-xcb-dev libapache2-mod-php7.4
|
||||
- os: windows-latest
|
||||
name: Windows
|
||||
nuke_invoke: ./build.cmd
|
||||
extras: ""
|
||||
- os: macos-latest
|
||||
name: Darwin
|
||||
nuke_invoke: ./build.sh
|
||||
extras: ""
|
||||
name: ${{ matrix.env.name }} Build
|
||||
runs-on: ${{ matrix.env.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
token: ${{ secrets.PUSHABLE_GITHUB_TOKEN }}
|
||||
- name: Checkout submodules, configure git
|
||||
run: |
|
||||
git -c submodule.third_party/git-hooks.update=none submodule update --init --recursive
|
||||
git config --local user.email "9011267+dotnet-bot@users.noreply.github.com"
|
||||
git config --local user.name "The Silk.NET Automaton"
|
||||
- name: Extra prerequisites
|
||||
run: |
|
||||
echo running extras
|
||||
${{ matrix.env.extras }}
|
||||
- name: Cache .tmp, ~/.nuget/packages
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
.tmp
|
||||
~/.nuget/packages
|
||||
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
|
||||
- name: Setup .NET 6.0
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 6.0.100
|
||||
- name: Build ANGLE
|
||||
run: ${{ matrix.env.nuke_invoke }} Angle
|
||||
env:
|
||||
PUSHABLE_GITHUB_TOKEN: ${{ secrets.PUSHABLE_GITHUB_TOKEN }}
|
|
@ -0,0 +1,59 @@
|
|||
name: Vulkan Loader
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- build/submodules/Vulkan-Loader
|
||||
- build/nuke/Build.Native.cs
|
||||
branches-ignore:
|
||||
- "ci/*"
|
||||
- "develop/*"
|
||||
- "main"
|
||||
jobs:
|
||||
Build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
env:
|
||||
- os: ubuntu-latest
|
||||
name: Linux
|
||||
nuke_invoke: ./build.sh
|
||||
extras: |
|
||||
sudo apt-get install -y build-essential libx11-xcb-dev libxkbcommon-dev libwayland-dev libxrandr-dev
|
||||
- os: windows-latest
|
||||
name: Windows
|
||||
nuke_invoke: ./build.cmd
|
||||
extras: ""
|
||||
- os: macos-latest
|
||||
name: Darwin
|
||||
nuke_invoke: ./build.sh
|
||||
extras: ""
|
||||
name: ${{ matrix.env.name }} Build
|
||||
runs-on: ${{ matrix.env.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
token: ${{ secrets.PUSHABLE_GITHUB_TOKEN }}
|
||||
- name: Checkout submodules, configure git
|
||||
run: |
|
||||
git -c submodule.third_party/git-hooks.update=none submodule update --init --recursive
|
||||
git config --local user.email "9011267+dotnet-bot@users.noreply.github.com"
|
||||
git config --local user.name "The Silk.NET Automaton"
|
||||
- name: Extra prerequisites
|
||||
run: |
|
||||
echo running extras
|
||||
${{ matrix.env.extras }}
|
||||
- name: Cache .tmp, ~/.nuget/packages
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
.tmp
|
||||
~/.nuget/packages
|
||||
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
|
||||
- name: Setup .NET 6.0
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 6.0.100
|
||||
- name: Build Vulkan Loader
|
||||
run: ${{ matrix.env.nuke_invoke }} VulkanLoader
|
||||
env:
|
||||
PUSHABLE_GITHUB_TOKEN: ${{ secrets.PUSHABLE_GITHUB_TOKEN }}
|
|
@ -4,6 +4,15 @@
|
|||
[submodule "build/submodules/Vulkan-Headers"]
|
||||
path = build/submodules/Vulkan-Headers
|
||||
url = https://github.com/KhronosGroup/Vulkan-Headers
|
||||
[submodule "build/submodules/SwiftShader"]
|
||||
path = build/submodules/SwiftShader
|
||||
url = https://github.com/google/swiftshader
|
||||
[submodule "build/submodules/ANGLE"]
|
||||
path = build/submodules/ANGLE
|
||||
url = https://chromium.googlesource.com/angle/angle
|
||||
[submodule "build/submodules/Vulkan-Loader"]
|
||||
path = build/submodules/Vulkan-Loader
|
||||
url = https://github.com/KhronosGroup/Vulkan-Loader
|
||||
[submodule "build/submodules/GLFW"]
|
||||
path = build/submodules/GLFW
|
||||
url = https://github.com/glfw/glfw.git
|
||||
|
|
1
.nuke
1
.nuke
|
@ -1 +0,0 @@
|
|||
Silk.NET.sln
|
|
@ -0,0 +1,185 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"title": "Build Schema",
|
||||
"$ref": "#/definitions/build",
|
||||
"definitions": {
|
||||
"build": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"Configuration": {
|
||||
"type": "string",
|
||||
"description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)"
|
||||
},
|
||||
"Continue": {
|
||||
"type": "boolean",
|
||||
"description": "Indicates to continue a previously failed build attempt"
|
||||
},
|
||||
"Help": {
|
||||
"type": "boolean",
|
||||
"description": "Shows the help text for this build assembly"
|
||||
},
|
||||
"Host": {
|
||||
"type": "string",
|
||||
"description": "Host for execution. Default is 'automatic'",
|
||||
"enum": [
|
||||
"AppVeyor",
|
||||
"AzurePipelines",
|
||||
"Bamboo",
|
||||
"Bitrise",
|
||||
"GitHubActions",
|
||||
"GitLab",
|
||||
"Jenkins",
|
||||
"Rider",
|
||||
"SpaceAutomation",
|
||||
"TeamCity",
|
||||
"Terminal",
|
||||
"TravisCI",
|
||||
"VisualStudio",
|
||||
"VSCode"
|
||||
]
|
||||
},
|
||||
"MsbuildProperties": {
|
||||
"type": "array",
|
||||
"description": "Extra properties passed to MSBuild commands",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"Native": {
|
||||
"type": "boolean",
|
||||
"description": "Build native code"
|
||||
},
|
||||
"NoLogo": {
|
||||
"type": "boolean",
|
||||
"description": "Disables displaying the NUKE logo"
|
||||
},
|
||||
"NugetApiKey": {
|
||||
"type": "string",
|
||||
"description": "The API key used to push packages and symbols packages to NuGet"
|
||||
},
|
||||
"NugetFeed": {
|
||||
"type": "string",
|
||||
"description": "NuGet feed"
|
||||
},
|
||||
"NugetNoServiceEndpoint": {
|
||||
"type": "boolean",
|
||||
"description": "NuGet -NoServiceEndpoint"
|
||||
},
|
||||
"NugetPassword": {
|
||||
"type": "string",
|
||||
"description": "NuGet password"
|
||||
},
|
||||
"NugetUsername": {
|
||||
"type": "string",
|
||||
"description": "NuGet username"
|
||||
},
|
||||
"OriginalSolution": {
|
||||
"type": "string",
|
||||
"description": "Path to a solution file that is automatically loaded"
|
||||
},
|
||||
"Partition": {
|
||||
"type": "string",
|
||||
"description": "Partition to use on CI"
|
||||
},
|
||||
"Plan": {
|
||||
"type": "boolean",
|
||||
"description": "Shows the execution plan (HTML)"
|
||||
},
|
||||
"Profile": {
|
||||
"type": "array",
|
||||
"description": "Defines the profiles to load",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"Projects": {
|
||||
"type": "array",
|
||||
"description": "If specified, generates a solution including only the specified projects or group of projects. You can provide individual project names or the name of the folder in which they're contained e.g. \"--projects opengl examples/csharp vulkan microsoft core.win32extras silk.net.opencl\". The Silk.NET prefix for individual projects is optional, but folder names will be preferred over project names so if you only want \"Silk.NET.Vulkan\" and not everything in \"src/Vulkan\", use \"--projects silk.net.vulkan\". The solution include project dependencies. The solution will be regenerated whenever you run a NUKE build with this specified, but if you don't want to run a build just use \"nuke sln --projects ...\" to run a dummy target",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"Root": {
|
||||
"type": "string",
|
||||
"description": "Root directory during build execution"
|
||||
},
|
||||
"SignPassword": {
|
||||
"type": "string",
|
||||
"description": "Code-signing service password"
|
||||
},
|
||||
"SignUsername": {
|
||||
"type": "string",
|
||||
"description": "Code-signing service username"
|
||||
},
|
||||
"Skip": {
|
||||
"type": "array",
|
||||
"description": "List of targets to be skipped. Empty list skips all dependencies",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"Angle",
|
||||
"BuildLibSilkDroid",
|
||||
"Clean",
|
||||
"Compile",
|
||||
"FullCompile",
|
||||
"FullPack",
|
||||
"FullPushToNuGet",
|
||||
"Pack",
|
||||
"Prerequisites",
|
||||
"PushToNuGet",
|
||||
"RegenerateBindings",
|
||||
"Restore",
|
||||
"SignPackages",
|
||||
"Sln",
|
||||
"SwiftShader",
|
||||
"Test",
|
||||
"ValidateSolution",
|
||||
"VulkanLoader"
|
||||
]
|
||||
}
|
||||
},
|
||||
"Sln": {
|
||||
"type": "boolean",
|
||||
"description": "If specified, when using the clean target removes the generated solution and stops"
|
||||
},
|
||||
"Target": {
|
||||
"type": "array",
|
||||
"description": "List of targets to be invoked. Default is '{default_target}'",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"Angle",
|
||||
"BuildLibSilkDroid",
|
||||
"Clean",
|
||||
"Compile",
|
||||
"FullCompile",
|
||||
"FullPack",
|
||||
"FullPushToNuGet",
|
||||
"Pack",
|
||||
"Prerequisites",
|
||||
"PushToNuGet",
|
||||
"RegenerateBindings",
|
||||
"Restore",
|
||||
"SignPackages",
|
||||
"Sln",
|
||||
"SwiftShader",
|
||||
"Test",
|
||||
"ValidateSolution",
|
||||
"VulkanLoader"
|
||||
]
|
||||
}
|
||||
},
|
||||
"Verbosity": {
|
||||
"type": "string",
|
||||
"description": "Logging verbosity during build execution. Default is 'Normal'",
|
||||
"enum": [
|
||||
"Minimal",
|
||||
"Normal",
|
||||
"Quiet",
|
||||
"Verbose"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"$schema": "./build.schema.json",
|
||||
"OriginalSolution": "Silk.NET.sln"
|
||||
}
|
44
Silk.NET.sln
44
Silk.NET.sln
|
@ -474,6 +474,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PrototypeStructChaining.Tes
|
|||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Vulkan.Tests", "src\Vulkan\Silk.NET.Vulkan.Tests\Silk.NET.Vulkan.Tests.csproj", "{225BA79C-36FE-421A-85E4-D15F8B61869B}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.OpenGLES.ANGLE.Native", "src\Native\Silk.NET.OpenGLES.ANGLE.Native\Silk.NET.OpenGLES.ANGLE.Native.csproj", "{8D02DFEB-121A-449B-BC39-09C3F9A88E07}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Vulkan.Loader.Native", "src\Native\Silk.NET.Vulkan.Loader.Native\Silk.NET.Vulkan.Loader.Native.csproj", "{36C38837-8250-42F9-ABDA-DEFC1AB129E1}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Vulkan.SwiftShader.Native", "src\Native\Silk.NET.Vulkan.SwiftShader.Native\Silk.NET.Vulkan.SwiftShader.Native.csproj", "{54F439B6-36E4-4FB0-8731-F73D42AD921F}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Vulkan.Extensions.SEC", "src\Vulkan\Extensions\Silk.NET.Vulkan.Extensions.SEC\Silk.NET.Vulkan.Extensions.SEC.csproj", "{2B4B5BF6-180E-4867-A4D1-664E522FC778}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Vulkan.Extensions.COREAVI", "src\Vulkan\Extensions\Silk.NET.Vulkan.Extensions.COREAVI\Silk.NET.Vulkan.Extensions.COREAVI.csproj", "{88142694-C095-4F56-B11D-9C8FC5EFC529}"
|
||||
|
@ -2855,6 +2860,42 @@ Global
|
|||
{225BA79C-36FE-421A-85E4-D15F8B61869B}.Release|x64.Build.0 = Release|Any CPU
|
||||
{225BA79C-36FE-421A-85E4-D15F8B61869B}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{225BA79C-36FE-421A-85E4-D15F8B61869B}.Release|x86.Build.0 = Release|Any CPU
|
||||
{8D02DFEB-121A-449B-BC39-09C3F9A88E07}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{8D02DFEB-121A-449B-BC39-09C3F9A88E07}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{8D02DFEB-121A-449B-BC39-09C3F9A88E07}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{8D02DFEB-121A-449B-BC39-09C3F9A88E07}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{8D02DFEB-121A-449B-BC39-09C3F9A88E07}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{8D02DFEB-121A-449B-BC39-09C3F9A88E07}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{8D02DFEB-121A-449B-BC39-09C3F9A88E07}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{8D02DFEB-121A-449B-BC39-09C3F9A88E07}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{8D02DFEB-121A-449B-BC39-09C3F9A88E07}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{8D02DFEB-121A-449B-BC39-09C3F9A88E07}.Release|x64.Build.0 = Release|Any CPU
|
||||
{8D02DFEB-121A-449B-BC39-09C3F9A88E07}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{8D02DFEB-121A-449B-BC39-09C3F9A88E07}.Release|x86.Build.0 = Release|Any CPU
|
||||
{36C38837-8250-42F9-ABDA-DEFC1AB129E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{36C38837-8250-42F9-ABDA-DEFC1AB129E1}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{36C38837-8250-42F9-ABDA-DEFC1AB129E1}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{36C38837-8250-42F9-ABDA-DEFC1AB129E1}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{36C38837-8250-42F9-ABDA-DEFC1AB129E1}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{36C38837-8250-42F9-ABDA-DEFC1AB129E1}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{36C38837-8250-42F9-ABDA-DEFC1AB129E1}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{36C38837-8250-42F9-ABDA-DEFC1AB129E1}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{36C38837-8250-42F9-ABDA-DEFC1AB129E1}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{36C38837-8250-42F9-ABDA-DEFC1AB129E1}.Release|x64.Build.0 = Release|Any CPU
|
||||
{36C38837-8250-42F9-ABDA-DEFC1AB129E1}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{36C38837-8250-42F9-ABDA-DEFC1AB129E1}.Release|x86.Build.0 = Release|Any CPU
|
||||
{54F439B6-36E4-4FB0-8731-F73D42AD921F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{54F439B6-36E4-4FB0-8731-F73D42AD921F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{54F439B6-36E4-4FB0-8731-F73D42AD921F}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{54F439B6-36E4-4FB0-8731-F73D42AD921F}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{54F439B6-36E4-4FB0-8731-F73D42AD921F}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{54F439B6-36E4-4FB0-8731-F73D42AD921F}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{54F439B6-36E4-4FB0-8731-F73D42AD921F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{54F439B6-36E4-4FB0-8731-F73D42AD921F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{54F439B6-36E4-4FB0-8731-F73D42AD921F}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{54F439B6-36E4-4FB0-8731-F73D42AD921F}.Release|x64.Build.0 = Release|Any CPU
|
||||
{54F439B6-36E4-4FB0-8731-F73D42AD921F}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{54F439B6-36E4-4FB0-8731-F73D42AD921F}.Release|x86.Build.0 = Release|Any CPU
|
||||
{2B4B5BF6-180E-4867-A4D1-664E522FC778}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{2B4B5BF6-180E-4867-A4D1-664E522FC778}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2B4B5BF6-180E-4867-A4D1-664E522FC778}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
|
@ -3132,6 +3173,9 @@ Global
|
|||
{EEFF37DA-E4F2-406E-AF97-8615BB7BC34C} = {B15922CB-815C-4038-B635-EE2D8A8F700B}
|
||||
{BD19250B-E143-4F4E-9E1D-18829CCB3642} = {B15922CB-815C-4038-B635-EE2D8A8F700B}
|
||||
{225BA79C-36FE-421A-85E4-D15F8B61869B} = {E2ABDF45-C329-47B2-8E09-B7298E2557F7}
|
||||
{8D02DFEB-121A-449B-BC39-09C3F9A88E07} = {72E7FA64-5B1E-477D-BD30-63B7F206B3C4}
|
||||
{36C38837-8250-42F9-ABDA-DEFC1AB129E1} = {72E7FA64-5B1E-477D-BD30-63B7F206B3C4}
|
||||
{54F439B6-36E4-4FB0-8731-F73D42AD921F} = {72E7FA64-5B1E-477D-BD30-63B7F206B3C4}
|
||||
{2B4B5BF6-180E-4867-A4D1-664E522FC778} = {49BC383A-D7E6-4013-93C7-371479B984CC}
|
||||
{88142694-C095-4F56-B11D-9C8FC5EFC529} = {49BC383A-D7E6-4013-93C7-371479B984CC}
|
||||
{2517B906-4B93-4B5F-8D18-AFB2BAB26121} = {39B598E9-44BA-4A61-A1BB-7C543734DBA6}
|
||||
|
|
2
build.sh
2
build.sh
|
@ -10,7 +10,7 @@ SCRIPT_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
|
|||
###########################################################################
|
||||
|
||||
BUILD_PROJECT_FILE="$SCRIPT_DIR/build/nuke/Silk.NET.NUKE.csproj"
|
||||
TEMP_DIRECTORY="$SCRIPT_DIR//.tmp"
|
||||
TEMP_DIRECTORY="$SCRIPT_DIR/.tmp"
|
||||
|
||||
DOTNET_GLOBAL_FILE="$SCRIPT_DIR//global.json"
|
||||
DOTNET_INSTALL_URL="https://dot.net/v1/dotnet-install.sh"
|
||||
|
|
|
@ -48,12 +48,12 @@ partial class Build
|
|||
|
||||
if (Native)
|
||||
{
|
||||
var silkDroid = SourceDirectory / "Windowing" / "SilkDroid";
|
||||
using var process = RuntimeInformation.IsOSPlatform(OSPlatform.Linux)
|
||||
? StartProcess("bash", "-c \"./gradlew clean\"", silkDroid)
|
||||
: StartProcess("cmd", "/c \".\\gradlew clean\"", silkDroid);
|
||||
process.AssertZeroExitCode();
|
||||
outputs = outputs.Concat(process.Output);
|
||||
outputs = outputs.Concat
|
||||
(
|
||||
StartShell($".{Path.PathSeparator}gradlew clean", SourceDirectory / "Windowing" / "SilkDroid")
|
||||
.AssertZeroExitCode()
|
||||
.Output
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -9,16 +9,25 @@ using System.Linq;
|
|||
using System.Runtime.InteropServices;
|
||||
using JetBrains.Annotations;
|
||||
using Nuke.Common;
|
||||
using Nuke.Common.CI.GitHubActions;
|
||||
using Nuke.Common.Git;
|
||||
using Nuke.Common.IO;
|
||||
using Nuke.Common.Tooling;
|
||||
using Nuke.Common.Tools.DotNet;
|
||||
using Nuke.Common.Tools.Git;
|
||||
using Octokit;
|
||||
using Octokit.Internal;
|
||||
using static Nuke.Common.IO.CompressionTasks;
|
||||
using static Nuke.Common.IO.FileSystemTasks;
|
||||
using static Nuke.Common.IO.HttpTasks;
|
||||
using static Nuke.Common.Tooling.ProcessTasks;
|
||||
using static Nuke.Common.Tools.DotNet.DotNetTasks;
|
||||
using static Nuke.Common.Tools.Git.GitTasks;
|
||||
using static Nuke.Common.Tools.GitHub.GitHubTasks;
|
||||
|
||||
partial class Build
|
||||
{
|
||||
[Parameter("Build native code")] readonly bool Native;
|
||||
[Nuke.Common.Parameter("Build native code")] readonly bool Native;
|
||||
|
||||
[CanBeNull] string AndroidHomeValue;
|
||||
|
||||
|
@ -73,9 +82,7 @@ partial class Build
|
|||
CopyDirectoryRecursively(from, to, DirectoryExistsPolicy.Merge, FileExistsPolicy.Overwrite);
|
||||
}
|
||||
|
||||
var envVars = Environment.GetEnvironmentVariables()
|
||||
.Cast<DictionaryEntry>()
|
||||
.ToDictionary(x => (string) x.Key, x => (string) x.Value);
|
||||
var envVars = CreateEnvVarDictionary();
|
||||
envVars["ANDROID_HOME"] = AndroidHome;
|
||||
|
||||
foreach (var ndk in Directory.GetDirectories((AbsolutePath) AndroidHome / "ndk")
|
||||
|
@ -84,9 +91,7 @@ partial class Build
|
|||
envVars["ANDROID_NDK_HOME"] = ndk;
|
||||
}
|
||||
|
||||
using var process = RuntimeInformation.IsOSPlatform(OSPlatform.Linux)
|
||||
? StartProcess("bash", "-c \"./gradlew build\"", silkDroid, envVars)
|
||||
: StartProcess("cmd", "/c \".\\gradlew build\"", silkDroid, envVars);
|
||||
using var process = StartShell($".{Path.PathSeparator}gradlew build", silkDroid, envVars);
|
||||
process.AssertZeroExitCode();
|
||||
var ret = process.Output;
|
||||
CopyFile
|
||||
|
@ -100,10 +105,181 @@ partial class Build
|
|||
)
|
||||
);
|
||||
|
||||
AbsolutePath SwiftShaderBuildPath => RootDirectory / "build" / "submodules" / "SwiftShader" / "build";
|
||||
|
||||
Target SwiftShader => CommonTarget
|
||||
(
|
||||
x => x.Before(Compile)
|
||||
.After(Clean)
|
||||
.Executes
|
||||
(
|
||||
() =>
|
||||
{
|
||||
var sysName = OperatingSystem.IsLinux() ? "Linux" :
|
||||
OperatingSystem.IsWindows() ? "Windows" :
|
||||
OperatingSystem.IsMacOS() ? "Darwin" : throw new PlatformNotSupportedException();
|
||||
DeleteDirectory(SwiftShaderBuildPath);
|
||||
Git("checkout HEAD build/", SwiftShaderBuildPath / "..");
|
||||
StartProcess("cmake", ".. -DCMAKE_BUILD_TYPE=Release", SwiftShaderBuildPath)
|
||||
.AssertZeroExitCode();
|
||||
var nonGitHubActionsArgs = string.IsNullOrWhiteSpace(GitHubActions.Instance.GitHubJob)
|
||||
? " --parallel"
|
||||
: string.Empty;
|
||||
StartProcess("cmake", $"--build .{nonGitHubActionsArgs} --config Release", SwiftShaderBuildPath)
|
||||
.AssertWaitForExit(); // might fail... as long as the output exists we're happy
|
||||
var fname = sysName switch
|
||||
{
|
||||
"Linux" => "libvk_swiftshader.so",
|
||||
"Windows" => "vk_swiftshader.dll",
|
||||
"Darwin" => "libvk_swiftshader.dylib",
|
||||
_ => throw new("what")
|
||||
};
|
||||
|
||||
var runtimes = RootDirectory / "src" / "Native" / "Silk.NET.Vulkan.SwiftShader.Native" / "runtimes";
|
||||
var outputPath = SwiftShaderBuildPath / sysName;
|
||||
const string icd = "vk_swiftshader_icd.json";
|
||||
if (OperatingSystem.IsWindows())
|
||||
{
|
||||
CopyFile
|
||||
(
|
||||
outputPath / fname, runtimes / "win-x64" / "native" / fname,
|
||||
FileExistsPolicy.Overwrite
|
||||
); // we'll use WOW64
|
||||
CopyFile
|
||||
(
|
||||
outputPath / fname, runtimes / "win-x86" / "native" / fname,
|
||||
FileExistsPolicy.Overwrite
|
||||
);
|
||||
CopyFile
|
||||
(
|
||||
outputPath / icd, runtimes / "win-x64" / "native" / icd,
|
||||
FileExistsPolicy.Overwrite
|
||||
);
|
||||
CopyFile
|
||||
(
|
||||
outputPath / icd, runtimes / "win-x86" / "native" / icd,
|
||||
FileExistsPolicy.Overwrite
|
||||
);
|
||||
}
|
||||
else if (OperatingSystem.IsLinux())
|
||||
{
|
||||
CopyFile
|
||||
(
|
||||
outputPath / fname, runtimes / "linux-x64" / "native" / fname,
|
||||
FileExistsPolicy.Overwrite
|
||||
);
|
||||
CopyFile
|
||||
(
|
||||
outputPath / icd, runtimes / "linux-x64" / "native" / icd,
|
||||
FileExistsPolicy.Overwrite
|
||||
);
|
||||
}
|
||||
else if (OperatingSystem.IsMacOS())
|
||||
{
|
||||
CopyFile
|
||||
(
|
||||
outputPath / fname, runtimes / "osx-x64" / "native" / fname,
|
||||
FileExistsPolicy.Overwrite
|
||||
);
|
||||
CopyFile
|
||||
(
|
||||
outputPath / icd, runtimes / "osx-x64" / "native" / icd,
|
||||
FileExistsPolicy.Overwrite
|
||||
);
|
||||
}
|
||||
|
||||
PrUpdatedNativeBinary("SwiftShader");
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
AbsolutePath AnglePath => RootDirectory / "build" / "submodules" / "ANGLE";
|
||||
|
||||
Target Angle => CommonTarget
|
||||
(
|
||||
x => x.Before(Compile)
|
||||
.After(Clean)
|
||||
.Executes
|
||||
(
|
||||
() =>
|
||||
{
|
||||
var @out = AnglePath / "out" / "Release";
|
||||
EnsureCleanDirectory(@out);
|
||||
var zip = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
|
||||
var unzip = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
|
||||
HttpDownloadFile("https://storage.googleapis.com/chrome-infra/depot_tools.zip", zip);
|
||||
UncompressZip(zip, unzip);
|
||||
if (OperatingSystem.IsLinux() || OperatingSystem.IsMacOS())
|
||||
{
|
||||
InheritedShell($"chmod -R 777 \"{unzip}\"");
|
||||
}
|
||||
|
||||
AddToPath(unzip);
|
||||
if (OperatingSystem.IsWindows())
|
||||
{
|
||||
Environment.SetEnvironmentVariable("DEPOT_TOOLS_WIN_TOOLCHAIN", "0");
|
||||
}
|
||||
|
||||
InheritedShell("python scripts/bootstrap.py", AnglePath).AssertZeroExitCode();
|
||||
InheritedShell("gclient sync", AnglePath).AssertZeroExitCode();
|
||||
if (OperatingSystem.IsLinux())
|
||||
{
|
||||
InheritedShell("sudo ./build/install-build-deps.sh", AnglePath).AssertZeroExitCode();
|
||||
}
|
||||
|
||||
var runtimes = RootDirectory / "src" / "Native" / "Silk.NET.OpenGLES.ANGLE.Native" / "runtimes";
|
||||
if (OperatingSystem.IsWindows())
|
||||
{
|
||||
InheritedShell
|
||||
(
|
||||
"gn gen out/Release " +
|
||||
"--args='is_component_build=false target_cpu=\"\"x86\"\" is_debug=false'",
|
||||
AnglePath
|
||||
)
|
||||
.AssertZeroExitCode();
|
||||
InheritedShell($"autoninja -C \"{@out}\"", AnglePath).AssertZeroExitCode();
|
||||
CopyAll
|
||||
(
|
||||
// libANGLE might not exist, this is fine
|
||||
@out.GlobFiles("libGLESv2.dll", "libEGL.dll", "libANGLE.dll"),
|
||||
runtimes / "win-x64" / "native"
|
||||
);
|
||||
CopyAll
|
||||
(
|
||||
@out.GlobFiles("libGLESv2.dll", "libEGL.dll", "libANGLE.dll"),
|
||||
runtimes / "win-x86" / "native"
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
InheritedShell
|
||||
(
|
||||
$"gn gen \"{@out}\" " +
|
||||
"--args=\"is_component_build=false is_debug=false\"",
|
||||
AnglePath
|
||||
)
|
||||
.AssertZeroExitCode();
|
||||
InheritedShell($"autoninja -C \"{@out}\"", AnglePath).AssertZeroExitCode();
|
||||
CopyAll
|
||||
(
|
||||
@out.GlobFiles
|
||||
(
|
||||
"libGLESv2.so", "libEGL.so", "libANGLE.so",
|
||||
"libGLESv2.dylib", "libEGL.dylib", "libANGLE.dylib"
|
||||
),
|
||||
runtimes / (OperatingSystem.IsMacOS() ? "osx-x64" : "linux-x64") / "native"
|
||||
);
|
||||
}
|
||||
|
||||
PrUpdatedNativeBinary("ANGLE");
|
||||
}
|
||||
)
|
||||
);
|
||||
AbsolutePath GLFWPath => RootDirectory / "build" / "submodules" / "GLFW";
|
||||
Target GLFW => CommonTarget
|
||||
(
|
||||
x => x.Before(Compile)
|
||||
.After(Clean)
|
||||
.Executes
|
||||
(
|
||||
() =>
|
||||
|
@ -159,4 +335,103 @@ partial class Build
|
|||
)
|
||||
);
|
||||
|
||||
AbsolutePath VulkanLoaderPath => RootDirectory / "build" / "submodules" / "Vulkan-Loader";
|
||||
Target VulkanLoader => CommonTarget
|
||||
(
|
||||
x => x.Before(Compile)
|
||||
.After(Clean)
|
||||
.Executes
|
||||
(
|
||||
() =>
|
||||
{
|
||||
var @out = VulkanLoaderPath / "build";
|
||||
EnsureCleanDirectory(@out);
|
||||
var abi = OperatingSystem.IsWindows() ? " -DCMAKE_GENERATOR_PLATFORM=Win32" : string.Empty;
|
||||
InheritedShell
|
||||
(
|
||||
$"cmake -S. -Bbuild -DUPDATE_DEPS=On -DCMAKE_BUILD_TYPE=Release{abi}",
|
||||
VulkanLoaderPath
|
||||
).AssertZeroExitCode();
|
||||
InheritedShell("cmake --build build --config Release", VulkanLoaderPath)
|
||||
.AssertZeroExitCode();
|
||||
var runtimes = RootDirectory / "src" / "Native" / "Silk.NET.Vulkan.Loader.Native" / "runtimes";
|
||||
if (OperatingSystem.IsWindows())
|
||||
{
|
||||
CopyAll(@out.GlobFiles("loader/Release/vulkan-1.dll"), runtimes / "win-x64" / "native");
|
||||
CopyAll(@out.GlobFiles("loader/Release/vulkan-1.dll"), runtimes / "win-x86" / "native");
|
||||
}
|
||||
else
|
||||
{
|
||||
CopyAll
|
||||
(
|
||||
@out.GlobFiles("loader/libvulkan.so", "loader/libvulkan.dylib"),
|
||||
runtimes / (OperatingSystem.IsMacOS() ? "osx-x64" : "linux-x64") / "native"
|
||||
);
|
||||
}
|
||||
|
||||
PrUpdatedNativeBinary("Vulkan Loader");
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
void PrUpdatedNativeBinary(string name)
|
||||
{
|
||||
var pushableToken = EnvironmentInfo.GetVariable<string>("PUSHABLE_GITHUB_TOKEN");
|
||||
var curBranch = GitCurrentBranch(RootDirectory);
|
||||
if (GitHubActions.Instance?.GitHubRepository == "dotnet/Silk.NET" &&
|
||||
!string.IsNullOrWhiteSpace(pushableToken) &&
|
||||
curBranch != "HEAD" &&
|
||||
!string.IsNullOrWhiteSpace(curBranch) &&
|
||||
!curBranch.StartsWith("ci/", StringComparison.OrdinalIgnoreCase) && // ignore other CI branches
|
||||
!curBranch.StartsWith("main", StringComparison.OrdinalIgnoreCase) && // submodule updates are done in PRs...
|
||||
!curBranch.StartsWith("develop/", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
// it's assumed that the pushable token was used to checkout the repo
|
||||
Git("fetch --all", RootDirectory);
|
||||
Git("pull");
|
||||
Git("add src/Native", RootDirectory);
|
||||
var newBranch = $"ci/{curBranch}/{name.ToLower().Replace(' ', '_')}_bins";
|
||||
var curCommit = GitCurrentCommit(RootDirectory);
|
||||
var commitCmd = InheritedShell
|
||||
(
|
||||
$"git commit -m \"New binaries for {name} on {RuntimeInformation.OSDescription}\""
|
||||
).AssertWaitForExit();
|
||||
if (!commitCmd.Output.Any(x => x.Text.Contains("nothing to commit", StringComparison.OrdinalIgnoreCase)))
|
||||
{
|
||||
commitCmd.AssertZeroExitCode();
|
||||
}
|
||||
|
||||
// ensure there are no other changes
|
||||
Git("checkout HEAD .nuke/", RootDirectory);
|
||||
Git("reset --hard", RootDirectory);
|
||||
if (GitCurrentCommit(RootDirectory) != curCommit) // might get "nothing to commit", you never know...
|
||||
{
|
||||
Logger.Info("Checking for existing branch...");
|
||||
var exists = StartProcess("git", $"checkout \"{newBranch}\"", RootDirectory)
|
||||
.AssertWaitForExit()
|
||||
.ExitCode == 0;
|
||||
if (!exists)
|
||||
{
|
||||
Logger.Info("None found, creating a new one...");
|
||||
Git($"checkout -b \"{newBranch}\"");
|
||||
}
|
||||
|
||||
Git($"merge -X theirs \"{curBranch}\" --allow-unrelated-histories");
|
||||
Git($"push --set-upstream origin \"{newBranch}\"");
|
||||
if (!exists)
|
||||
{
|
||||
var github = new GitHubClient
|
||||
(
|
||||
new ProductHeaderValue("Silk.NET-CI"),
|
||||
new InMemoryCredentialStore(new Credentials(pushableToken))
|
||||
);
|
||||
|
||||
var pr = github.PullRequest.Create
|
||||
("dotnet", "Silk.NET", new($"Update {name} binaries", newBranch, curBranch))
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -171,7 +171,7 @@ partial class Build
|
|||
commentText = commentText.Replace($"{{{key}}}", value);
|
||||
}
|
||||
|
||||
commentText = commentText.Replace("{actionsRun}", GitHubActions.Instance.GitHubRunNumber)
|
||||
commentText = commentText.Replace("{actionsRun}", GitHubActions.Instance.GitHubRunNumber.ToString())
|
||||
.Replace("{typeId}", type);
|
||||
|
||||
if (existingComment is not null)
|
||||
|
|
|
@ -8,11 +8,12 @@
|
|||
<NukeRootDirectory>..\..</NukeRootDirectory>
|
||||
<NukeScriptDirectory>..\..</NukeScriptDirectory>
|
||||
<LangVersion>preview</LangVersion>
|
||||
<NukeTelemetryVersion>1</NukeTelemetryVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Build.Locator" Version="1.4.1" />
|
||||
<PackageReference Include="Nuke.Common" Version="5.0.0" />
|
||||
<PackageReference Include="Nuke.Common" Version="5.3.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<!--suppress CheckTagEmptyBody -->
|
||||
<Project InitialTargets="SilkAddIcon;SilkGenerateNuGetReadme;SilkCreatePublicApi">
|
||||
<Project InitialTargets="SilkAddIcon;SilkGenerateNuGetReadme;SilkAddDateTime;SilkCreatePublicApi">
|
||||
<!-- Presets for metapackages and native packages -->
|
||||
<PropertyGroup Condition="'$(SilkMetapackage)' == 'true' or '$(SilkNativePackage)' == 'true'">
|
||||
<IncludeBuildOutput>false</IncludeBuildOutput>
|
||||
|
@ -34,6 +34,23 @@
|
|||
Silk.NET is a high-speed, advanced library, providing bindings to popular low-level APIs such as OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, Vulkan, Assimp, and DirectX.
|
||||
</Description>
|
||||
</PropertyGroup>
|
||||
<!-- Date/time based versioning (mainly used by natives) -->
|
||||
<Target Name="SilkAddDateTime" Condition="'$(SilkGitDirForVersion)' != ''">
|
||||
<PropertyGroup Condition="'$(OS)' == 'Windows_NT'">
|
||||
<SilkGitDateTimeFormat>%25%25cI</SilkGitDateTimeFormat>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(OS)' != 'Windows_NT'">
|
||||
<SilkGitDateTimeFormat>%25cI</SilkGitDateTimeFormat>
|
||||
</PropertyGroup>
|
||||
<Exec ConsoleToMSBuild="True"
|
||||
Command="git show -s "--format=$(SilkGitDateTimeFormat)""
|
||||
WorkingDirectory="$(SilkGitDirForVersion)">
|
||||
<Output TaskParameter="ConsoleOutput" PropertyName="_SilkGitIdt" />
|
||||
</Exec>
|
||||
<PropertyGroup>
|
||||
<PackageVersion>$([System.DateTime]::Parse($(_SilkGitIdt)).ToUniversalTime().ToString(yyyy.MM.dd))</PackageVersion>
|
||||
</PropertyGroup>
|
||||
</Target>
|
||||
<!-- SourceLink -->
|
||||
<PropertyGroup Condition="'$(SilkSourceLinkExempt)' == ''">
|
||||
<DebugType>portable</DebugType>
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit cfc4db34643f0dbc7dba2ac6c8b9d239b4dedc4e
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 433b1bf9bff2cb385f9cdfcb9be1d7f5489f357f
|
|
@ -0,0 +1 @@
|
|||
Subproject commit c6c0a2c3fdb3f108937d9cba0e2c8b91e7e1ffb8
|
|
@ -1,4 +1,7 @@
|
|||
bin/
|
||||
obj/
|
||||
!*.dll
|
||||
!*.dylib
|
||||
!*.so
|
||||
!*.so.*
|
||||
*.nupkg
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<Project>
|
||||
<PropertyGroup>
|
||||
<SilkNativePackage>true</SilkNativePackage>
|
||||
</PropertyGroup>
|
||||
</Project>
|
|
@ -0,0 +1,30 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<SilkSourceLinkExempt>true</SilkSourceLinkExempt>
|
||||
<SilkGitDirForVersion>$(MSBuildThisFileDirectory)..\..\..\build\submodules\ANGLE</SilkGitDirForVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="..\..\..\build\props\common.props" />
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard2.0;net4.6.1</TargetFrameworks>
|
||||
<Authors>.NET Foundation and Contributors</Authors>
|
||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||
<PackageLicenseExpression>BSD-3-Clause</PackageLicenseExpression>
|
||||
<PackageProjectUrl>https://github.com/dotnet/Silk.NET</PackageProjectUrl>
|
||||
<Description>Multi-platform native library for ANGLE.</Description>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<RepositoryUrl>https://chromium.googlesource.com/angle/angle/</RepositoryUrl>
|
||||
<IncludeBuildOutput>false</IncludeBuildOutput>
|
||||
<IncludeContentInPack>true</IncludeContentInPack>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="build\net461\$(PackageId).props" PackagePath="build\net461\$(PackageId).props" />
|
||||
<Content Include="runtimes\linux-x64\native\libGLESv2.so" PackagePath="runtimes\linux-x64\native\libGLESv2.so" />
|
||||
<Content Include="runtimes\osx-x64\native\libGLESv2.dylib" PackagePath="runtimes\osx-x64\native\libGLESv2.dylib" />
|
||||
<Content Include="runtimes\win-x64\native\libGLESv2.dll" PackagePath="runtimes\win-x64\native\libGLESv2.dll" />
|
||||
<Content Include="runtimes\win-x86\native\libGLESv2.dll" PackagePath="runtimes\win-x86\native\libGLESv2.dll" />
|
||||
<Content Include="runtimes\linux-x64\native\libEGL.so" PackagePath="runtimes\linux-x64\native\libEGL.so" />
|
||||
<Content Include="runtimes\osx-x64\native\libEGL.dylib" PackagePath="runtimes\osx-x64\native\libEGL.dylib" />
|
||||
<Content Include="runtimes\win-x64\native\libEGL.dll" PackagePath="runtimes\win-x64\native\libEGL.dll" />
|
||||
<Content Include="runtimes\win-x86\native\libEGL.dll" PackagePath="runtimes\win-x86\native\libEGL.dll" />
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -0,0 +1,34 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<_Silk_NET_OpenGLES_ANGLE_Native_IsWindows Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">true</_Silk_NET_OpenGLES_ANGLE_Native_IsWindows>
|
||||
<_Silk_NET_OpenGLES_ANGLE_Native_IsMacOS Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">true</_Silk_NET_OpenGLES_ANGLE_Native_IsMacOS>
|
||||
<_Silk_NET_OpenGLES_ANGLE_Native_IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</_Silk_NET_OpenGLES_ANGLE_Native_IsLinux>
|
||||
|
||||
<_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime Condition=" '$(_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime)' == '' And '$(_Silk_NET_OpenGLES_ANGLE_Native_IsMacOS)' == 'true' And ('$(Prefer32Bit)' == 'false' Or '$(PlatformTarget)' == 'x64')">osx-x64</_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime>
|
||||
<_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime Condition=" '$(_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime)' == '' And '$(_Silk_NET_OpenGLES_ANGLE_Native_IsLinux)' == 'true' And ('$(Prefer32Bit)' == 'false' Or '$(PlatformTarget)' == 'x64')">linux-x64</_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime>
|
||||
<_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime Condition=" '$(_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime)' == '' And '$(_Silk_NET_OpenGLES_ANGLE_Native_IsWindows)' == 'true' And ('$(Prefer32Bit)' == 'true' Or '$(PlatformTarget)' == 'x86')">win-x86</_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime>
|
||||
<_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime Condition=" '$(_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime)' == '' And '$(_Silk_NET_OpenGLES_ANGLE_Native_IsWindows)' == 'true' And ('$(Prefer32Bit)' == 'false' Or '$(PlatformTarget)' == 'x64')">win-x64</_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime>
|
||||
|
||||
<_Silk_NET_OpenGLES_ANGLE_EGL_Native_NativeLibName Condition="'$(_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime)' == 'win-x86'">libEGL.dll</_Silk_NET_OpenGLES_ANGLE_EGL_Native_NativeLibName>
|
||||
<_Silk_NET_OpenGLES_ANGLE_EGL_Native_NativeLibName Condition="'$(_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime)' == 'win-x64'">libEGL.dll</_Silk_NET_OpenGLES_ANGLE_EGL_Native_NativeLibName>
|
||||
<_Silk_NET_OpenGLES_ANGLE_EGL_Native_NativeLibName Condition="'$(_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime)' == 'osx-x64'">libEGL.dylib</_Silk_NET_OpenGLES_ANGLE_EGL_Native_NativeLibName>
|
||||
<_Silk_NET_OpenGLES_ANGLE_EGL_Native_NativeLibName Condition="'$(_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime)' == 'linux-x64'">libEGL.so</_Silk_NET_OpenGLES_ANGLE_EGL_Native_NativeLibName>
|
||||
<_Silk_NET_OpenGLES_ANGLE_GLES_Native_NativeLibName Condition="'$(_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime)' == 'win-x86'">libGLESv2.dll</_Silk_NET_OpenGLES_ANGLE_GLES_Native_NativeLibName>
|
||||
<_Silk_NET_OpenGLES_ANGLE_GLES_Native_NativeLibName Condition="'$(_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime)' == 'win-x64'">libGLESv2.dll</_Silk_NET_OpenGLES_ANGLE_GLES_Native_NativeLibName>
|
||||
<_Silk_NET_OpenGLES_ANGLE_GLES_Native_NativeLibName Condition="'$(_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime)' == 'osx-x64'">libGLESv2.dylib</_Silk_NET_OpenGLES_ANGLE_GLES_Native_NativeLibName>
|
||||
<_Silk_NET_OpenGLES_ANGLE_GLES_Native_NativeLibName Condition="'$(_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime)' == 'linux-x64'">libGLESv2.so</_Silk_NET_OpenGLES_ANGLE_GLES_Native_NativeLibName>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Content Condition="'$(_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime)' != ''" Include="$(MSBuildThisFileDirectory)..\..\runtimes\$(_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime)\native\$(_Silk_NET_OpenGLES_ANGLE_GLES_Native_NativeLibName)">
|
||||
<Link>%(Filename)%(Extension)</Link>
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
<Visible>False</Visible>
|
||||
</Content>
|
||||
<Content Condition="'$(_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime)' != ''" Include="$(MSBuildThisFileDirectory)..\..\runtimes\$(_Silk_NET_OpenGLES_ANGLE_Native_NativeRuntime)\native\$(_Silk_NET_OpenGLES_ANGLE_EGL_Native_NativeLibName)">
|
||||
<Link>%(Filename)%(Extension)</Link>
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
<Visible>False</Visible>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
</Project>
|
Двоичные данные
src/Native/Silk.NET.OpenGLES.ANGLE.Native/runtimes/linux-x64/native/libEGL.so
Executable file
Двоичные данные
src/Native/Silk.NET.OpenGLES.ANGLE.Native/runtimes/linux-x64/native/libEGL.so
Executable file
Двоичный файл не отображается.
Двоичные данные
src/Native/Silk.NET.OpenGLES.ANGLE.Native/runtimes/linux-x64/native/libGLESv2.so
Executable file
Двоичные данные
src/Native/Silk.NET.OpenGLES.ANGLE.Native/runtimes/linux-x64/native/libGLESv2.so
Executable file
Двоичный файл не отображается.
Двоичные данные
src/Native/Silk.NET.OpenGLES.ANGLE.Native/runtimes/osx-x64/native/libEGL.dylib
Executable file
Двоичные данные
src/Native/Silk.NET.OpenGLES.ANGLE.Native/runtimes/osx-x64/native/libEGL.dylib
Executable file
Двоичный файл не отображается.
Двоичные данные
src/Native/Silk.NET.OpenGLES.ANGLE.Native/runtimes/osx-x64/native/libGLESv2.dylib
Executable file
Двоичные данные
src/Native/Silk.NET.OpenGLES.ANGLE.Native/runtimes/osx-x64/native/libGLESv2.dylib
Executable file
Двоичный файл не отображается.
Двоичные данные
src/Native/Silk.NET.OpenGLES.ANGLE.Native/runtimes/win-x64/native/libEGL.dll
Normal file
Двоичные данные
src/Native/Silk.NET.OpenGLES.ANGLE.Native/runtimes/win-x64/native/libEGL.dll
Normal file
Двоичный файл не отображается.
Двоичные данные
src/Native/Silk.NET.OpenGLES.ANGLE.Native/runtimes/win-x64/native/libGLESv2.dll
Normal file
Двоичные данные
src/Native/Silk.NET.OpenGLES.ANGLE.Native/runtimes/win-x64/native/libGLESv2.dll
Normal file
Двоичный файл не отображается.
Двоичные данные
src/Native/Silk.NET.OpenGLES.ANGLE.Native/runtimes/win-x86/native/libEGL.dll
Normal file
Двоичные данные
src/Native/Silk.NET.OpenGLES.ANGLE.Native/runtimes/win-x86/native/libEGL.dll
Normal file
Двоичный файл не отображается.
Двоичные данные
src/Native/Silk.NET.OpenGLES.ANGLE.Native/runtimes/win-x86/native/libGLESv2.dll
Normal file
Двоичные данные
src/Native/Silk.NET.OpenGLES.ANGLE.Native/runtimes/win-x86/native/libGLESv2.dll
Normal file
Двоичный файл не отображается.
|
@ -0,0 +1,26 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<SilkSourceLinkExempt>true</SilkSourceLinkExempt>
|
||||
<SilkGitDirForVersion>$(MSBuildThisFileDirectory)..\..\..\build\submodules\Vulkan-Loader</SilkGitDirForVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="..\..\..\build\props\common.props" />
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard2.0;net4.6.1</TargetFrameworks>
|
||||
<Authors>.NET Foundation and Contributors</Authors>
|
||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
|
||||
<PackageProjectUrl>https://github.com/dotnet/Silk.NET</PackageProjectUrl>
|
||||
<Description>Multi-platform native library for Vulkan Loader.</Description>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<RepositoryUrl>https://github.com/KhronosGroup/Vulkan-Loader</RepositoryUrl>
|
||||
<IncludeBuildOutput>false</IncludeBuildOutput>
|
||||
<IncludeContentInPack>true</IncludeContentInPack>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="build\net461\$(PackageId).props" PackagePath="build\net461\$(PackageId).props" />
|
||||
<Content Include="runtimes\linux-x64\native\libvulkan.so" PackagePath="runtimes\linux-x64\native\libvulkan.so" />
|
||||
<Content Include="runtimes\osx-x64\native\libvulkan.dylib" PackagePath="runtimes\osx-x64\native\libvulkan.dylib" />
|
||||
<Content Include="runtimes\win-x64\native\vulkan-1.dll" PackagePath="runtimes\win-x64\native\vulkan-1.dll" />
|
||||
<Content Include="runtimes\win-x86\native\vulkan-1.dll" PackagePath="runtimes\win-x86\native\vulkan-1.dll" />
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<_Silk_NET_Vulkan_Loader_Native_IsWindows Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">true</_Silk_NET_Vulkan_Loader_Native_IsWindows>
|
||||
<_Silk_NET_Vulkan_Loader_Native_IsMacOS Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">true</_Silk_NET_Vulkan_Loader_Native_IsMacOS>
|
||||
<_Silk_NET_Vulkan_Loader_Native_IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</_Silk_NET_Vulkan_Loader_Native_IsLinux>
|
||||
|
||||
<_Silk_NET_Vulkan_Loader_Native_NativeRuntime Condition=" '$(_Silk_NET_Vulkan_Loader_Native_NativeRuntime)' == '' And '$(_Silk_NET_Vulkan_Loader_Native_IsMacOS)' == 'true' And ('$(Prefer32Bit)' == 'false' Or '$(PlatformTarget)' == 'x64')">osx-x64</_Silk_NET_Vulkan_Loader_Native_NativeRuntime>
|
||||
<_Silk_NET_Vulkan_Loader_Native_NativeRuntime Condition=" '$(_Silk_NET_Vulkan_Loader_Native_NativeRuntime)' == '' And '$(_Silk_NET_Vulkan_Loader_Native_IsLinux)' == 'true' And ('$(Prefer32Bit)' == 'false' Or '$(PlatformTarget)' == 'x64')">linux-x64</_Silk_NET_Vulkan_Loader_Native_NativeRuntime>
|
||||
<_Silk_NET_Vulkan_Loader_Native_NativeRuntime Condition=" '$(_Silk_NET_Vulkan_Loader_Native_NativeRuntime)' == '' And '$(_Silk_NET_Vulkan_Loader_Native_IsWindows)' == 'true' And ('$(Prefer32Bit)' == 'true' Or '$(PlatformTarget)' == 'x86')">win-x86</_Silk_NET_Vulkan_Loader_Native_NativeRuntime>
|
||||
<_Silk_NET_Vulkan_Loader_Native_NativeRuntime Condition=" '$(_Silk_NET_Vulkan_Loader_Native_NativeRuntime)' == '' And '$(_Silk_NET_Vulkan_Loader_Native_IsWindows)' == 'true' And ('$(Prefer32Bit)' == 'false' Or '$(PlatformTarget)' == 'x64')">win-x64</_Silk_NET_Vulkan_Loader_Native_NativeRuntime>
|
||||
|
||||
<_Silk_NET_Vulkan_Loader_Native_NativeLibName Condition="'$(_Silk_NET_Vulkan_Loader_Native_NativeRuntime)' == 'win-x86'">vulkan-1.dll</_Silk_NET_Vulkan_Loader_Native_NativeLibName>
|
||||
<_Silk_NET_Vulkan_Loader_Native_NativeLibName Condition="'$(_Silk_NET_Vulkan_Loader_Native_NativeRuntime)' == 'win-x64'">vulkan-1.dll</_Silk_NET_Vulkan_Loader_Native_NativeLibName>
|
||||
<_Silk_NET_Vulkan_Loader_Native_NativeLibName Condition="'$(_Silk_NET_Vulkan_Loader_Native_NativeRuntime)' == 'osx-x64'">libvulkan.dylib</_Silk_NET_Vulkan_Loader_Native_NativeLibName>
|
||||
<_Silk_NET_Vulkan_Loader_Native_NativeLibName Condition="'$(_Silk_NET_Vulkan_Loader_Native_NativeRuntime)' == 'linux-x64'">libvulkan.so</_Silk_NET_Vulkan_Loader_Native_NativeLibName>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Content Condition="'$(_Silk_NET_Vulkan_Loader_Native_NativeRuntime)' != ''" Include="$(MSBuildThisFileDirectory)..\..\runtimes\$(_Silk_NET_Vulkan_Loader_Native_NativeRuntime)\native\$(_Silk_NET_Vulkan_Loader_Native_NativeLibName)">
|
||||
<Link>%(Filename)%(Extension)</Link>
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
<Visible>False</Visible>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
</Project>
|
Двоичные данные
src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/linux-x64/native/libvulkan.so
Executable file
Двоичные данные
src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/linux-x64/native/libvulkan.so
Executable file
Двоичный файл не отображается.
Двоичные данные
src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/osx-x64/native/libvulkan.dylib
Executable file
Двоичные данные
src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/osx-x64/native/libvulkan.dylib
Executable file
Двоичный файл не отображается.
Двоичные данные
src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/win-x64/native/vulkan-1.dll
Normal file
Двоичные данные
src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/win-x64/native/vulkan-1.dll
Normal file
Двоичный файл не отображается.
Двоичные данные
src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/win-x86/native/vulkan-1.dll
Normal file
Двоичные данные
src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/win-x86/native/vulkan-1.dll
Normal file
Двоичный файл не отображается.
|
@ -0,0 +1,30 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<SilkSourceLinkExempt>true</SilkSourceLinkExempt>
|
||||
<SilkGitDirForVersion>$(MSBuildThisFileDirectory)..\..\..\build\submodules\SwiftShader</SilkGitDirForVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="..\..\..\build\props\common.props" />
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard2.0;net4.6.1</TargetFrameworks>
|
||||
<Authors>.NET Foundation and Contributors</Authors>
|
||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
|
||||
<PackageProjectUrl>https://github.com/dotnet/Silk.NET</PackageProjectUrl>
|
||||
<Description>Multi-platform native library for SwiftShader.</Description>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<RepositoryUrl>https://swiftshader.googlesource.com/SwiftShader/</RepositoryUrl>
|
||||
<IncludeBuildOutput>false</IncludeBuildOutput>
|
||||
<IncludeContentInPack>true</IncludeContentInPack>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="build\net461\$(PackageId).props" PackagePath="build\net461\$(PackageId).props" />
|
||||
<Content Include="runtimes\linux-x64\native\libvk_swiftshader.so" PackagePath="runtimes\linux-x64\native\libvk_swiftshader.so" />
|
||||
<Content Include="runtimes\osx-x64\native\libvk_swiftshader.dylib" PackagePath="runtimes\osx-x64\native\libvk_swiftshader.dylib" />
|
||||
<Content Include="runtimes\win-x64\native\vk_swiftshader.dll" PackagePath="runtimes\win-x64\native\vk_swiftshader.dll" />
|
||||
<Content Include="runtimes\win-x86\native\vk_swiftshader.dll" PackagePath="runtimes\win-x86\native\vk_swiftshader.dll" />
|
||||
<Content Include="runtimes\linux-x64\native\vk_swiftshader_icd.json" PackagePath="runtimes\linux-x64\native\vk_swiftshader_icd.json" />
|
||||
<Content Include="runtimes\osx-x64\native\vk_swiftshader_icd.json" PackagePath="runtimes\osx-x64\native\vk_swiftshader_icd.json" />
|
||||
<Content Include="runtimes\win-x64\native\vk_swiftshader_icd.json" PackagePath="runtimes\win-x64\native\vk_swiftshader_icd.json" />
|
||||
<Content Include="runtimes\win-x86\native\vk_swiftshader_icd.json" PackagePath="runtimes\win-x86\native\vk_swiftshader_icd.json" />
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<_Silk_NET_Vulkan_SwiftShader_Native_IsWindows Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">true</_Silk_NET_Vulkan_SwiftShader_Native_IsWindows>
|
||||
<_Silk_NET_Vulkan_SwiftShader_Native_IsMacOS Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">true</_Silk_NET_Vulkan_SwiftShader_Native_IsMacOS>
|
||||
<_Silk_NET_Vulkan_SwiftShader_Native_IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</_Silk_NET_Vulkan_SwiftShader_Native_IsLinux>
|
||||
|
||||
<_Silk_NET_Vulkan_SwiftShader_Native_NativeRuntime Condition=" '$(_Silk_NET_Vulkan_SwiftShader_Native_NativeRuntime)' == '' And '$(_Silk_NET_Vulkan_SwiftShader_Native_IsMacOS)' == 'true' And ('$(Prefer32Bit)' == 'false' Or '$(PlatformTarget)' == 'x64')">osx-x64</_Silk_NET_Vulkan_SwiftShader_Native_NativeRuntime>
|
||||
<_Silk_NET_Vulkan_SwiftShader_Native_NativeRuntime Condition=" '$(_Silk_NET_Vulkan_SwiftShader_Native_NativeRuntime)' == '' And '$(_Silk_NET_Vulkan_SwiftShader_Native_IsLinux)' == 'true' And ('$(Prefer32Bit)' == 'false' Or '$(PlatformTarget)' == 'x64')">linux-x64</_Silk_NET_Vulkan_SwiftShader_Native_NativeRuntime>
|
||||
<_Silk_NET_Vulkan_SwiftShader_Native_NativeRuntime Condition=" '$(_Silk_NET_Vulkan_SwiftShader_Native_NativeRuntime)' == '' And '$(_Silk_NET_Vulkan_SwiftShader_Native_IsWindows)' == 'true' And ('$(Prefer32Bit)' == 'true' Or '$(PlatformTarget)' == 'x86')">win-x86</_Silk_NET_Vulkan_SwiftShader_Native_NativeRuntime>
|
||||
<_Silk_NET_Vulkan_SwiftShader_Native_NativeRuntime Condition=" '$(_Silk_NET_Vulkan_SwiftShader_Native_NativeRuntime)' == '' And '$(_Silk_NET_Vulkan_SwiftShader_Native_IsWindows)' == 'true' And ('$(Prefer32Bit)' == 'false' Or '$(PlatformTarget)' == 'x64')">win-x64</_Silk_NET_Vulkan_SwiftShader_Native_NativeRuntime>
|
||||
|
||||
<_Silk_NET_Vulkan_SwiftShader_Native_NativeLibName Condition="'$(_Silk_NET_Vulkan_SwiftShader_Native_NativeRuntime)' == 'win-x86'">vk_swiftshader.dll</_Silk_NET_Vulkan_SwiftShader_Native_NativeLibName>
|
||||
<_Silk_NET_Vulkan_SwiftShader_Native_NativeLibName Condition="'$(_Silk_NET_Vulkan_SwiftShader_Native_NativeRuntime)' == 'win-x64'">vk_swiftshader.dll</_Silk_NET_Vulkan_SwiftShader_Native_NativeLibName>
|
||||
<_Silk_NET_Vulkan_SwiftShader_Native_NativeLibName Condition="'$(_Silk_NET_Vulkan_SwiftShader_Native_NativeRuntime)' == 'osx-x64'">libvk_swiftshader.dylib</_Silk_NET_Vulkan_SwiftShader_Native_NativeLibName>
|
||||
<_Silk_NET_Vulkan_SwiftShader_Native_NativeLibName Condition="'$(_Silk_NET_Vulkan_SwiftShader_Native_NativeRuntime)' == 'linux-x64'">libvk_swiftshader.so</_Silk_NET_Vulkan_SwiftShader_Native_NativeLibName>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Content Condition="'$(_Silk_NET_Vulkan_SwiftShader_Native_NativeRuntime)' != ''" Include="$(MSBuildThisFileDirectory)..\..\runtimes\$(_Silk_NET_Vulkan_SwiftShader_Native_NativeRuntime)\native\$(_Silk_NET_Vulkan_SwiftShader_Native_NativeLibName)">
|
||||
<Link>%(Filename)%(Extension)</Link>
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
<Visible>False</Visible>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
</Project>
|
Двоичные данные
src/Native/Silk.NET.Vulkan.SwiftShader.Native/runtimes/linux-x64/native/libvk_swiftshader.so
Executable file
Двоичные данные
src/Native/Silk.NET.Vulkan.SwiftShader.Native/runtimes/linux-x64/native/libvk_swiftshader.so
Executable file
Двоичный файл не отображается.
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"file_format_version": "1.0.0",
|
||||
"ICD": {
|
||||
"library_path": "./libvk_swiftshader.so",
|
||||
"api_version": "1.0.5"
|
||||
}
|
||||
}
|
Двоичные данные
src/Native/Silk.NET.Vulkan.SwiftShader.Native/runtimes/osx-x64/native/libvk_swiftshader.dylib
Executable file
Двоичные данные
src/Native/Silk.NET.Vulkan.SwiftShader.Native/runtimes/osx-x64/native/libvk_swiftshader.dylib
Executable file
Двоичный файл не отображается.
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"file_format_version": "1.0.0",
|
||||
"ICD": {
|
||||
"library_path": "./libvk_swiftshader.dylib",
|
||||
"api_version": "1.0.5"
|
||||
}
|
||||
}
|
Двоичные данные
src/Native/Silk.NET.Vulkan.SwiftShader.Native/runtimes/win-x64/native/vk_swiftshader.dll
Normal file
Двоичные данные
src/Native/Silk.NET.Vulkan.SwiftShader.Native/runtimes/win-x64/native/vk_swiftshader.dll
Normal file
Двоичный файл не отображается.
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"file_format_version": "1.0.0",
|
||||
"ICD": {
|
||||
"library_path": ".\\vk_swiftshader.dll",
|
||||
"api_version": "1.0.5"
|
||||
}
|
||||
}
|
Двоичные данные
src/Native/Silk.NET.Vulkan.SwiftShader.Native/runtimes/win-x86/native/vk_swiftshader.dll
Normal file
Двоичные данные
src/Native/Silk.NET.Vulkan.SwiftShader.Native/runtimes/win-x86/native/vk_swiftshader.dll
Normal file
Двоичный файл не отображается.
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"file_format_version": "1.0.0",
|
||||
"ICD": {
|
||||
"library_path": ".\\vk_swiftshader.dll",
|
||||
"api_version": "1.0.5"
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче