Emeric Vigier | 2f62582 | 2012-08-06 11:09:52 -0400 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
| 4 | # FIXME |
| 5 | LOCAL_C_INCLUDES:= \ |
| 6 | $(call include-path-for, dbus) \ |
| 7 | $(call include-path-for, dbus)/dbus \ |
| 8 | $(LOCAL_PATH)/.. \ |
Emeric Vigier | 52e2d5f | 2012-08-09 17:29:06 -0400 | [diff] [blame] | 9 | $(LOCAL_PATH)/../../libexpat |
Emeric Vigier | 2f62582 | 2012-08-06 11:09:52 -0400 | [diff] [blame] | 10 | |
| 11 | LOCAL_CFLAGS:=-O3 |
| 12 | LOCAL_CFLAGS+=-DDBUS_COMPILATION |
| 13 | #LOCAL_CFLAGS+=-DDBUS_MACHINE_UUID_FILE=\"/system/etc/machine-id\" |
| 14 | LOCAL_CFLAGS+=-DDBUS_DAEMON_NAME=\"dbus-daemon\" |
| 15 | LOCAL_CFLAGS+=-DDBUS_SYSTEM_CONFIG_FILE=\"/system/etc/dbus.conf\" |
| 16 | LOCAL_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. |
| 21 | LOCAL_CFLAGS+=-Wno-address |
| 22 | |
Emeric Vigier | 6d37456 | 2012-08-07 19:15:23 -0400 | [diff] [blame] | 23 | LOCAL_LDFLAGS += -L$(APP_PROJECT_PATH)/obj/local/armeabi -lexpat |
Emeric Vigier | f745504 | 2012-08-06 15:13:42 -0400 | [diff] [blame] | 24 | |
Emeric Vigier | 2f62582 | 2012-08-06 11:09:52 -0400 | [diff] [blame] | 25 | LOCAL_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 | |
| 44 | LOCAL_SHARED_LIBRARIES := \ |
Emeric Vigier | 52e2d5f | 2012-08-09 17:29:06 -0400 | [diff] [blame] | 45 | libexpat_shared \ |
Emeric Vigier | 2f62582 | 2012-08-06 11:09:52 -0400 | [diff] [blame] | 46 | libdbus |
| 47 | |
| 48 | LOCAL_MODULE:=dbus-daemon |
| 49 | |
| 50 | include $(BUILD_EXECUTABLE) |
| 51 | |