From e9579eed4fb7b569d6c52854bb1f1122a2057b1d Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Fri, 3 Apr 2015 20:57:06 +0900 Subject: [PATCH] Remove dependency of msg service Change-Id: Ic624d2d0e3d2637ea57436c86f36dde13c55ff84 Signed-off-by: DoHyun Pyun --- map-agent/CMakeLists.txt | 12 ++++++------ map-agent/bluetooth_map_agent.c | 9 +++++++++ map-agent/map_bmessage.c | 3 +++ 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/map-agent/CMakeLists.txt b/map-agent/CMakeLists.txt index 932bee4..fe1c6ed 100644 --- a/map-agent/CMakeLists.txt +++ b/map-agent/CMakeLists.txt @@ -16,12 +16,12 @@ ENDFOREACH(flag) SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}") -FIND_PROGRAM(DBUS_BINDING_TOOL NAMES dbus-binding-tool) -EXEC_PROGRAM("${DBUS_BINDING_TOOL}" - ARGS "--prefix=bluetooth_map \\ - ${CMAKE_CURRENT_SOURCE_DIR}/bluetooth_map_agent.xml \\ - --mode=glib-server \\ - --output=${CMAKE_CURRENT_SOURCE_DIR}/bluetooth_map_agent_glue.h") +#FIND_PROGRAM(DBUS_BINDING_TOOL NAMES dbus-binding-tool) +#EXEC_PROGRAM("${DBUS_BINDING_TOOL}" +# ARGS "--prefix=bluetooth_map \\ +# ${CMAKE_CURRENT_SOURCE_DIR}/bluetooth_map_agent.xml \\ +# --mode=glib-server \\ +# --output=${CMAKE_CURRENT_SOURCE_DIR}/bluetooth_map_agent_glue.h") ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS}) TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_map_agent_LDFLAGS}) diff --git a/map-agent/bluetooth_map_agent.c b/map-agent/bluetooth_map_agent.c index ab1af4d..32baac5 100644 --- a/map-agent/bluetooth_map_agent.c +++ b/map-agent/bluetooth_map_agent.c @@ -17,6 +17,8 @@ * */ +#if 0 + #include #include #include @@ -2085,8 +2087,12 @@ static gboolean bluetooth_map_noti_registration(BluetoothMapAgent *agent, return TRUE; } +#endif + + int main(int argc, char **argv) { +#if 0 BluetoothMapAgent *bluetooth_map_obj = NULL; DBusGProxy *bus_proxy = NULL; guint result = 0; @@ -2169,4 +2175,7 @@ int main(int argc, char **argv) __bluetooth_map_stop_service(); return EXIT_FAILURE; +#endif + return 0; } + diff --git a/map-agent/map_bmessage.c b/map-agent/map_bmessage.c index febfe03..31e729c 100644 --- a/map-agent/map_bmessage.c +++ b/map-agent/map_bmessage.c @@ -17,6 +17,8 @@ * */ +#if 0 + #include #include #include @@ -518,3 +520,4 @@ parse_fail: return NULL; } +#endif -- 2.7.4