15 lines
609 B
Bash
15 lines
609 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
SDL2_FLAGS=$(sdl2-config --cflags --libs)
|
||
|
LAVU_FLAGS=$(pkg-config libavutil --cflags --libs)
|
||
|
LAVF_FLAGS=$(pkg-config libavformat --cflags --libs)
|
||
|
LAVC_FLAGS=$(pkg-config libavcodec --cflags --libs)
|
||
|
LAVFI_FLAGS=$(pkg-config libavfilter --cflags --libs)
|
||
|
LSWS_FLAGS=$(pkg-config libswscale --cflags --libs)
|
||
|
LSWR_FLAGS=$(pkg-config libswresample --cflags --libs)
|
||
|
LPP_FLAGS=$(pkg-config libpostproc --cflags --libs)
|
||
|
|
||
|
EXTRA_FLAGS=-lm
|
||
|
|
||
|
exec gcc *.c -Istubs ${SDL2_FLAGS} ${LAVU_FLAGS} ${LAVF_FLAGS} ${LAVC_FLAGS} ${LAVFI_FLAGS} ${LSWS_FLAGS} ${LSWR_FLAGS} ${LPP_FLAGS} ${EXTRA_FLAGS} -o ffplay_standalone
|