Makefile.am 2.24 KB
Newer Older
1 2 3 4 5 6 7
#
# Makefile.am for the Nice Glib ICE library
#
# (C) 2006, 2007 Collabora Ltd.
# (C) 2006, 2007 Nokia Corporation. All rights reserved.
#
# Licensed under MPL 1.1/LGPL 2.1. See file COPYING.
Dafydd Harries's avatar
Dafydd Harries committed
8

9 10
include $(top_srcdir)/common.mk

11
AM_CFLAGS = \
12
	-DG_LOG_DOMAIN=\"libnice\" \
13
	$(LIBNICE_CFLAGS) \
14
	$(GLIB_CFLAGS) \
Youness Alaoui's avatar
Youness Alaoui committed
15
	$(GUPNP_CFLAGS) \
16
	-I $(top_srcdir) \
17
	-I $(top_srcdir)/random \
18
	-I $(top_srcdir)/socket \
19
	-I $(top_srcdir)/stun
Dafydd Harries's avatar
Dafydd Harries committed
20

21 22 23
if WINDOWS
  AM_CFLAGS += -DWINVER=0x0501 # _WIN32_WINNT_WINXP
endif
24

25
noinst_LTLIBRARIES = libagent.la
Dafydd Harries's avatar
Dafydd Harries committed
26

27
libagent_la_SOURCES = \
28 29
	address.h \
	address.c \
30 31
	debug.h \
	debug.c \
Dafydd Harries's avatar
Dafydd Harries committed
32 33
	candidate.h \
	candidate.c \
34 35
	component.h \
	component.c \
36
	agent.h \
37
	agent-priv.h \
38
	agent.c \
39 40
	stream.h \
	stream.c \
41 42 43 44
	conncheck.c \
	conncheck.h \
	discovery.c \
	discovery.h \
Youness Alaoui's avatar
Youness Alaoui committed
45 46
	interfaces.c \
	interfaces.h \
47 48
	pseudotcp.h \
	pseudotcp.c \
49 50 51 52 53 54
	iostream.h \
	iostream.c \
	inputstream.h \
	inputstream.c \
	outputstream.h \
	outputstream.c \
55
	$(BUILT_SOURCES)
Dafydd Harries's avatar
Dafydd Harries committed
56

Dafydd Harries's avatar
Dafydd Harries committed
57
libagent_la_LIBADD = \
58
	$(top_builddir)/random/libnice-random.la \
59
	$(top_builddir)/socket/libsocket.la \
60 61 62 63
	$(top_builddir)/stun/libstun.la \
	$(GLIB_LIBS) \
	$(GUPNP_LIBS) \
	$(NULL)
64
libagent_la_DEPENDENCIES = \
65
	$(top_builddir)/random/libnice-random.la \
66 67
	$(top_builddir)/socket/libsocket.la \
	$(top_builddir)/stun/libstun.la
68

69 70 71 72 73 74 75 76
pkginclude_HEADERS = \
	agent.h \
	candidate.h \
	debug.h \
	address.h \
	interfaces.h \
	pseudotcp.h \
	$(NULL)
77 78

if WINDOWS
79
  libagent_la_LIBADD += -liphlpapi -lws2_32
80
endif
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110

#
# GObject introspection
#
# We need --accept-unprefixed because of PseudoTcp and TurnServer.
#
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --warn-all --accept-unprefixed
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)

if HAVE_INTROSPECTION
introspection_sources = $(pkginclude_HEADERS)

Nice-0.0.gir: libagent.la
Nice_0_0_gir_INCLUDES = GObject-2.0 Gio-2.0
Nice_0_0_gir_EXPORT_PACKAGES = nice
Nice_0_0_gir_CFLAGS = $(AM_CFLAGS)
Nice_0_0_gir_LIBS = libagent.la
Nice_0_0_gir_FILES = $(introspection_sources)
INTROSPECTION_GIRS += Nice-0.0.gir

girdir = $(datadir)/gir-1.0
gir_DATA = $(INTROSPECTION_GIRS)

typelibdir = $(libdir)/girepository-1.0
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)

CLEANFILES += $(gir_DATA) $(typelib_DATA)
endif