aboutsummaryrefslogtreecommitdiff
path: root/avahi-client/Android.mk
blob: 6a5bc69b431055f0edfe1d310d208062d864ea27 (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
LOCAL_PATH:=$(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE:=libavahi-client

LOCAL_MODULE_TAGS:=eng debug

LOCAL_SRC_FILES := \
    client.c \
    entrygroup.c \
    browser.c \
    resolver.c \
    xdg-config.c \
    check-nss.c \
    ../avahi-common/dbus.c \
    ../avahi-common/dbus-watch-glue.c

LOCAL_SHARED_LIBRARIES:=\
    libdbus \
    libavahi-common \
    libdl

LOCAL_CFLAGS := \
    -DHAVE_CONFIG_H \
    -g \
    -O2 \
    -fstack-protector \
    -std=c99 \
    -Wall \
    -W \
    -Wextra \
    -pedantic \
    -pipe \
    -Wformat \
    -Wold-style-definition \
    -Wdeclaration-after-statement \
    -Wfloat-equal \
    -Wmissing-declarations \
    -Wmissing-prototypes \
    -Wstrict-prototypes \
    -Wredundant-decls \
    -Wmissing-noreturn \
    -Wshadow \
    -Wendif-labels \
    -Wpointer-arith \
    -Wbad-function-cast \
    -Wcast-qual \
    -Wcast-align \
    -Wwrite-strings \
    -fdiagnostics-show-option \
    -Wno-cast-qual \
    -fno-strict-aliasing \
    -DDEBUG_TRAP=__asm__\(\"int\ $3\"\) \
    -DDBUS_VERSION_MAJOR=1 \
    -DDBUS_VERSION_MINOR=6 \
    -DDBUS_VERSION_MICRO=18 \
    -DDBUS_API_SUBJECT_TO_CHANGE \
    -DDBUS_SYSTEM_BUS_DEFAULT_ADDRESS=\"unix:path=/var/run/dbus/system_bus_socket\"

LOCAL_C_INCLUDES := \
    $(LOCAL_PATH) \
    external/avahi

include $(BUILD_SHARED_LIBRARY)