File tree Expand file tree Collapse file tree 5 files changed +11
-25
lines changed Expand file tree Collapse file tree 5 files changed +11
-25
lines changed Original file line number Diff line number Diff line change @@ -38,3 +38,5 @@ set_target_properties(veldrid-spirv PROPERTIES PREFIX "lib")
38
38
set_target_properties (veldrid-spirv PROPERTIES DEBUG_POSTFIX "" )
39
39
40
40
set_target_properties (veldrid-spirv PROPERTIES XCODE_ATTRIBUTE_ENABLE_BITCODE "NO" )
41
+
42
+ shaderc_combine_static_lib (veldrid-spirv-combined veldrid-spirv )
Original file line number Diff line number Diff line change @@ -76,26 +76,15 @@ if( -not $? )
76
76
Write-Host " - libveldrid-spirv.dylib (64-bit macOS)"
77
77
78
78
$client.DownloadFile (
79
- " https://github.com/mellinoe/veldrid-spirv/releases/download/$tag /libveldrid-spirv.a" ,
80
- " $PSScriptRoot /download/$configuration /ios/libveldrid-spirv.a" )
79
+ " https://github.com/mellinoe/veldrid-spirv/releases/download/$tag /libveldrid-spirv-combined .a" ,
80
+ " $PSScriptRoot /download/$configuration /ios/libveldrid-spirv-combined .a" )
81
81
if ( -not $? )
82
82
{
83
83
$msg = $Error [0 ].Exception.Message
84
- Write-Error " Couldn't download libveldrid-spirv.a. This most likely indicates the iOS native build failed."
84
+ Write-Error " Couldn't download libveldrid-spirv-combined .a. This most likely indicates the iOS native build failed."
85
85
exit
86
86
}
87
- Write-Host " - libveldrid-spirv.a (64-bit iOS)"
88
-
89
- $client.DownloadFile (
90
- " https://github.com/mellinoe/veldrid-spirv/releases/download/$tag /libshaderc_combined.a" ,
91
- " $PSScriptRoot /download/$configuration /ios/libshaderc_combined.a" )
92
- if ( -not $? )
93
- {
94
- $msg = $Error [0 ].Exception.Message
95
- Write-Error " Couldn't download libshaderc_combined.a. This most likely indicates the iOS native build failed."
96
- exit
97
- }
98
- Write-Host " - libshaderc_combined.a (64-bit iOS)"
87
+ Write-Host " - libveldrid-spirv-combined.a (64-bit iOS)"
99
88
100
89
$client.DownloadFile (
101
90
" https://github.com/mellinoe/veldrid-spirv/releases/download/$tag /libveldrid-spirv.android-arm64-v8a.so" ,
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ _CMakeToolchain=
6
6
_CMakeIOSPlatform=
7
7
_CMakeEnableBitcode=
8
8
_OutputPathPrefix=
9
+ _CMakeBuildTarget=veldrid-spirv
9
10
10
11
while : ; do
11
12
if [ $# -le 0 ]; then
@@ -25,6 +26,7 @@ while :; do
25
26
_CMakeIOSPlatform=-DIOS_PLATFORM=OS64
26
27
_CMakeEnableBitcode=-DENABLE_BITCODE=0
27
28
_OutputPathPrefix=ios-
29
+ _CMakeBuildTarget=veldrid-spirv-combined_genfile
28
30
;;
29
31
* )
30
32
__UnprocessedBuildArgs=" $__UnprocessedBuildArgs $1 "
43
45
mkdir -p $_OutputPath
44
46
pushd $_OutputPath
45
47
cmake ../.. -DCMAKE_BUILD_TYPE=$_CMakeBuildType $_CMakeToolchain $_CMakeIOSPlatform $_CMakeEnableBitcode -DPYTHON_EXE=$_PythonExePath
46
- make
48
+ cmake --build . --target $_CMakeBuildTarget
47
49
popd
Original file line number Diff line number Diff line change 33
33
<_NativeAssetName Include =" $(Configuration)/win-x64/libveldrid-spirv.dll" PackagePath =" runtimes/win-x64/native" />
34
34
<_NativeAssetName Include =" $(Configuration)/linux-x64/libveldrid-spirv.so" PackagePath =" runtimes/linux-x64/native" />
35
35
<_NativeAssetName Include =" $(Configuration)/osx-x64/libveldrid-spirv.dylib" PackagePath =" runtimes/osx-x64/native" />
36
- <_NativeAssetName Include =" $(Configuration)/ios/libveldrid-spirv.a" PackagePath =" build/Xamarin.iOS10/native" />
37
- <_NativeAssetName Include =" $(Configuration)/ios/libshaderc_combined.a" PackagePath =" build/Xamarin.iOS10/native" />
36
+ <_NativeAssetName Include =" $(Configuration)/ios/libveldrid-spirv-combined.a" PackagePath =" build/Xamarin.iOS10/native" />
38
37
<_NativeAssetName Include =" $(Configuration)/android-arm64-v8a/libveldrid-spirv.so" PackagePath =" build/MonoAndroid10/native/arm64-v8a" />
39
38
<_NativeAssetName Include =" $(Configuration)/android-armeabi-v7a/libveldrid-spirv.so" PackagePath =" build/MonoAndroid10/native/armeabi-v7a" />
40
39
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<Project xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3
3
<ItemGroup >
4
- <NativeReference Include =" $(MSBuildThisFileDirectory)native\libshaderc_combined.a" >
5
- <Kind >Static</Kind >
6
- <SmartLink >False</SmartLink >
7
- <ForceLoad >True</ForceLoad >
8
- <IsCxx >True</IsCxx >
9
- </NativeReference >
10
- <NativeReference Include =" $(MSBuildThisFileDirectory)native\libveldrid-spirv.a" >
4
+ <NativeReference Include =" $(MSBuildThisFileDirectory)native\libveldrid-spirv-combined.a" >
11
5
<Kind >Static</Kind >
12
6
<SmartLink >False</SmartLink >
13
7
<ForceLoad >True</ForceLoad >
You can’t perform that action at this time.
0 commit comments