1LOCAL_PATH:= $(call my-dir) 2include $(CLEAR_VARS) 3 4LOCAL_C_INCLUDES:= \ 5 $(call include-path-for, dbus) \ 6 $(call include-path-for, dbus)/dbus \ 7 external/expat/lib/ 8 9LOCAL_CFLAGS:=-O3 10LOCAL_CFLAGS+=-DDBUS_COMPILATION 11#LOCAL_CFLAGS+=-DDBUS_MACHINE_UUID_FILE=\"/system/etc/machine-id\" 12LOCAL_CFLAGS+=-DDBUS_DAEMON_NAME=\"dbus-daemon\" 13LOCAL_CFLAGS+=-DDBUS_SYSTEM_CONFIG_FILE=\"/system/etc/dbus.conf\" 14LOCAL_CFLAGS+=-DDBUS_SESSION_CONFIG_FILE=\"/system/etc/session.conf\" 15 16# We get warning in the _DBUS_ASSERT_ERROR_IS_SET macro. Suppress 17# this warning so that we can compile with Werror. The warning 18# is also ignored in dbus-1.4.6. 19LOCAL_CFLAGS+=-Wno-address 20 21LOCAL_SRC_FILES:= \ 22 activation.c \ 23 bus.c \ 24 config-loader-expat.c \ 25 config-parser.c \ 26 config-parser-common.c \ 27 connection.c \ 28 desktop-file.c \ 29 dir-watch-default.c \ 30 dispatch.c \ 31 driver.c \ 32 expirelist.c \ 33 main.c \ 34 policy.c \ 35 selinux.c \ 36 services.c \ 37 signals.c \ 38 utils.c 39 40LOCAL_SHARED_LIBRARIES := \ 41 libexpat \ 42 libdbus 43 44LOCAL_MODULE:=dbus-daemon 45 46include $(BUILD_EXECUTABLE) 47