We will not support api-side database creations (at least in Tizen 4.0).
Change-Id: I3048c8ea8f95169124572ed1128131c62ee56837
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
SET(target_prefix "context")
SET(target_shared "${target_prefix}-shared")
-SET(target_database "${target_prefix}-database")
ADD_SUBDIRECTORY(src/shared)
-ADD_SUBDIRECTORY(src/database)
ADD_SUBDIRECTORY(src/client)
ADD_SUBDIRECTORY(src/server)
SET(PC_NAME "${PROJECT_NAME}-client")
SET(PC_DESCRIPTION "Tizen Context-Service Internal Shared Library for Clients")
SET(PC_REQUIRED ${DEPS})
-SET(PC_LDFLAGS "-l${target} -l${target_shared} -l${target_database}")
+SET(PC_LDFLAGS "-l${target} -l${target_shared}")
CONFIGURE_FILE(
${CMAKE_SOURCE_DIR}/pkg-config.pc.in
+++ /dev/null
-SET(target ${target_database})
-
-SET(DEPS "${DEPS} sqlite3")
-
-FILE(GLOB_RECURSE SRCS *.cpp)
-MESSAGE("Sources: ${SRCS}")
-
-INCLUDE(FindPkgConfig)
-pkg_check_modules(PKG_DATABASE REQUIRED ${DEPS})
-
-FOREACH(flag ${PKG_DATABASE_CFLAGS})
- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}")
-ENDFOREACH(flag)
-
-ADD_LIBRARY(${target} SHARED ${SRCS})
-TARGET_LINK_LIBRARIES(${target} ${PKG_DATABASE_LDFLAGS} ${target_shared})
-SET_TARGET_PROPERTIES(${target} PROPERTIES SOVERSION ${MAJORVER})
-SET_TARGET_PROPERTIES(${target} PROPERTIES VERSION ${FULLVER})
-
-INSTALL(TARGETS ${target} DESTINATION ${CMAKE_INSTALL_LIBDIR})
ENDFOREACH(flag)
ADD_LIBRARY(${target} SHARED ${SRCS})
-TARGET_LINK_LIBRARIES(${target} ${LIB_PKG_LDFLAGS} ${target_shared} ${target_database})
+TARGET_LINK_LIBRARIES(${target} ${LIB_PKG_LDFLAGS} ${target_shared})
SET_TARGET_PROPERTIES(${target} PROPERTIES SOVERSION ${MAJORVER})
SET_TARGET_PROPERTIES(${target} PROPERTIES VERSION ${FULLVER})
SET(PC_NAME "${PROJECT_NAME}-server")
SET(PC_DESCRIPTION "Tizen Context-Service Internal Shared Library for Servers")
SET(PC_REQUIRED ${DEPS})
-SET(PC_LDFLAGS "-l${target} -l${target_shared} -l${target_database}")
+SET(PC_LDFLAGS "-l${target} -l${target_shared}")
CONFIGURE_FILE(
${CMAKE_SOURCE_DIR}/pkg-config.pc.in
* limitations under the License.
*/
-#include <sqlite3.h>
#include <Tuple.h>
#include <ClientBase.h>
#include <ServerUtil.h>