-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (26 loc) · 1014 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.PHONY: docs
typescript:
tsc
generate:
go generate ./...
build: generate
go build github.com/OmegaRogue/weylus-desktop
run-client:
go run github.com/OmegaRogue/weylus-desktop client
run-server: generate
go run github.com/OmegaRogue/weylus-desktop server
lint:
golangci-lint run --color always
lint-fix:
golangci-lint run --color always --fix
test-ffmpeg-rtmp:
go run github.com/OmegaRogue/weylus-desktop | ffmpeg -f mp4 -i - -c copy -f flv -listen 1 rtmp://localhost:1935/live/app
test-ffmpeg:
go run github.com/OmegaRogue/weylus-desktop | ffmpeg -re -i - -listen 1 -f mp4 -fflags nobuffer -movflags frag_keyframe+empty_moov http://localhost:8080/test.mp4
test-gstreamer:
go run github.com/OmegaRogue/weylus-desktop/gstreamer
run-fuzz:
for t in $$(go test github.com/OmegaRogue/weylus-desktop/protocol -list=Fuzz | grep Fuzz); \
do (go test github.com/OmegaRogue/weylus-desktop/protocol -fuzz=$${t} -fuzztime 30s &) ; done
docs:
go run github.com/OmegaRogue/weylus-desktop/internal/gen/docs man docs