mirror of
				https://github.com/Dummi26/musicdb.git
				synced 2025-10-30 03:25:26 +01:00 
			
		
		
		
	android aarch64 build might work now
This commit is contained in:
		
							parent
							
								
									c3622aca30
								
							
						
					
					
						commit
						85c79a21e1
					
				| @ -15,6 +15,10 @@ tokio = { version = "1.37.0", optional = true, features = ["rt"] } | |||||||
| rocket = { version = "0.5.0", optional = true } | rocket = { version = "0.5.0", optional = true } | ||||||
| html-escape = { version = "0.2.13", optional = true } | html-escape = { version = "0.2.13", optional = true } | ||||||
| 
 | 
 | ||||||
|  | [target.aarch64-linux-android.dependencies] | ||||||
|  | # required for cross-compilation to android to work: link to shared c++ stdlib instead of c++_static | ||||||
|  | oboe-sys = { version = "*", features = ["shared-stdcxx"] } | ||||||
|  | 
 | ||||||
| [features] | [features] | ||||||
| default = ["website", "default-playback"] | default = ["website", "default-playback"] | ||||||
| website = ["dep:tokio", "dep:rocket", "dep:html-escape"] | website = ["dep:tokio", "dep:rocket", "dep:html-escape"] | ||||||
|  | |||||||
| @ -1,6 +1,17 @@ | |||||||
|  | # compile for aarch64 linux | ||||||
| [build] | [build] | ||||||
| pre-build = [ | pre-build = [ | ||||||
|     "dpkg --add-architecture $CROSS_DEB_ARCH", |     "dpkg --add-architecture $CROSS_DEB_ARCH", | ||||||
|     "apt-get update && apt-get --assume-yes install libasound2-dev libasound2-dev:$CROSS_DEB_ARCH" |     "apt-get update && apt-get --assume-yes install libasound2-dev libasound2-dev:$CROSS_DEB_ARCH" | ||||||
| ] | ] | ||||||
| default-target = "aarch64-unknown-linux-gnu" | default-target = "aarch64-unknown-linux-gnu" | ||||||
|  | 
 | ||||||
|  | # # compile for aarch64 android | ||||||
|  | # [build] | ||||||
|  | # pre-build = [ | ||||||
|  | #     "dpkg --add-architecture $CROSS_DEB_ARCH", | ||||||
|  | #     "dpkg --add-architecture i386", | ||||||
|  | #     "apt-get update", | ||||||
|  | #     "apt-get install --assume-yes libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386", | ||||||
|  | # ] | ||||||
|  | # default-target = "aarch64-linux-android" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Mark
						Mark