1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-19 16:26:36 +02:00

Fixes to av.mk

This commit is contained in:
cnhenry
2015-07-11 04:06:12 -05:00
parent e0a35a6569
commit a33e5f4bec
2 changed files with 40 additions and 38 deletions

View File

@ -8,9 +8,9 @@ else
endif
# Variables for video call support
VIDEO_LIBS = libtoxav xlib
AUDIO_CFLAGS = -DVIDEO
ifneq (, $(findstring video_device.o $(OBJ)))
VIDEO_LIBS = libtoxav Xlib
VIDEO_CFLAGS = -DVIDEO
ifneq (, $(findstring video_device.o, $(OBJ)))
VIDEO_OBJ = video_call.o
else
VIDEO_OBJ = video_call.o video_device.o
@ -39,4 +39,5 @@ else ifneq ($(MAKECMDGOALS), clean)
MISSING_VIDEO_LIBS = $(shell for lib in $(VIDEO_LIBS) ; do if ! pkg-config --exists $$lib ; then echo $$lib ; fi ; done)
$(warning WARNING -- Toxic will be compiled without video support)
$(warning WARNING -- You will need these libraries for video support)
$(warning WARNING -- $(MISSING_VIDEO_LIBS))
$(warning WARNING -- $(MISSING_VIDEO_LIBS))
endif