mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 14:32:24 -05:00 
			
		
		
		
	[feature/OFFICIALLY UNSUPPORTED] add nowasm build tag to disable building with WebAssembly (#3429)
* add experimental build-tag 'nowasm' which uses local ffmpeg / ffprobe * updated experimental support message * add comment to build script explaining build tag * add nowasm build tags to moderncsqlite files
This commit is contained in:
		
					parent
					
						
							
								157ee3193d
							
						
					
				
			
			
				commit
				
					
						6a76b9d609
					
				
			
		
					 13 changed files with 301 additions and 26 deletions
				
			
		|  | @ -15,10 +15,14 @@ | |||
| // You should have received a copy of the GNU Affero General Public License | ||||
| // along with this program.  If not, see <http://www.gnu.org/licenses/>. | ||||
| 
 | ||||
| //go:build !nowasm | ||||
| 
 | ||||
| package ffmpeg | ||||
| 
 | ||||
| import ( | ||||
| 	"context" | ||||
| 
 | ||||
| 	"codeberg.org/gruf/go-ffmpreg/wasm" | ||||
| ) | ||||
| 
 | ||||
| // ffmpegRunner limits the number of | ||||
|  | @ -36,5 +40,7 @@ func InitFfmpeg(ctx context.Context, max int) error { | |||
| 
 | ||||
| // Ffmpeg runs the given arguments with an instance of ffmpeg. | ||||
| func Ffmpeg(ctx context.Context, args Args) (uint32, error) { | ||||
| 	return ffmpegRunner.Run(ctx, ffmpeg, args) | ||||
| 	return ffmpegRunner.Run(ctx, func() (uint32, error) { | ||||
| 		return wasm.Run(ctx, runtime, ffmpeg, args) | ||||
| 	}) | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue