Compare commits
364 Commits
update-lin
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
d50837c46b | ||
|
caa502a393 | ||
|
71ec99d676 | ||
|
7389c35176 | ||
|
14e19b5164 | ||
|
038059ecc9 | ||
|
b42777f4d3 | ||
|
82c0c38477 | ||
|
c66a752bf5 | ||
|
2402c1a0db | ||
|
275e67ad11 | ||
|
70a111cbb6 | ||
|
8f286bb048 | ||
|
e96d39d94b | ||
|
a389f319ce | ||
|
ce6acac60e | ||
|
3547f466d7 | ||
|
4251b252ed | ||
|
7f231ea460 | ||
|
802dd6f15a | ||
|
68ab08e264 | ||
|
df777874bc | ||
|
232018f03e | ||
|
95f9c5c73a | ||
|
077f5e5171 | ||
|
6fa4edcdc4 | ||
|
aa545e727a | ||
|
f4681ebf95 | ||
|
161373c455 | ||
|
4e470dba41 | ||
|
9af6bb8fe8 | ||
|
172acaa08d | ||
|
7ca43ee88c | ||
|
497d929939 | ||
|
54cb2e08c7 | ||
|
ce3bfab43c | ||
|
6bd29ff214 | ||
|
b6e8330d71 | ||
|
b4c039993e | ||
|
832a10c772 | ||
|
740c7a8f87 | ||
|
4d2270aa86 | ||
|
d046b2f2c1 | ||
|
d0361d0e73 | ||
|
5dc54d80a0 | ||
|
2428ad15be | ||
|
45535693a6 | ||
|
bccb6a3136 | ||
|
fc8ed7005b | ||
|
2ec5b46232 | ||
|
eb9f81ac25 | ||
|
2b1c66c7eb | ||
|
16ec96817c | ||
|
9b92aed4b4 | ||
|
a730d16076 | ||
|
f0bef1b9c3 | ||
|
556cd552dd | ||
|
d2e0088381 | ||
|
aa80fe5791 | ||
|
4969c7f3fe | ||
|
658f11e526 | ||
|
ecbe28799d | ||
|
da916a88d5 | ||
|
09f36bcf76 | ||
|
07df446ec8 | ||
|
3d22cd7cb9 | ||
|
00c73365df | ||
|
a30ddefbaf | ||
|
32913b2335 | ||
|
903eebdec4 | ||
|
2519332ce6 | ||
|
e07402105e | ||
|
98a238fe07 | ||
|
f6cf0b57d1 | ||
|
7e10ed6133 | ||
|
3ec97c0015 | ||
|
d00aabdc2f | ||
|
429dca2440 | ||
|
0b373076f6 | ||
|
0f4a522842 | ||
|
b11bffacf6 | ||
|
fdae20ed32 | ||
|
9dd06c9aa7 | ||
|
3de7aae105 | ||
|
aa6c6691d1 | ||
|
356c96c4b4 | ||
|
d5c82b3874 | ||
|
0fc27053cd | ||
|
7b7046588d | ||
|
30125e4c6d | ||
|
38d4e62170 | ||
|
ff81aa5bbf | ||
|
d256ffdeea | ||
|
5547e37319 | ||
|
838530d427 | ||
|
ad5cacb46e | ||
|
a0aab9f1c7 | ||
|
4071670de8 | ||
|
fb9bc3460a | ||
|
741b0ed124 | ||
|
658b2d0dda | ||
|
b0dff7be83 | ||
|
b2530ebcfe | ||
|
cfaabd8550 | ||
|
b10629a93b | ||
|
66fafb3d76 | ||
|
bd3a9589c8 | ||
|
c525718620 | ||
|
68b683d275 | ||
|
686c286baa | ||
|
63bf18bb0a | ||
|
b3f4650a53 | ||
|
345238b69a | ||
|
b408ea8ed5 | ||
|
685f7ae03a | ||
|
a0a77142af | ||
|
bd78b7596e | ||
|
dcfa9193db | ||
|
ff8df8363a | ||
|
f1157c7b62 | ||
|
819ca80e95 | ||
|
a2a122d8cf | ||
|
f4c321267e | ||
|
017f034e30 | ||
|
f3af14599f | ||
|
978e54378a | ||
|
0f36127209 | ||
|
e0cd3e38b1 | ||
|
78ec07396f | ||
|
4da4dc03d4 | ||
|
56be43cd7b | ||
|
fd5e568e35 | ||
|
1f6614f127 | ||
|
46d736ff5a | ||
|
b45fdd562a | ||
|
9110635e65 | ||
|
fca9b7bf84 | ||
|
b721400a5a | ||
|
7af8222ce3 | ||
|
aacbe5085a | ||
|
61272d3cbc | ||
|
2070a7f25c | ||
|
39e7892cba | ||
|
ff158cffd3 | ||
|
0b5cb56c74 | ||
|
a2a5bb01c1 | ||
|
562fc2fcfe | ||
|
9f7112dab7 | ||
|
95c34e8606 | ||
|
74b903b48f | ||
|
79efec7b3a | ||
|
d6ddadcd3f | ||
|
5b8f857b62 | ||
|
619b60041d | ||
|
1c79fa9d6b | ||
|
1815852dcc | ||
|
4eaea60401 | ||
|
46f2eabdc7 | ||
|
f06b293caa | ||
|
c7e834b048 | ||
|
fdbdfbc6b4 | ||
|
2e544995ce | ||
|
7c09b28d8a | ||
|
c33223356b | ||
|
f0df2348d3 | ||
|
36ca8b2802 | ||
|
d1e53cea05 | ||
|
1821b2bb17 | ||
|
b7fd7d726c | ||
|
19aa8b1798 | ||
|
f32e4b5478 | ||
|
366aa00589 | ||
|
ae180cfc1f | ||
|
187f94d325 | ||
|
81c382eab4 | ||
|
11d2922072 | ||
|
702b7c877a | ||
|
735989b51e | ||
|
8cefdf4486 | ||
|
9a9d4fbfb9 | ||
|
f84a835639 | ||
|
52f2a61602 | ||
|
3b42c239f0 | ||
|
a0a6f8f64d | ||
|
d4c8b25a79 | ||
|
31db8dd836 | ||
|
0e75d73195 | ||
|
8f179f0549 | ||
|
ff380bf048 | ||
|
48224c9bd6 | ||
|
d4bc1065c0 | ||
|
c168f4271a | ||
|
0c6e7ac1a2 | ||
|
054e86eabe | ||
|
6dd9f14040 | ||
|
9a854009f0 | ||
|
80841ecef0 | ||
|
9ad2ef91d4 | ||
|
46d450901c | ||
|
a903801fcb | ||
|
79c04ec4e4 | ||
|
365ac7343c | ||
|
589530739f | ||
|
3dd6caee61 | ||
|
7b9cc0930c | ||
|
9e75a76b27 | ||
|
1ccc304a3b | ||
|
41f1a7b98c | ||
|
7411451ccd | ||
|
6cbf30b667 | ||
|
13efd80035 | ||
|
661432e075 | ||
|
07bf0132e2 | ||
|
1740846bfb | ||
|
c7b2eed527 | ||
|
1f5701255d | ||
|
47d127ff42 | ||
|
57efe7508d | ||
|
180c6624da | ||
|
616ec3e4af | ||
|
d122cdc0cc | ||
|
7fef4e4bcf | ||
|
54fea85d7f | ||
|
7e253ea7fd | ||
|
1b8cb2a3ef | ||
|
be91db5b85 | ||
|
e063120875 | ||
|
a5dd0e3002 | ||
|
55c8fc9736 | ||
|
1d947d73ad | ||
|
c51685eab3 | ||
|
6ce8eaf83a | ||
|
8ac357412e | ||
|
e7e6bdefb0 | ||
|
36ceacad9b | ||
|
c1556e8f95 | ||
|
52db66311c | ||
|
606c573d3e | ||
|
c94f27fa40 | ||
|
7a875af110 | ||
|
253d6b4da9 | ||
|
88abfa1730 | ||
|
4c2bf2ab88 | ||
|
82aef37aca | ||
|
52e4a98e0a | ||
|
7a7197c277 | ||
|
ef5dc11cd3 | ||
|
e368843d7a | ||
|
74a1fff30b | ||
|
bcec137696 | ||
|
33e12f2306 | ||
|
3fcefdd96d | ||
|
104a0e76cc | ||
|
184bcfd476 | ||
|
ae543f186c | ||
|
1f2d1af595 | ||
|
ec825444fb | ||
|
d786027acc | ||
|
7e899b49c0 | ||
|
2c82d193b9 | ||
|
300874e40a | ||
|
4b751678a2 | ||
|
d0d4705c55 | ||
|
d9511db82c | ||
|
16fdc264b6 | ||
|
1415d15998 | ||
|
cd42526f1c | ||
|
251ec9ae31 | ||
|
b188a3b90c | ||
|
9cb3215569 | ||
|
a535172268 | ||
|
afaa34f0f3 | ||
|
42709cf78f | ||
|
abd696f7c0 | ||
|
8b76a259af | ||
|
0ea9805e1d | ||
|
dc716ca7c5 | ||
|
db92e59f27 | ||
|
94f6c5e79a | ||
|
b97b3cd339 | ||
|
460f879545 | ||
|
5944136044 | ||
|
c54101eaf5 | ||
|
b40112a74b | ||
|
722f71f3a5 | ||
|
2ee992ef3b | ||
|
4785fd817f | ||
|
a04537c994 | ||
|
8462f99195 | ||
|
7b7585b045 | ||
|
65b8105f09 | ||
|
83717c51ef | ||
|
b8b194a7ec | ||
|
c9b096c847 | ||
|
4c196724b0 | ||
|
ecc9a9a154 | ||
|
d5484a2fec | ||
|
9be777f917 | ||
|
c0281870b1 | ||
|
a858e3061d | ||
|
8110b3c582 | ||
|
89753c4684 | ||
|
36eccd760b | ||
|
0c4c44634f | ||
|
b904c1164d | ||
|
8825ccdf59 | ||
|
4ca474a69b | ||
|
8807bcc1b2 | ||
|
503baa3663 | ||
|
408fadcded | ||
|
8a2eb9bfa0 | ||
|
e05d0ef426 | ||
|
53596261ca | ||
|
e230266ff3 | ||
|
1b81e33fee | ||
|
947e2503da | ||
|
b6fdbf043e | ||
|
c37b077242 | ||
|
9bf64d5cd1 | ||
|
3216da88bf | ||
|
7bc858acd8 | ||
|
cc7d210bf4 | ||
|
3442d7e8b4 | ||
|
a043e0bb33 | ||
|
186a34554d | ||
|
67dc4d0842 | ||
|
d00bb32648 | ||
|
18cbf1485e | ||
|
742ad3c971 | ||
|
82e95483bd | ||
|
e2fb4179bd | ||
|
eb4e0cbe50 | ||
|
dc028d0497 | ||
|
32330ebdbd | ||
|
51e0a82a3c | ||
|
c5911dcc22 | ||
|
5ace052807 | ||
|
5b7f489e98 | ||
|
ef21e36cea | ||
|
600dfe2de5 | ||
|
0dfc1a8cbb | ||
|
4c3602ce14 | ||
|
98e58cb814 | ||
|
1a11a38891 | ||
|
eedabe04d2 | ||
|
c219f70e0d | ||
|
5acf9e579e | ||
|
243fe0b884 | ||
|
9289a3fd82 | ||
|
4d11cf48a9 | ||
|
0c9a67cd45 | ||
|
6dba3318fa | ||
|
12c4d809ef | ||
|
155c51adb8 | ||
|
0addb31520 | ||
|
32c23f3e35 | ||
|
0729f73aa1 | ||
|
67a6fb4532 | ||
|
ad755967f3 | ||
|
19be86c467 | ||
|
2994716b99 | ||
|
ef9c50923a | ||
|
849d398070 | ||
|
0f73183733 |
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
@ -1 +0,0 @@
|
||||
github: [flibitijibibo]
|
9
.github/dependabot.yml
vendored
Normal file
9
.github/dependabot.yml
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
version: 2
|
||||
updates:
|
||||
- directory: /
|
||||
package-ecosystem: github-actions
|
||||
reviewers:
|
||||
- marysaka
|
||||
- TSRBerry
|
||||
schedule:
|
||||
interval: daily
|
92
.github/workflows/build.yml
vendored
Normal file
92
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,92 @@
|
||||
name: build-native
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
rev:
|
||||
description: 'Ryujinx/SDL commit to build (this has to be a full commit sha, otherwise it will not work)'
|
||||
required: true
|
||||
# schedule:
|
||||
# - cron: '0 0 * * *'
|
||||
env:
|
||||
BUILD_TYPE: Release
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: ${{ matrix.platform.name }}
|
||||
runs-on: ${{ matrix.platform.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
platform:
|
||||
- { name: win-x64, os: windows-latest, arch: x64 }
|
||||
# - { name: win-x86, os: windows-latest, arch: Win32 }
|
||||
- { name: win-arm64, os: windows-latest, arch: ARM64 }
|
||||
- { name: linux-x64, os: ubuntu-20.04, arch: amd64 }
|
||||
# - { name: linux-x86, os: ubuntu-20.04, arch: i386 }
|
||||
- { name: linux-arm64, os: ubuntu-20.04, arch: arm64 }
|
||||
- { name: osx-x64, os: macos-latest, arch: x86_64 }
|
||||
- { name: osx-arm64, os: macos-latest, arch: arm64 }
|
||||
steps:
|
||||
- name: Setup qemu static
|
||||
uses: docker/setup-qemu-action@v3
|
||||
if: runner.os == 'Linux'
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
repository: Ryujinx/SDL
|
||||
ref: ${{ github.event.inputs.rev }}
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
path: 'SDL2-CS'
|
||||
- name: Build and prepare release
|
||||
run: SDL2-CS/ci/run.sh $PWD $PWD/SDL2-CS/native/${{ matrix.platform.name }} ${{ matrix.platform.arch }}
|
||||
shell: bash
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ matrix.platform.name }}-binaries
|
||||
path: install_output
|
||||
- name: Create pull request
|
||||
uses: peter-evans/create-pull-request@v4
|
||||
with:
|
||||
commit-message: Update ${{ matrix.platform.name }} SDL binaries
|
||||
title: Update ${{ matrix.platform.name }} SDL binaries
|
||||
body: This PR has been auto-generated to update the ${{ matrix.platform.name }} SDL binaries.
|
||||
branch: update-${{ matrix.platform.name }}-binaries
|
||||
path: 'SDL2-CS'
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
||||
|
||||
build-ios:
|
||||
name: ios
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
repository: Ryujinx/SDL
|
||||
ref: ${{ github.event.inputs.rev }}
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
path: 'SDL2-CS'
|
||||
- name: Build (iOS)
|
||||
run: xcodebuild -project Xcode/SDL/SDL.xcodeproj -scheme xcFramework-iOS -configuration Release
|
||||
- name: Prepare release directory (iOS)
|
||||
run: mkdir -p SDL2-CS/native/ios
|
||||
- name: Prepare release (iOS)
|
||||
run: |
|
||||
mkdir -p SDL2-CS/native/ios/SDL2.xcframework/ios-arm64/SDL2.framework;
|
||||
mkdir -p SDL2-CS/native/ios/SDL2.xcframework/ios-arm64_x86_64-simulator/SDL2.framework;
|
||||
cp Xcode/SDL/Products/SDL2.xcframework/Info.plist SDL2-CS/native/ios/SDL2.xcframework/Info.plist;
|
||||
cp Xcode/SDL/Products/SDL2.xcframework/ios-arm64/SDL2.framework/SDL2 SDL2-CS/native/ios/SDL2.xcframework/ios-arm64/SDL2.framework/SDL2;
|
||||
cp Xcode/SDL/Products/SDL2.xcframework/ios-arm64/SDL2.framework/Info.plist SDL2-CS/native/ios/SDL2.xcframework/ios-arm64/SDL2.framework/Info.plist;
|
||||
cp Xcode/SDL/Products/SDL2.xcframework/ios-arm64_x86_64-simulator/SDL2.framework/SDL2 SDL2-CS/native/ios/SDL2.xcframework/ios-arm64_x86_64-simulator/SDL2.framework/SDL2;
|
||||
cp Xcode/SDL/Products/SDL2.xcframework/ios-arm64_x86_64-simulator/SDL2.framework/Info.plist SDL2-CS/native/ios/SDL2.xcframework/ios-arm64_x86_64-simulator/SDL2.framework/Info.plist;
|
||||
- name: Create pull request
|
||||
uses: peter-evans/create-pull-request@v4
|
||||
with:
|
||||
commit-message: Update iOS SDL binaries
|
||||
title: Update iOS SDL binaries
|
||||
body: This PR has been auto-genereated to update the iOS SDL binaries
|
||||
branch: update-ios-binaries
|
||||
path: 'SDL2-CS'
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
34
.github/workflows/ci.yml
vendored
Normal file
34
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs: {}
|
||||
#push:
|
||||
# branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: 7.0.x
|
||||
- uses: nuget/setup-nuget@v1
|
||||
with:
|
||||
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
|
||||
nuget-version: '6.x'
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore
|
||||
- name: Build
|
||||
run: dotnet build --no-restore
|
||||
- name: Test
|
||||
run: dotnet test --no-build --verbosity normal
|
||||
- name: Pack & Publish
|
||||
run: |
|
||||
dotnet pack --version-suffix "build${{ github.run_number }}" -c Release .\SDL2-CS.csproj -o .
|
||||
$file_to_publish = Get-ChildItem -Path $dir -Filter *.nupkg | Select -First 1
|
||||
echo $file_to_publish
|
||||
nuget push $file_to_publish -Source https://api.nuget.org/v3/index.json
|
@ -1,58 +0,0 @@
|
||||
stages:
|
||||
- build
|
||||
- package
|
||||
- deploy
|
||||
|
||||
build_net461:
|
||||
image: mono
|
||||
stage: build
|
||||
only:
|
||||
- schedules
|
||||
script:
|
||||
- ./gitlab-ci/build-net461.sh
|
||||
artifacts:
|
||||
paths:
|
||||
- bin/
|
||||
tags:
|
||||
- docker
|
||||
|
||||
build_netcore:
|
||||
image: microsoft/dotnet:2.1-sdk
|
||||
stage: build
|
||||
only:
|
||||
- schedules
|
||||
script:
|
||||
- ./gitlab-ci/build-netcore.sh
|
||||
artifacts:
|
||||
paths:
|
||||
- bin/
|
||||
tags:
|
||||
- docker
|
||||
|
||||
package_nuget:
|
||||
image: mono
|
||||
stage: package
|
||||
only:
|
||||
- schedules
|
||||
script:
|
||||
- ./gitlab-ci/package.sh
|
||||
dependencies:
|
||||
- build_net461
|
||||
- build_netcore
|
||||
artifacts:
|
||||
paths:
|
||||
- '*.nupkg'
|
||||
|
||||
deploy_nuget:
|
||||
image: mono
|
||||
stage: deploy
|
||||
only:
|
||||
- schedules
|
||||
script:
|
||||
- ./gitlab-ci/deploy.sh
|
||||
dependencies:
|
||||
- package_nuget
|
||||
environment:
|
||||
name: nuget
|
||||
url: http://nuget.org/
|
||||
|
33
Makefile
33
Makefile
@ -1,33 +0,0 @@
|
||||
# Makefile for SDL2#
|
||||
# Written by Ethan "flibitijibibo" Lee
|
||||
|
||||
# Source Lists
|
||||
SRC = \
|
||||
src/SDL2.cs \
|
||||
src/SDL2_gfx.cs \
|
||||
src/SDL2_image.cs \
|
||||
src/SDL2_mixer.cs \
|
||||
src/SDL2_ttf.cs
|
||||
|
||||
# Targets
|
||||
|
||||
debug: clean-debug
|
||||
mkdir -p bin/Debug
|
||||
cp app.config bin/Debug/SDL2-CS.dll.config
|
||||
mcs /unsafe -debug -out:bin/Debug/SDL2-CS.dll -target:library $(SRC)
|
||||
|
||||
clean-debug:
|
||||
rm -rf bin/Debug
|
||||
|
||||
release: clean-release
|
||||
mkdir -p bin/Release
|
||||
cp app.config bin/Release/SDL2-CS.dll.config
|
||||
mcs /unsafe -optimize -out:bin/Release/SDL2-CS.dll -target:library $(SRC)
|
||||
|
||||
clean-release:
|
||||
rm -rf bin/Release
|
||||
|
||||
clean: clean-debug clean-release
|
||||
rm -rf bin
|
||||
|
||||
all: debug release
|
@ -1,31 +0,0 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net40;netstandard2.0</TargetFrameworks>
|
||||
<Platforms>x64</Platforms>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<EnableDefaultItems>false</EnableDefaultItems>
|
||||
<AssemblyName>SDL2-CS</AssemblyName>
|
||||
<RootNamespace>SDL2</RootNamespace>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<SDLSettingsPropsFilePath>$(SolutionDir)SDL2-CS.Settings.props</SDLSettingsPropsFilePath>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(SDLSettingsPropsFilePath)" Condition="Exists('$(SDLSettingsPropsFilePath)')" />
|
||||
<Target Name="ValidatePropsFilePath" BeforeTargets="BeforeBuild">
|
||||
<Message Importance="High" Text="No property overrides found at '$(SDLSettingsPropsFilePath)'" Condition="!Exists('$(SDLSettingsPropsFilePath)')" />
|
||||
<Message Importance="High" Text="Loaded property overrides from '$(SDLSettingsPropsFilePath)'" Condition="Exists('$(SDLSettingsPropsFilePath)')" />
|
||||
</Target>
|
||||
<ItemGroup>
|
||||
<Compile Include="src\SDL2.cs" />
|
||||
<Compile Include="src\SDL2_gfx.cs" />
|
||||
<Compile Include="src\SDL2_image.cs" />
|
||||
<Compile Include="src\SDL2_mixer.cs" />
|
||||
<Compile Include="src\SDL2_ttf.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="app.config" />
|
||||
</ItemGroup>
|
||||
</Project>
|
142
SDL2-CS.csproj
142
SDL2-CS.csproj
@ -1,102 +1,62 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||
<ProductVersion>9.0.21022</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{85480198-8711-4355-830E-72FD794AD3F6}</ProjectGuid>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<OutputType>Library</OutputType>
|
||||
<RootNamespace>SDL2</RootNamespace>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<AssemblyTitle>SDL2#</AssemblyTitle>
|
||||
<AssemblyName>SDL2-CS</AssemblyName>
|
||||
<Description>libSDL2 bindings for C#</Description>
|
||||
<RootNamespace>SDL2</RootNamespace>
|
||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||
<VersionPrefix>2.30.0</VersionPrefix>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<PropertyGroup Label="NuGet">
|
||||
<Authors>marysaka & ppy Pty Ltd & flibitijibibo</Authors>
|
||||
<Title>SDL2#</Title>
|
||||
<PackageId>Ryujinx.SDL2-CS</PackageId>
|
||||
<PackageProjectUrl>https://github.com/Ryujinx/SDL2-CS</PackageProjectUrl>
|
||||
<RepositoryUrl>https://github.com/Ryujinx/SDL2-CS</RepositoryUrl>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<SDLSettingsPropsFilePath>$(SolutionDir)SDL2-CS.Settings.props</SDLSettingsPropsFilePath>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(SDLSettingsPropsFilePath)" Condition="Exists('$(SDLSettingsPropsFilePath)')" />
|
||||
<Target Name="ValidatePropsFilePath" BeforeTargets="BeforeBuild">
|
||||
<Message Importance="High" Text="No property overrides found at '$(SDLSettingsPropsFilePath)'" Condition="!Exists('$(SDLSettingsPropsFilePath)')" />
|
||||
<Message Importance="High" Text="Loaded property overrides from '$(SDLSettingsPropsFilePath)'" Condition="Exists('$(SDLSettingsPropsFilePath)')" />
|
||||
</Target>
|
||||
<ItemGroup>
|
||||
<Compile Include="src\SDL2.cs" />
|
||||
<Compile Include="src\SDL2_gfx.cs" />
|
||||
<Compile Include="src\SDL2_image.cs" />
|
||||
<Compile Include="src\SDL2_mixer.cs" />
|
||||
<Compile Include="src\SDL2_ttf.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="app.config">
|
||||
<Link>$(TargetFileName).config</Link>
|
||||
<Content Include="$(MSBuildThisFileDirectory)native\win-x64\SDL2.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<PackagePath>runtimes/win-x64/native</PackagePath>
|
||||
<Pack>true</Pack>
|
||||
</Content>
|
||||
<Content Include="$(MSBuildThisFileDirectory)native\win-arm64\SDL2.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<PackagePath>runtimes/win-arm64/native</PackagePath>
|
||||
<Pack>true</Pack>
|
||||
</Content>
|
||||
<Content Include="$(MSBuildThisFileDirectory)native\osx-x64\libSDL2.dylib">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<PackagePath>runtimes/osx-x64/native</PackagePath>
|
||||
<Pack>true</Pack>
|
||||
</Content>
|
||||
<Content Include="$(MSBuildThisFileDirectory)native\osx-arm64\libSDL2.dylib">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<PackagePath>runtimes/osx-arm64/native</PackagePath>
|
||||
<Pack>true</Pack>
|
||||
</Content>
|
||||
<Content Include="$(MSBuildThisFileDirectory)native\linux-x64\libSDL2.so">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<PackagePath>runtimes/linux-x64/native</PackagePath>
|
||||
<Pack>true</Pack>
|
||||
</Content>
|
||||
<Content Include="$(MSBuildThisFileDirectory)native\linux-arm64\libSDL2.so">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<PackagePath>runtimes/linux-arm64/native</PackagePath>
|
||||
<Pack>true</Pack>
|
||||
</Content>
|
||||
<Content Include="$(MSBuildThisFileDirectory)native\ios\**\*">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<PackagePath>runtimes/ios/native</PackagePath>
|
||||
<Pack>true</Pack>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Content Include="app.config">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
18
app.config
18
app.config
@ -1,22 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<dllmap dll="SDL2" os="windows" target="SDL2.dll"/>
|
||||
<dllmap dll="SDL2" os="osx" target="libSDL2-2.0.0.dylib"/>
|
||||
<dllmap dll="SDL2" os="osx" target="libSDL2.dylib"/>
|
||||
<dllmap dll="SDL2" os="linux" target="libSDL2-2.0.so.0"/>
|
||||
|
||||
<dllmap dll="SDL2_gfx" os="windows" target="SDL2_gfx.dll"/>
|
||||
<dllmap dll="SDL2_gfx" os="osx" target="libSDL2_gfx-1.0.0.dylib"/>
|
||||
<dllmap dll="SDL2_gfx" os="linux" target="libSDL2_gfx-1.0.so.0"/>
|
||||
|
||||
<dllmap dll="SDL2_image" os="windows" target="SDL2_image.dll"/>
|
||||
<dllmap dll="SDL2_image" os="osx" target="libSDL2_image-2.0.0.dylib"/>
|
||||
<dllmap dll="SDL2_image" os="linux" target="libSDL2_image-2.0.so.0"/>
|
||||
|
||||
<dllmap dll="SDL2_mixer" os="windows" target="SDL2_mixer.dll"/>
|
||||
<dllmap dll="SDL2_mixer" os="osx" target="libSDL2_mixer-2.0.0.dylib"/>
|
||||
<dllmap dll="SDL2_mixer" os="linux" target="libSDL2_mixer-2.0.so.0"/>
|
||||
|
||||
<dllmap dll="SDL2_ttf" os="windows" target="SDL2_ttf.dll"/>
|
||||
<dllmap dll="SDL2_ttf" os="osx" target="libSDL2_ttf-2.0.0.dylib"/>
|
||||
<dllmap dll="SDL2_ttf" os="linux" target="libSDL2_ttf-2.0.so.0"/>
|
||||
</configuration>
|
||||
|
8
appveyor.yml
Normal file
8
appveyor.yml
Normal file
@ -0,0 +1,8 @@
|
||||
image: Visual Studio 2022
|
||||
build_script:
|
||||
- cmd: dotnet restore
|
||||
- cmd: dotnet pack SDL2-CS.csproj -c:Release --include-symbols /p:Version=%APPVEYOR_BUILD_VERSION%
|
||||
test: off
|
||||
version: 1.0.{build}-alpha
|
||||
artifacts:
|
||||
- path: 'bin\Release\*.nupkg'
|
109
ci/compile.sh
Executable file
109
ci/compile.sh
Executable file
@ -0,0 +1,109 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if [ "$#" -le 1 ]; then
|
||||
echo "usage: <sdl_dir> <output_path> [build_arch]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
uname_system="$(uname -s)"
|
||||
|
||||
case "${uname_system}" in
|
||||
Linux*) system_name=linux;;
|
||||
Darwin*) system_name=macos;;
|
||||
CYGWIN*) system_name=win;;
|
||||
MINGW*) system_name=win;;
|
||||
*) system_name="Unknown OS: ${uname_system}"
|
||||
esac
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
sdl_dir=$1
|
||||
output_path=$2
|
||||
build_arch=$3
|
||||
|
||||
mkdir -p $output_path
|
||||
|
||||
if [ -z "$3" ]; then
|
||||
if [ $system_name == "linux" ]; then
|
||||
build_arch=$(dpkg --print-architecture)
|
||||
else
|
||||
echo "ERROR - build_arch parameter needed on macOS and Windows"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if command -v sudo &> /dev/null
|
||||
then
|
||||
SUDO=sudo
|
||||
fi
|
||||
|
||||
if [[ $system_name == "linux" ]]; then
|
||||
if [[ $build_arch == "i386" ]]; then
|
||||
sudo dpkg --add-architecture i386
|
||||
|
||||
export CFLAGS=-m32
|
||||
export CXXFLAGS=-m32
|
||||
fi
|
||||
|
||||
$SUDO apt-get update -y
|
||||
$SUDO apt-get install -y \
|
||||
build-essential \
|
||||
cmake \
|
||||
ninja-build \
|
||||
wayland-scanner++ \
|
||||
wayland-protocols \
|
||||
pkg-config:$build_arch \
|
||||
libasound2-dev:$build_arch \
|
||||
libdbus-1-dev:$build_arch \
|
||||
libegl1-mesa-dev:$build_arch \
|
||||
libgl1-mesa-dev:$build_arch \
|
||||
libgles2-mesa-dev:$build_arch \
|
||||
libglu1-mesa-dev:$build_arch \
|
||||
libibus-1.0-dev:$build_arch \
|
||||
libpulse-dev:$build_arch \
|
||||
libsdl2-2.0-0:$build_arch \
|
||||
libsndio-dev:$build_arch \
|
||||
libudev-dev:$build_arch \
|
||||
libwayland-dev:$build_arch \
|
||||
libx11-dev:$build_arch \
|
||||
libxcursor-dev:$build_arch \
|
||||
libxext-dev:$build_arch \
|
||||
libxi-dev:$build_arch \
|
||||
libxinerama-dev:$build_arch \
|
||||
libxkbcommon-dev:$build_arch \
|
||||
libxrandr-dev:$build_arch \
|
||||
libxss-dev:$build_arch \
|
||||
libxt-dev:$build_arch \
|
||||
libxv-dev:$build_arch \
|
||||
libxxf86vm-dev:$build_arch \
|
||||
libdrm-dev:$build_arch \
|
||||
libgbm-dev:$build_arch \
|
||||
libpulse-dev:$build_arch \
|
||||
libhidapi-dev:$build_arch \
|
||||
libwayland-client++0:$build_arch \
|
||||
libwayland-cursor++0:$build_arch
|
||||
|
||||
extra_cmake_flags="-GNinja"
|
||||
elif [[ $system_name == "macos" ]]; then
|
||||
extra_cmake_flags="-DCMAKE_OSX_ARCHITECTURES=\"$build_arch\" -DCMAKE_OSX_DEPLOYMENT_TARGET=\"11.0\""
|
||||
elif [[ $system_name == "win" ]]; then
|
||||
extra_cmake_flags="-A $build_arch"
|
||||
fi
|
||||
|
||||
pushd $sdl_dir
|
||||
cmake -B build -DCMAKE_BUILD_TYPE=Release -DSDL_SHARED_ENABLED_BY_DEFAULT=ON -DSDL_STATIC_ENABLED_BY_DEFAULT=ON $extra_cmake_flags
|
||||
cmake --build build/ --config Release
|
||||
$SUDO cmake --install build/ --prefix install_output --config Release
|
||||
|
||||
mkdir -p $output_path
|
||||
|
||||
if [[ $system_name == "linux" ]]; then
|
||||
cp install_output/lib/libSDL2-2.0.so.0 $output_path/libSDL2.so
|
||||
elif [[ $system_name == "macos" ]]; then
|
||||
cp install_output/lib/libSDL2-2.0.dylib $output_path/libSDL2.dylib
|
||||
elif [[ $system_name == "win" ]]; then
|
||||
cp install_output/bin/SDL2.dll $output_path/SDL2.dll
|
||||
fi
|
||||
popd
|
41
ci/run.sh
Executable file
41
ci/run.sh
Executable file
@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if [ "$#" -le 2 ]; then
|
||||
echo "usage: <sdl_dir> <output_path> <build_arch>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
uname_system="$(uname -s)"
|
||||
|
||||
case "${uname_system}" in
|
||||
Linux*) system_name=linux;;
|
||||
Darwin*) system_name=macos;;
|
||||
CYGWIN*) system_name=win;;
|
||||
MINGW*) system_name=win;;
|
||||
*) system_name="Unknown OS: ${uname_system}"
|
||||
esac
|
||||
|
||||
sdl_dir=$1
|
||||
output_path=$2
|
||||
build_arch=$3
|
||||
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
|
||||
mkdir -p $output_path
|
||||
|
||||
if [ $system_name == "linux" ] && [ $build_arch == "arm64" ]; then
|
||||
if command -v podman &> /dev/null; then
|
||||
DOCKER=podman
|
||||
elif command -v docker &> /dev/null; then
|
||||
DOCKER=docker
|
||||
else
|
||||
echo "ERROR - Missing docker/podman env, cannot crossbuild"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
$DOCKER run --rm -v $SCRIPT_DIR:/scripts -v $output_path:/output -v $sdl_dir:/source -t arm64v8/ubuntu:focal bash /scripts/compile.sh /source /output $build_arch
|
||||
else
|
||||
$SCRIPT_DIR/compile.sh "$sdl_dir" "$output_path" "$build_arch"
|
||||
fi
|
@ -1,23 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<package >
|
||||
<metadata>
|
||||
<id>SDL2-CS-Rolling</id>
|
||||
<version>2000.1.1</version>
|
||||
<authors>flibitijibibo</authors>
|
||||
<owners>beannaich</owners>
|
||||
<licenseUrl>https://github.com/flibitijibibo/SDL2-CS/blob/master/LICENSE</licenseUrl>
|
||||
<projectUrl>https://github.com/flibitijibibo/SDL2-CS</projectUrl>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<description>SDL2# - C# Wrapper for SDL2</description>
|
||||
<copyright>Copyright 2013-2021</copyright>
|
||||
<tags>SDL2# SDL2 SDL</tags>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="..\bin\Debug\*.dll" target="lib/net461" />
|
||||
<file src="..\bin\Debug\*.dll.config" target="lib/net461" />
|
||||
<file src="..\bin\Debug\*.pdb" target="lib/net461" />
|
||||
<file src="..\bin\Debug\netstandard2.0\*.dll" target="lib/netstandard2.0" />
|
||||
<file src="..\bin\Debug\netstandard2.0\*.dll.config" target="lib/netstandard2.0" />
|
||||
<file src="..\bin\Debug\netstandard2.0\*.pdb" target="lib/netstandard2.0" />
|
||||
</files>
|
||||
</package>
|
@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
msbuild /p:Configuration=Release SDL2-CS.csproj
|
@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
dotnet build -c Release SDL2-CS.Core.csproj
|
@ -1,9 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
nuget setApiKey $NUGET_API_KEY -verbosity quiet
|
||||
|
||||
for package in `find *.nupkg`; do
|
||||
nuget push $package -source https://nuget.org/
|
||||
done
|
@ -1,9 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
version=`date +"%Y.%m.%d"`
|
||||
|
||||
nuspec="gitlab-ci/SDL2-CS.nuspec"
|
||||
|
||||
nuget pack $nuspec -Version $version
|
19
linux-build/Dockerfile.amd64
Normal file
19
linux-build/Dockerfile.amd64
Normal file
@ -0,0 +1,19 @@
|
||||
FROM debian:jessie
|
||||
|
||||
# We build on Jessie, but libwayland-dev and wayland-protocols are only in
|
||||
# Stretch and later.
|
||||
COPY stretch-package-pins /etc/apt/preferences.d/stretch
|
||||
|
||||
# Packages are from https://hg.libsdl.org/SDL/file/default/docs/README-linux.md
|
||||
RUN echo deb http://deb.debian.org/debian/ stretch main > /etc/apt/sources.list.d/stretch.list && \
|
||||
echo deb http://security.debian.org/debian-security stretch/updates main >> /etc/apt/sources.list.d/stretch.list && \
|
||||
apt-get update && \
|
||||
apt-get install -y build-essential mercurial make cmake autoconf automake \
|
||||
libtool libasound2-dev libpulse-dev libaudio-dev libx11-dev libxext-dev \
|
||||
libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libxxf86vm-dev \
|
||||
libxss-dev libgl1-mesa-dev libesd0-dev libdbus-1-dev libudev-dev \
|
||||
libgles1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libibus-1.0-dev \
|
||||
fcitx-libs-dev libsamplerate0-dev libsndio-dev libwayland-dev \
|
||||
libxkbcommon-dev wayland-protocols
|
||||
|
||||
ENTRYPOINT ["/entry"]
|
19
linux-build/Dockerfile.i386
Normal file
19
linux-build/Dockerfile.i386
Normal file
@ -0,0 +1,19 @@
|
||||
FROM i386/debian:jessie
|
||||
|
||||
# We build on Jessie, but libwayland-dev and wayland-protocols are only in
|
||||
# Stretch and later.
|
||||
COPY stretch-package-pins /etc/apt/preferences.d/stretch
|
||||
|
||||
# Packages are from https://hg.libsdl.org/SDL/file/default/docs/README-linux.md
|
||||
RUN echo deb http://deb.debian.org/debian/ stretch main > /etc/apt/sources.list.d/stretch.list && \
|
||||
echo deb http://security.debian.org/debian-security stretch/updates main >> /etc/apt/sources.list.d/stretch.list && \
|
||||
apt-get update && \
|
||||
apt-get install -y build-essential mercurial make cmake autoconf automake \
|
||||
libtool libasound2-dev libpulse-dev libaudio-dev libx11-dev libxext-dev \
|
||||
libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libxxf86vm-dev \
|
||||
libxss-dev libgl1-mesa-dev libesd0-dev libdbus-1-dev libudev-dev \
|
||||
libgles1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libibus-1.0-dev \
|
||||
fcitx-libs-dev libsamplerate0-dev libsndio-dev libwayland-dev \
|
||||
libxkbcommon-dev wayland-protocols
|
||||
|
||||
ENTRYPOINT ["/entry"]
|
11
linux-build/compile
Executable file
11
linux-build/compile
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euf -o pipefail
|
||||
|
||||
cd /src
|
||||
rm -rf build
|
||||
mkdir build
|
||||
cd build
|
||||
../configure --prefix=/io
|
||||
make -j$(nproc)
|
||||
make install
|
27
linux-build/stretch-package-pins
Normal file
27
linux-build/stretch-package-pins
Normal file
@ -0,0 +1,27 @@
|
||||
Package: *
|
||||
Pin: release n=stretch
|
||||
Pin-Priority: 50
|
||||
|
||||
Package: libwayland-dev
|
||||
Pin: release n=stretch
|
||||
Pin-Priority: 800
|
||||
|
||||
Package: libwayland-bin
|
||||
Pin: release n=stretch
|
||||
Pin-Priority: 800
|
||||
|
||||
Package: libwayland-client0
|
||||
Pin: release n=stretch
|
||||
Pin-Priority: 800
|
||||
|
||||
Package: libwayland-cursor0
|
||||
Pin: release n=stretch
|
||||
Pin-Priority: 800
|
||||
|
||||
Package: libwayland-server0
|
||||
Pin: release n=stretch
|
||||
Pin-Priority: 800
|
||||
|
||||
Package: wayland-protocols
|
||||
Pin: release n=stretch
|
||||
Pin-Priority: 800
|
40
native/ios/SDL2.xcframework/Info.plist
Normal file
40
native/ios/SDL2.xcframework/Info.plist
Normal file
@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>AvailableLibraries</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>ios-arm64</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>SDL2.framework</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
</array>
|
||||
<key>SupportedPlatform</key>
|
||||
<string>ios</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>ios-arm64_x86_64-simulator</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>SDL2.framework</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
<string>x86_64</string>
|
||||
</array>
|
||||
<key>SupportedPlatform</key>
|
||||
<string>ios</string>
|
||||
<key>SupportedPlatformVariant</key>
|
||||
<string>simulator</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>XFWK</string>
|
||||
<key>XCFrameworkFormatVersion</key>
|
||||
<string>1.0</string>
|
||||
</dict>
|
||||
</plist>
|
BIN
native/ios/SDL2.xcframework/ios-arm64/SDL2.framework/Info.plist
Normal file
BIN
native/ios/SDL2.xcframework/ios-arm64/SDL2.framework/Info.plist
Normal file
Binary file not shown.
BIN
native/ios/SDL2.xcframework/ios-arm64/SDL2.framework/SDL2
Executable file
BIN
native/ios/SDL2.xcframework/ios-arm64/SDL2.framework/SDL2
Executable file
Binary file not shown.
Binary file not shown.
BIN
native/ios/SDL2.xcframework/ios-arm64_x86_64-simulator/SDL2.framework/SDL2
Executable file
BIN
native/ios/SDL2.xcframework/ios-arm64_x86_64-simulator/SDL2.framework/SDL2
Executable file
Binary file not shown.
BIN
native/linux-arm64/libSDL2.so
Normal file
BIN
native/linux-arm64/libSDL2.so
Normal file
Binary file not shown.
BIN
native/linux-x64/libSDL2.so
Executable file
BIN
native/linux-x64/libSDL2.so
Executable file
Binary file not shown.
BIN
native/linux-x86/libSDL2.so
Executable file
BIN
native/linux-x86/libSDL2.so
Executable file
Binary file not shown.
BIN
native/osx-arm64/libSDL2.dylib
Executable file
BIN
native/osx-arm64/libSDL2.dylib
Executable file
Binary file not shown.
BIN
native/osx-x64/libSDL2.dylib
Executable file
BIN
native/osx-x64/libSDL2.dylib
Executable file
Binary file not shown.
BIN
native/win-arm64/SDL2.dll
Normal file
BIN
native/win-arm64/SDL2.dll
Normal file
Binary file not shown.
BIN
native/win-x64/SDL2.dll
Executable file
BIN
native/win-x64/SDL2.dll
Executable file
Binary file not shown.
BIN
native/win-x86/SDL2.dll
Executable file
BIN
native/win-x86/SDL2.dll
Executable file
Binary file not shown.
@ -37,6 +37,12 @@ namespace SDL2
|
||||
{
|
||||
public static class SDL
|
||||
{
|
||||
static SDL()
|
||||
{
|
||||
if (OperatingSystem.IsIOS())
|
||||
NativeLibrary.SetDllImportResolver(typeof(SDL).Assembly, (_, assembly, path) => NativeLibrary.Load("@rpath/SDL2.framework/SDL2", assembly, path));
|
||||
}
|
||||
|
||||
#region SDL2# Variables
|
||||
|
||||
private const string nativeLibName = "SDL2";
|
||||
|
Loading…
x
Reference in New Issue
Block a user