blob: ed229245c0e8f6ffc23d801ed821200cf0b503e6 [file] [log] [blame]
Emeric Vigier2f625822012-08-06 11:09:52 -04001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4# FIXME
5LOCAL_C_INCLUDES:= \
6 $(call include-path-for, dbus) \
7 $(call include-path-for, dbus)/dbus \
8 $(LOCAL_PATH)/.. \
Emeric Vigier52e2d5f2012-08-09 17:29:06 -04009 $(LOCAL_PATH)/../../libexpat
Emeric Vigier2f625822012-08-06 11:09:52 -040010
11LOCAL_CFLAGS:=-O3
12LOCAL_CFLAGS+=-DDBUS_COMPILATION
13#LOCAL_CFLAGS+=-DDBUS_MACHINE_UUID_FILE=\"/system/etc/machine-id\"
14LOCAL_CFLAGS+=-DDBUS_DAEMON_NAME=\"dbus-daemon\"
15LOCAL_CFLAGS+=-DDBUS_SYSTEM_CONFIG_FILE=\"/system/etc/dbus.conf\"
16LOCAL_CFLAGS+=-DDBUS_SESSION_CONFIG_FILE=\"/system/etc/session.conf\"
17
18# We get warning in the _DBUS_ASSERT_ERROR_IS_SET macro. Suppress
19# this warning so that we can compile with Werror. The warning
20# is also ignored in dbus-1.4.6.
21LOCAL_CFLAGS+=-Wno-address
22
Emeric Vigier6d374562012-08-07 19:15:23 -040023LOCAL_LDFLAGS += -L$(APP_PROJECT_PATH)/obj/local/armeabi -lexpat
Emeric Vigierf7455042012-08-06 15:13:42 -040024
Emeric Vigier2f625822012-08-06 11:09:52 -040025LOCAL_SRC_FILES:= \
26 activation.c \
27 bus.c \
28 config-loader-expat.c \
29 config-parser.c \
30 config-parser-common.c \
31 connection.c \
32 desktop-file.c \
33 dir-watch-default.c \
34 dispatch.c \
35 driver.c \
36 expirelist.c \
37 main.c \
38 policy.c \
39 selinux.c \
40 services.c \
41 signals.c \
42 utils.c
43
44LOCAL_SHARED_LIBRARIES := \
Emeric Vigier52e2d5f2012-08-09 17:29:06 -040045 libexpat_shared \
Emeric Vigier2f625822012-08-06 11:09:52 -040046 libdbus
47
48LOCAL_MODULE:=dbus-daemon
49
50include $(BUILD_EXECUTABLE)
51