summaryrefslogtreecommitdiff
path: root/toxav/Makefile.inc
blob: 60b50ff00ba14293a1db6a955746a9bcce2dd565 (plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
if BUILD_AV

lib_LTLIBRARIES += libtoxav.la
libtoxav_la_include_HEADERS = ../toxav/toxav.h
libtoxav_la_includedir = $(includedir)/tox

libtoxav_la_SOURCES = ../toxav/event.h \
                      ../toxav/event.c \
                      ../toxav/rtp.h \
                      ../toxav/rtp.c \
                      ../toxav/msi.h \
                      ../toxav/msi.c \
                      ../toxav/media.h \
                      ../toxav/media.c \
                      ../toxav/toxav.h \
                      ../toxav/toxav.c


libtoxav_la_CFLAGS = -I../toxcore \
                     -I../toxav \
                     $(LIBSODIUM_CFLAGS) \
                     $(NACL_CFLAGS) \
                     $(AV_CFLAGS) \
                     $(PTHREAD_CFLAGS)

libtoxav_la_LDFLAGS = $(TOXAV_LT_LDFLAGS) \
                      $(LIBSODIUM_LDFLAGS) \
                      $(NACL_LDFLAGS) \
                      $(EXTRA_LT_LDFLAGS)

libtoxav_la_LIBADD =  libtoxcore.la \
                      $(LIBSODIUM_LIBS) \
                      $(NACL_LIBS) \
                      $(PTHREAD_LIBS) \
                      $(AV_LIBS)


endif






if BUILD_PHONE


noinst_PROGRAMS += phone

phone_SOURCES = ../toxav/phone.c

phone_CFLAGS = -I../toxcore \
               -I../toxav \
                $(AVFORMAT_CFLAGS) \
                $(AVCODEC_CFLAGS) \
                $(AVUTIL_CFLAGS) \
                $(AVDEVICE_CFLAGS) \
                $(SWSCALE_CFLAGS) \
                $(SDL_CFLAGS) \
                $(OPENAL_CFLAGS)

phone_LDADD =   libtoxav.la \
                libtoxcore.la \
                $(AVFORMAT_LIBS) \
                $(AVCODEC_LIBS) \
                $(AVUTIL_LIBS) \
                $(AVDEVICE_LIBS) \
                $(SWSCALE_LIBS) \
                $(SDL_LIBS) \
                $(OPENAL_LIBS) \
                $(OPUS_LIBS) \
                $(VPX_LIBS)\
                $(PTHREAD_LIBS)\
                $(NACL_OBJECTS) \
                $(NACL_LIBS)


endif