SET (${this_target}_SOURCE_FILES
app/FApp_AulServer.cpp
+ app/FApp_AppLaunchCondition.cpp
+ app/FApp_AppLaunchConditionHandlerBase.cpp
app/package/FAppPkg_PackageManagerServer.cpp
io/FIo_IpcServer.cpp
security/FSec_PrivilegeManagerServer.cpp
)
-
+
+INCLUDE(FindPkgConfig)
+pkg_check_modules(server_pkgs REQUIRED
+ appsvc
+ chromium
+ dukgenerator
+ glib-2.0
+ pkgmgr-info
+)
+
+FOREACH(flag ${server_pkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ENDFOREACH(flag)
+
## SET EXTRA COMPILER FLAGS
-SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fPIC -Wall" )
+SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fPIC -Wall -Wno-unused")
## SET C COMPILER FLAGS
SET(CMAKE_C_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} ${OSP_COMPILER_FLAGS}")
## 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
SET(PC_NAME ${this_target})
SET(PC_REQUIRED ${pc_requires})
SET(PC_LDFLAGS -l${this_target})
+SET(VERSION ${FULLVER})
# pkgconfig file
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/${this_target}.pc.in ${CMAKE_SOURCE_DIR}/${this_target}.pc @ONLY)