projects
/
platform
/
core
/
appfw
/
pkgmgr-info.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Parse value from database for lib rpk
[platform/core/appfw/pkgmgr-info.git]
/
CMakeLists.txt
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
f24f8ad
..
16a168f
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-9,6
+9,8
@@
SET(EXEC_PREFIX "\${prefix}")
SET(INCLUDEDIR "\${prefix}/include")
SET(CMAKE_SKIP_BUILD_RPATH true)
SET(INCLUDEDIR "\${prefix}/include")
SET(CMAKE_SKIP_BUILD_RPATH true)
+ADD_DEFINITIONS("-DLIB_PATH=\"${LIB_INSTALL_DIR}\"")
+
### Local include directories
INCLUDE_DIRECTORIES(
${CMAKE_SOURCE_DIR}/include
### Local include directories
INCLUDE_DIRECTORIES(
${CMAKE_SOURCE_DIR}/include
@@
-19,13
+21,15
@@
INCLUDE_DIRECTORIES(
${CMAKE_SOURCE_DIR}/src/common/parcel
${CMAKE_SOURCE_DIR}/src/server
${CMAKE_SOURCE_DIR}/src/server/cynara_checker
${CMAKE_SOURCE_DIR}/src/common/parcel
${CMAKE_SOURCE_DIR}/src/server
${CMAKE_SOURCE_DIR}/src/server/cynara_checker
+ ${CMAKE_SOURCE_DIR}/src/server/filter_checker
${CMAKE_SOURCE_DIR}/src/server/database
${CMAKE_SOURCE_DIR}/src/server/request_handler
)
### Required packages
INCLUDE(FindPkgConfig)
${CMAKE_SOURCE_DIR}/src/server/database
${CMAKE_SOURCE_DIR}/src/server/request_handler
)
### Required packages
INCLUDE(FindPkgConfig)
-pkg_check_modules(pkgs REQUIRED
+
+pkg_check_modules(libpkgs REQUIRED
glib-2.0
gio-2.0
gio-unix-2.0
glib-2.0
gio-2.0
gio-unix-2.0
@@
-41,12
+45,14
@@
pkg_check_modules(pkgs REQUIRED
cynara-client-async
cynara-session
cynara-creds-socket
cynara-client-async
cynara-session
cynara-creds-socket
+ capi-system-resource
)
)
-FOREACH(flag ${pkgs_CFLAGS})
+
+FOREACH(flag ${libpkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-pkg_check_modules(libpkgs REQUIRED
+pkg_check_modules(libpkgs
_server
REQUIRED
glib-2.0
gio-2.0
gio-unix-2.0
glib-2.0
gio-2.0
gio-unix-2.0
@@
-63,9
+69,11
@@
pkg_check_modules(libpkgs REQUIRED
cynara-client-async
cynara-session
cynara-creds-socket
cynara-client-async
cynara-session
cynara-creds-socket
+ capi-system-resource
+ tizen-database
)
)
-FOREACH(flag ${libpkgs_CFLAGS})
+FOREACH(flag ${libpkgs_
server_
CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
@@
-78,15
+86,19
@@
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
SET(EXTRA_LINKER_FLAGS "-Wl,--as-needed")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${EXTRA_LINKER_FLAGS}")
SET(EXTRA_LINKER_FLAGS "-Wl,--as-needed")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${EXTRA_LINKER_FLAGS}")
-ENABLE_TESTING()
-SET(TARGET_PKGMGR_INFO_UNIT_TEST "pkgmgr-info-unit-test")
+IF(NOT ASAN_ENABLED)
+ ENABLE_TESTING()
+ SET(TARGET_PKGMGR_INFO_UNIT_TEST "pkgmgr-info-unit-test")
+ENDIF(NOT ASAN_ENABLED)
################## ## build comm libraries
ADD_SUBDIRECTORY(parser)
ADD_SUBDIRECTORY(tool)
ADD_SUBDIRECTORY(plugin_list)
ADD_SUBDIRECTORY(src)
################## ## build comm libraries
ADD_SUBDIRECTORY(parser)
ADD_SUBDIRECTORY(tool)
ADD_SUBDIRECTORY(plugin_list)
ADD_SUBDIRECTORY(src)
-ADD_SUBDIRECTORY(test)
+IF(NOT ASAN_ENABLED)
+ ADD_SUBDIRECTORY(test)
+ENDIF(NOT ASAN_ENABLED)
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/pkgmgr-info.pc.in ${CMAKE_BINARY_DIR}/pkgmgr-info.pc @ONLY)
CONFIGURE_FILE(pkg_db_version.txt.in pkg_db_version.txt @ONLY)
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/pkgmgr-info.pc.in ${CMAKE_BINARY_DIR}/pkgmgr-info.pc @ONLY)
CONFIGURE_FILE(pkg_db_version.txt.in pkg_db_version.txt @ONLY)