SET (this_target osp-uifw) INCLUDE_DIRECTORIES ( ${SLP_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR}/inc ${CMAKE_SOURCE_DIR}/src/app/inc ${CMAKE_SOURCE_DIR}/src/graphics/inc ${CMAKE_SOURCE_DIR}/src/ui ${CMAKE_SOURCE_DIR}/src/ui/inc ${CMAKE_SOURCE_DIR}/src/ui/controls /usr/include/osp /usr/include/osp/app /usr/include/osp/base /usr/include/osp/media /usr/include/osp/system ) SET (${this_target}_SOURCE_FILES ${CMAKE_SOURCE_DIR}/src/app/FAppUiApp.cpp ${CMAKE_SOURCE_DIR}/src/app/FApp_UiAppImpl.cpp ${CMAKE_SOURCE_DIR}/src/app/FApp_AppFrame.cpp ${CMAKE_SOURCE_DIR}/src/app/FApp_AppResourceBitmap.cpp ${CMAKE_SOURCE_DIR}/src/app/FApp_AppResourceBitmapUtil.cpp ${CMAKE_SOURCE_DIR}/src/app/FApp_CoordinateInfo.cpp ${CMAKE_SOURCE_DIR}/src/app/FApp_ThemeInfo.cpp ) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -Wall" ) ## SET C COMPILER FLAGS SET(CMAKE_C_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} ${OSP_COMPILER_FLAGS}") ## SET CPP COMPILER FLAGS SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden") SET(CMAKE_CXX_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} ${OSP_COMPILER_FLAGS}") ## Create Library ADD_LIBRARY (${this_target} SHARED ${${this_target}_SOURCE_FILES}) SET(STATIC_LIBS ui graphics opengl) ADD_DEPENDENCIES(${this_target} ${STATIC_LIBS}) MACRO(OSP_ADD_OBJS_IN_ARCHIVE archives) SET(LINK_OBJECTS_IN_ARCHIVE) FOREACH(archive ${ARGV}) SET(LINK_OBJECTS_IN_ARCHIVE "${LINK_OBJECTS_IN_ARCHIVE} -l${archive}") ENDFOREACH(archive) SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--whole-archive ${LINK_OBJECTS_IN_ARCHIVE} -Wl,-no-whole-archive") ENDMACRO(OSP_ADD_OBJS_IN_ARCHIVE) OSP_ADD_OBJS_IN_ARCHIVE(${STATIC_LIBS}) SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined -Wl,--as-needed") TARGET_LINK_LIBRARIES( ${this_target} ${STATIC_LIBS}) TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib/osp -losp-appfw" ) TARGET_LINK_LIBRARIES(${this_target} "-losp-image-core" ) TARGET_LINK_LIBRARIES(${this_target} "-lcapi-appfw-application" ) TARGET_LINK_LIBRARIES(${this_target} "-lappcore-common" ) TARGET_LINK_LIBRARIES(${this_target} "-lappcore-efl" ) TARGET_LINK_LIBRARIES(${this_target} "-lappsvc" ) TARGET_LINK_LIBRARIES(${this_target} "-lsensor" ) TARGET_LINK_LIBRARIES(${this_target} "-lelementary" ) TARGET_LINK_LIBRARIES(${this_target} "-lX11" ) TARGET_LINK_LIBRARIES(${this_target} "-lXdamage" ) TARGET_LINK_LIBRARIES(${this_target} "-lvconf" ) TARGET_LINK_LIBRARIES(${this_target} "-ldlog" ) TARGET_LINK_LIBRARIES(${this_target} "-lpthread" ) TARGET_LINK_LIBRARIES(${this_target} "-lecore" ) TARGET_LINK_LIBRARIES(${this_target} "-levas" ) TARGET_LINK_LIBRARIES(${this_target} "-leina" ) TARGET_LINK_LIBRARIES(${this_target} "-lecore_evas" ) TARGET_LINK_LIBRARIES(${this_target} "-lecore_x" ) TARGET_LINK_LIBRARIES(${this_target} "-lecore_imf" ) TARGET_LINK_LIBRARIES(${this_target} "-lecore_imf_evas" ) TARGET_LINK_LIBRARIES(${this_target} "-lecore_input" ) TARGET_LINK_LIBRARIES(${this_target} "-lxml2" ) TARGET_LINK_LIBRARIES(${this_target} "-lfontconfig" ) TARGET_LINK_LIBRARIES(${this_target} "-lcairo" ) TARGET_LINK_LIBRARIES(${this_target} "-lpixman-1" ) TARGET_LINK_LIBRARIES(${this_target} "-licuuc" ) TARGET_LINK_LIBRARIES(${this_target} "-lpangocairo-1.0" ) TARGET_LINK_LIBRARIES(${this_target} "-lgobject-2.0" ) TARGET_LINK_LIBRARIES(${this_target} "-lpango-1.0" ) TARGET_LINK_LIBRARIES(${this_target} "-lglib-2.0" ) TARGET_LINK_LIBRARIES(${this_target} "-lfreetype" ) TARGET_LINK_LIBRARIES(${this_target} "-lfribidi" ) TARGET_LINK_LIBRARIES(${this_target} "-lharfbuzz" ) TARGET_LINK_LIBRARIES(${this_target} "-ldl" ) TARGET_LINK_LIBRARIES(${this_target} "-lXext" ) TARGET_LINK_LIBRARIES(${this_target} "-lEGL" ) TARGET_LINK_LIBRARIES(${this_target} "-lXv" ) TARGET_LINK_LIBRARIES(${this_target} "-ltts" ) TARGET_LINK_LIBRARIES(${this_target} "-lfeedback" ) IF (NOT OSP_EMUL) TARGET_LINK_LIBRARIES(${this_target} "-ldri2" ) TARGET_LINK_LIBRARIES(${this_target} "-ldrm" ) TARGET_LINK_LIBRARIES(${this_target} "-ltbm" ) ENDIF (NOT OSP_EMUL) TARGET_LINK_LIBRARIES(${this_target} "-llua" ) TARGET_LINK_LIBRARIES(${this_target} "-ltolua++" ) TARGET_LINK_LIBRARIES(${this_target} "-lcapi-system-runtime-info") TARGET_LINK_LIBRARIES(${this_target} "-lutilX" ) TARGET_LINK_LIBRARIES(${this_target} "-lXtst" ) TARGET_LINK_LIBRARIES(${this_target} "-lchromium" ) SET_TARGET_PROPERTIES(${this_target} PROPERTIES VERSION ${FULLVER} SOVERSION ${MAJORVER} CLEAN_DIRECT_OUTPUT 1 ) SET(PC_NAME ${this_target}) SET(PC_REQUIRED ${pc_requires}) SET(PC_LDFLAGS -l${this_target}) # pkgconfig file CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/${this_target}.pc.in ${CMAKE_SOURCE_DIR}/${this_target}.pc @ONLY)