From: Young Ik Cho Date: Fri, 12 Jul 2013 04:10:22 +0000 (+0900) Subject: proper build script X-Git-Tag: accepted/tizen/20130912.081851^2~131 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c9cb7a36280f74a4de7a39c791c878541fcb39a;p=platform%2Fframework%2Fnative%2Fappfw.git proper build script Change-Id: I033a117708a03a2448d2b4433a19df295e5cd43e Signed-off-by: Young Ik Cho --- diff --git a/src/server/CMakeLists.txt b/src/server/CMakeLists.txt index ec94998..874b813 100644 --- a/src/server/CMakeLists.txt +++ b/src/server/CMakeLists.txt @@ -18,7 +18,22 @@ SET (${this_target}_SOURCE_FILES io/FIo_IpcServer.cpp security/FSec_PrivilegeManagerServer.cpp ) - + +INCLUDE(FindPkgConfig) +pkg_check_modules(server_pkgs REQUIRED + appsvc + chromium + dukgenerator + glib-2.0 + heynoti + pkgmgr-info + capi-appfw-app-manager +) + +FOREACH(flag ${server_pkgs_CFLAGS}) + SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") +ENDFOREACH(flag) + ## SET EXTRA COMPILER FLAGS SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fPIC -Wall" ) @@ -32,9 +47,11 @@ SET(CMAKE_CXX_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_CXX_FLAGS} ${EX ## Create Library ADD_LIBRARY (${this_target} SHARED ${${this_target}_SOURCE_FILES}) +SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined -Wl,--as-needed") + TARGET_LINK_LIBRARIES(${this_target} osp-appfw) -TARGET_LINK_LIBRARIES(${this_target} "-ldukgenerator" ) -TARGET_LINK_LIBRARIES(${this_target} "-lcryptsvc" ) +TARGET_LINK_LIBRARIES(${this_target} ${server_pkgs_LDFLAGS}) + SET_TARGET_PROPERTIES(${this_target} PROPERTIES