Skip to content

Commit 6ede646

Browse files
authored
Merge pull request #3085 from Kryptos-FR/feature/stride-sdk
feat: Refactor old build system into a proper Sdk
2 parents 640b3c5 + 90ecc39 commit 6ede646

245 files changed

Lines changed: 3009 additions & 6918 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-android.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ on:
44
pull_request:
55
paths:
66
- '.github/workflows/build-android.yml'
7-
- 'build/Stride.Android.sln'
7+
- 'build/Stride.Android.slnf'
88
# - 'deps/**'
99
# - 'sources/core/**'
1010
# - 'sources/engine/**'
1111
# - 'sources/native/**'
1212
# - 'sources/shaders/**'
1313
# - 'sources/shared/**'
14-
# - 'sources/targets/**'
14+
# - 'sources/sdk/**'
1515
- '!**/.all-contributorsrc'
1616
- '!**/.editorconfig'
1717
- '!**/.gitignore'
@@ -76,7 +76,6 @@ jobs:
7676
echo "ANDROID_NDK_ROOT=$ndkPath" >> $env:GITHUB_ENV
7777
echo "ANDROID_NDK_HOME=$ndkPath" >> $env:GITHUB_ENV
7878
echo "Using NDK at: $ndkPath"
79-
- uses: microsoft/setup-msbuild@v2
8079
- name: Debug NDK Configuration
8180
shell: pwsh
8281
run: |
@@ -89,9 +88,9 @@ jobs:
8988
}
9089
- name: Build
9190
run: |
92-
msbuild build\Stride.Android.sln `
93-
-restore -m:1 -nr:false `
94-
-v:m -p:WarningLevel=0 `
91+
dotnet build build\Stride.Android.slnf `
92+
-p:StrideNativeBuildMode=Clang `
93+
-m:1 -nr:false `
9594
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
9695
-p:StridePlatforms=Android `
9796
-p:StrideSkipUnitTests=true `

.github/workflows/build-ios.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ on:
44
pull_request:
55
paths:
66
- '.github/workflows/build-ios.yml'
7-
- 'build/Stride.iOS.sln'
7+
- 'build/Stride.iOS.slnf'
88
- 'deps/**'
99
- 'sources/core/**'
1010
- 'sources/engine/**'
1111
- 'sources/native/**'
1212
- 'sources/shaders/**'
1313
- 'sources/shared/**'
14-
- 'sources/targets/**'
14+
- 'sources/sdk/**'
1515
- '!**/.all-contributorsrc'
1616
- '!**/.editorconfig'
1717
- '!**/.gitignore'
@@ -54,11 +54,11 @@ jobs:
5454
dotnet-version: '10.0.x'
5555
- name: Install .NET iOS Workload
5656
run: dotnet workload install ios
57-
- uses: microsoft/setup-msbuild@v2
5857
- name: Build
5958
run: |
60-
msbuild build\Stride.iOS.sln `
61-
-restore -m:1 -nr:false `
59+
dotnet build build\Stride.iOS.slnf `
60+
-p:StrideNativeBuildMode=Clang `
61+
-m:1 -nr:false `
6262
-v:m -p:WarningLevel=0 `
6363
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
6464
-p:StridePlatforms=iOS `

.github/workflows/build-launcher.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- 'sources/launcher/**'
1010
- 'sources/presentation/**'
1111
- 'sources/shared/**'
12-
- 'sources/targets/**'
12+
- 'sources/sdk/**'
1313
- '!**/.all-contributorsrc'
1414
- '!**/.editorconfig'
1515
- '!**/.gitignore'
@@ -50,11 +50,9 @@ jobs:
5050
- uses: actions/setup-dotnet@v4
5151
with:
5252
dotnet-version: '10.0.x'
53-
- uses: microsoft/setup-msbuild@v2
5453
- name: Build
5554
run: |
56-
msbuild build\Stride.Launcher.sln `
57-
-restore -m:1 -nr:false `
55+
dotnet build build\Stride.Launcher.sln `
5856
-v:m -p:WarningLevel=0 `
5957
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
6058
-p:StridePlatforms=Windows `

