Modify the daemon UID/GID
[platform/core/connectivity/bluetooth-agent.git] / ag-agent / CMakeLists.txt
index 79f5872..3737443 100644 (file)
@@ -29,9 +29,9 @@ FOREACH(flag ${pkgs_ag_agent_CFLAGS})
        SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
 ENDFOREACH(flag)
 
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror")
 
-SET(APP_SYSCONFDIR /opt/var/lib/bluetooth)
+SET(APP_SYSCONFDIR /var/lib/bluetooth)
 
 ADD_DEFINITIONS("-DAPP_SYSCONFDIR=\"${APP_SYSCONFDIR}\"")
 
@@ -43,7 +43,7 @@ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/org.bluez.ag_agent.service
                DESTINATION share/dbus-1/system-services)
 
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/voice-recognition-blacklist
-               DESTINATION /opt/var/lib/bluetooth/)
+               DESTINATION /var/lib/bluetooth/)
 
 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/bluetooth-ag-agent.conf.in ${CMAKE_CURRENT_SOURCE_DIR}/bluetooth-ag-agent.conf)
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/bluetooth-ag-agent.conf DESTINATION /etc/dbus-1/system.d)