.github/workflows/build-linux-runtime.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ on:
44
pull_request:
55
paths:
66
- '.github/workflows/build-linux-runtime.yml'
7-
- 'build/Stride.Runtime.sln'
7+
- 'build/Stride.Runtime.slnf'
88
- 'deps/**'
99
- 'sources/core/**'
1010
- 'sources/engine/**'
1111
- 'sources/native/**'
1212
- 'sources/shaders/**'
1313
- 'sources/shared/**'
14-
- 'sources/targets/**'
14+
- 'sources/sdk/**'
1515
- '!**/.all-contributorsrc'
1616
- '!**/.editorconfig'
1717
- '!**/.gitignore'
@@ -62,11 +62,11 @@ jobs:
6262
- uses: actions/setup-dotnet@v4
6363
with:
6464
dotnet-version: '10.0.x'
65-
- uses: microsoft/setup-msbuild@v2
6665
- name: Build
6766
run: |
68-
msbuild build\Stride.Runtime.sln `
69-
-restore -m:1 -nr:false `
67+
dotnet build build\Stride.Runtime.slnf `
68+
-p:StrideNativeBuildMode=Clang `
69+
-m:1 -nr:false `
7070
-v:m -p:WarningLevel=0 `
7171
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
7272
-p:StridePlatforms=Linux `

.github/workflows/build-vs-package.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ jobs:
3535
- uses: actions/setup-dotnet@v4
3636
with:
3737
dotnet-version: '10.0.x'
38-
- uses: microsoft/setup-msbuild@v2
38+
- uses: microsoft/setup-msbuild@v3
39+
with:
40+
vs-version: '[18.0,19.0)'
3941
- name: Build
4042
run: |
4143
msbuild build\Stride.VisualStudio.sln `

.github/workflows/build-windows-runtime.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ on:
44
pull_request:
55
paths:
66
- '.github/workflows/build-windows-runtime.yml'
7-
- 'build/Stride.Runtime.sln'
7+
- 'build/Stride.Runtime.slnf'
88
- 'deps/**'
99
- 'sources/core/**'
1010
- 'sources/engine/**'
1111
- 'sources/native/**'
1212
- 'sources/shaders/**'
1313
- 'sources/shared/**'
14-
- 'sources/targets/**'
14+
- 'sources/sdk/**'
1515
- '!**/.all-contributorsrc'
1616
- '!**/.editorconfig'
1717
- '!**/.gitignore'
@@ -67,7 +67,7 @@ jobs:
6767
dotnet-version: '10.0.x'
6868
- name: Build
6969
run: |
70-
dotnet build build\Stride.Runtime.sln `
70+
dotnet build build\Stride.Runtime.slnf `
7171
-p:StrideNativeBuildMode=Clang `
7272
-m:1 -nr:false `
7373
-v:m -p:WarningLevel=0 `

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ Cache/
5353
/externals/
5454
/sources/common/externals/
5555
/sources/tools/Stride.ShaderKeyGenerator/build/
56-
/sources/tools/Stride.ProjectGenerator/build/
5756
/sources/tools/SLConverter/BuildRelease/Package/SLConverter-*.pdf
5857
/sources/tools/SLConverter/BuildRelease/Package/bin/x64/SLConverter.exe
5958
/sources/tools/SLConverter/BuildRelease/Package/bin/x86/SLConverter.exe

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Our [Roadmap](https://doc.stride3d.net/latest/en/contributors/roadmap.html) comm
6161
git clone https://github.com/stride3d/stride.git
6262
```
6363
2. **Open the solution:**
64-
- Open `<StrideDir>\build\Stride.sln` with Visual Studio 2026.
64+
- Open `<StrideDir>\build\Stride.sln` with Visual Studio 2026.
6565
- Build the `Stride.GameStudio` project in the `60-Editor` solution folder (it should be the default startup project) or run it directly from Visual Studio's toolbar.
6666
- _Optionally_, open and build `Stride.Android.sln`, `Stride.iOS.sln`, etc.
6767

@@ -76,19 +76,13 @@ Our [Roadmap](https://doc.stride3d.net/latest/en/contributors/roadmap.html) comm
7676
3. **Clone the repository:**
7777
```bash
7878
git lfs clone https://github.com/stride3d/stride.git
79-
8079
```
8180
4. **Build using the command line:**
8281
- Navigate to the `/build` directory in the command prompt and run:
8382
```bash
84-
msbuild /t:Restore Stride.sln
85-
86-
```
87-
- Then run:
88-
```bash
89-
compile.bat
90-
83+
msbuild /t:Build Stride.build
9184
```
85+
This restores and builds the full solution.
9286

9387
### If Building Fails
9488

build/Stride.Android.Build.props

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)